dev-cpp-users Mailing List for Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(13) |
2
(19) |
3
(28) |
4
(10) |
|
5
(2) |
6
(6) |
7
(9) |
8
(16) |
9
(14) |
10
(11) |
11
(7) |
|
12
(2) |
13
(9) |
14
(12) |
15
(6) |
16
(12) |
17
(12) |
18
(4) |
|
19
(8) |
20
(3) |
21
(3) |
22
(4) |
23
(8) |
24
(17) |
25
(16) |
|
26
(14) |
27
(10) |
28
(29) |
29
(28) |
30
(5) |
31
(15) |
|
|
From: Michael D. S. <for...@hi...> - 2003-10-02 22:13:36
|
I have some code that has: #include<ras.h> #include<raserror.h> And I don't have those two files on my computer. I thought I would just find those two files and be OK but, now that you mention libraries... There is a Windows RAS API. Perhaps there is a whole RAS API library? Since I don't have these two header files yet, for all I know they call ten others that I also don't have. So, I may need a library. May not :) Anyone have any experience with dialing the modem, dial-up networking, that sort of thing? ms At 10:50 AM 10/2/03, you wrote: >What do you want header files for? > >Your compiler already comes stocked with all header files needed for >using the supplied libraries. > >If you install additional libraries, the installation package will also >contain any extra header files needed. > >/Per W > >On Thu, 2 Oct 2003, Michael D. Smith wrote: > > > > > Where is the best place to find header files? Is there a good collection > > somewhere, like cpan is for perl? > > > > ms > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
|
From: <or...@vp...> - 2003-10-02 18:11:39
|
Michael D. Smith wrote: > Where is the best place to find header files? Is there a good collection > somewhere, like cpan is for perl? Hmmm. I don't seem to understand you. What is it exactly that you need, and it doesn't come with MinGW (Dev-C++)? -- Greetings, Balázs |
|
From: <or...@vp...> - 2003-10-02 18:09:02
|
Geoff Baker wrote:
> I am trying to setup a Push Button control that when pushed, runs a series
> of commands, then calls itself to be run again. The reason behind this is
> that there is another thread that needs to process some data prior to the
> second half of the function being run. To do this I thought I could simply
> send a message to my main window (put the message into the que) so that once
> the other threads message has completed the button will be recalled.
> However this does not seem to happen, it simply ignores my sendmesage (or so
> it seems)
>
> Code:
> case 508:
> switch(setup)
> {
> case 0:
> FindSearch=FindInBuffer("]#",2);
> if(FindSearch==1)
> {
> MessageBox(NULL,"Prompt
> Check","Error",MB_OK|MB_ICONEXCLAMATION);
> }
> setup=1;
> break;
> case 1:
> FindInBuffer("]#",1);
> Command(" ",hwnd);
>
> SendMessage(hwnd,WM_COMMAND,(WPARAM)NULL,(LPARAM)508);
> break;
> }
> break;
> End Code:
>
> Does anyone know how to handle a situation like this?
Note, that SendMessage() directly calls the Window procedure again, so
you'll get a re-entrant (that is, you re-enter the procedure). This
should cause no trouble at all, as it happens a lot of time. For
example, when you create a dialog box, that is always on top of your
program. That means, the dialogbox call will return ONLY if you close
the dialog box, but if you move around the box, your Window proc will be
called evetually again with WM_PAINT (though it should be locked because
of the dialog box).
You should be careful with calling the same Window proc from within, as
SendMessage will only return, if the window proc - for which it sends
the message - finishes it's work. This way, you can easily get an
endless loop. I don't know if Windows checks for this, but according to
what Carlos wrote, it seems it does.
--
Greetings,
Balázs
|
|
From: Geoff B. <Geo...@Vc...> - 2003-10-02 17:06:56
|
Yes well I got this figured out now, what I did was tell the second =
thread
to run a postmessage function and set a variable so the main window =
knows
what is happening. However I am also trying to incorperate the =
mainwindow
sending a message to itself and your are correct using postmessage is =
the
only way to do this. As soon as I switched from send to post =
everything is
now working.
=20
thanks
-geoff
-----Original Message-----
From: Carlos Garc=EDa del Monte [mailto:sol...@ya...]
Sent: October 2, 2003 10:38 AM
To: Geoff Baker
Cc: dev...@li...
Subject: Re: [Dev-C++] Win32 API SendMessage [mx][sls]
That means your window is sending a message to itself, isn't it? That =
seems
to be not possible, always I try to do something like that it doesn't =
react
to it, and if I put a GetLastError() I get INVALID_WINDOW_HANDLE.
Everytime I got that I had to do things another way, nothing comparable =
with
the situation where sending a message itself would be necessary.
If you really need do things like that and neither PostMessage work, I =
would
suggest making a dummy window, SW_HIDE, so you send the message to the =
dummy
and it resends it to the main, is the only way I can think about.
Did you try with PostMessage? Remember that SendMessage sends the =
message
and waits to the window to process it, but it can't do while it is
processing the current message.=20
Be careful about this situation:
Main receives "do push button" push button says itself "message: do it, =
then
continue". If things are like this and you send the message when "do =
it" and
after that is "then continue". If you do Sendmessage "do it", it'll =
wait to
"do it" to be done, but it can't if "then continue isn't done" (Uhmm, =
the
same would happen with the dummy window!!). If you PostMessage then it =
would
post "do it" and immediately it performs "then continue", so it makes =
"then
continue" before knowing the result of "do it", so perhaps you would =
have to
make: receive message (a) push button posts message "do it" (b) and =
after do
"do it" it posts "then continue" (c), but perhaps it would need to =
happen
that a=3Dc, but with some extra parameter so the program can =
distinguish
beetwen the message x being sent for start or for continue. Or perhaps, =
your
program performs steps that are not equivalent to this scheme and you =
don't
need worry about it.
Hope you get the perfect answer.
Geoff Baker wrote:
I am trying to setup a Push Button control that when pushed, runs a =
series
of commands, then calls itself to be run again. The reason behind this =
is
that there is another thread that needs to process some data prior to =
the
second half of the function being run. To do this I thought I could =
simply
send a message to my main window (put the message into the que) so that =
once
the other threads message has completed the button will be recalled.
However this does not seem to happen, it simply ignores my sendmesage =
(or so
it seems)
Code:
case 508:
switch(setup)
{
case 0:
FindSearch=3DFindInBuffer("]#",2);
if(FindSearch=3D=3D1)
{
MessageBox(NULL,"Prompt
Check","Error",MB_OK|MB_ICONEXCLAMATION); =20
} =20
setup=3D1; =20
break;
case 1:
FindInBuffer("]#",1);
Command(" ",hwnd);
=20
SendMessage(hwnd,WM_COMMAND,(WPARAM)NULL,(LPARAM)508);=20
break;
}
break;
End Code:
Does anyone know how to handle a situation like this?
=20
Thanks
Geoff Baker
Systems Integration Technologist
=20
VCom (Formerly WaveCom)
=20
150 Cardinal Place, Saskatoon, Sask. Canada S7L 6H7
Phone: (306)955-7075 Ext 489 Fax:(306)955-9919
Web Page: <http://www.vcom.com/> <http://www.vcom.com/>
=20
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf <http://thinkgeek.com/sf>=20
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
<mailto:Dev...@li...>=20
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
<http://www23.brinkster.com/noicys/devcpp/ub.htm>=20
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
<https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>=20
=20
|
|
From: Gabriel L. <ga...@ti...> - 2003-10-02 17:05:16
|
How to make VSTpluggs with Dev-C++ v. 4.9.8.0 [http://bloodshed.net] or later. by Gabriel Lindeborg [gabriel.lindeborg[at]sverige.nu] 2003-10-02 2nd edition Changes since 1st edition: OpenSource VSTGUI! First of all you should get the latest SDK/VSTGUI from Steinberg and read the info and study the examples to get to know it, this document is about how to make the SDK work in Dev-C++, not how to make VSTPluggs in general. Make sure there are no strange characters, no spaces or long folder names (ie more than 8 chars) in your paths, this took hours out from my VST-development time when I had my project in the My Documents folder. It should work I suppose, but it doesn't. Why? Start a new DEV-C++ project. Choose DLL Project. Delete the automaticly created hpp file and cpp file. Add the SDK common files to your project, preferably in a map since "thou shall no edit these files". Add your source files and resource-file. The next step has been done by Steinberg already on some of the SDK examples, but if your VSTnameMain.cpp isn't changed add static AudioEffect *effect =3D 0; before the bool line in the beginning of the VSTnameMain.cpp, if it isn't there already, and change the line *AudioEffect effect =3D new VSTname (audioMaster); into effect =3D new VSTname (audioMaster); I don't know why... it just didn't work unless. For me anyway... Change the line #if BEOS into #if __GNUC__&&(WIN32||BEOS) in your VSTnameMain.cpp file. as well as the line BOOL WINAPI DllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpvReserved) into #if __GNUWIN32__ extern "C" BOOL WINAPI DllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpvReserved) #else BOOL WINAPI DllMain (HINSTANCE hInst, DWORD dwReason, LPVOID lpvReserved= ) #endif Change the line EXPORTS main into EXPORTS main=3Dmain_plugin in your VSTname.def file. Open the Project Options Dialog Add the SDK common directory to the include directories in in the directories page. Add -D__GNUWIN32__ -mcpu=3Dpentium -D_M_IX86=3D500 -W -DWIN32 -DNDEBUG -D_WINDOWS to the C compiler options. Add -D__GNUWIN32__ -mcpu=3Dpentium -D_M_IX86=3D500 -W -DWIN32 -DNDEBUG -D_WINDOWS -gstabs the C++ compiler options. Add -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lmsimg32 -lmsvcrt --def VSTname.def to the linker options. Compile! Don't hesitate to give me feedback @ [gabriel.lindeborg[at]sverige.nu]!! Thanks goes to: Friedemann Wolpert Urs Heckmann Colin Laplace Alex Ebersp=E4cher Per Westermark and all the other VST developers who has provided input to and help with this how to... and Steinberg for letting us play with VST and making VSTGUI OpenSource. Note I: Altough this should work with Dev-C++ 4.01, I can't figure out how. The file compiles fine but they do, as it seems, not export main. Anyway neither Cubase nor FruityLoops will recognize the resulting .dll. Any ideas? |
|
From: <sol...@ya...> - 2003-10-02 16:37:43
|
That means your window is sending a message to itself, isn't it? That
seems to be not possible, always I try to do something like that it
doesn't react to it, and if I put a GetLastError() I get
INVALID_WINDOW_HANDLE.
Everytime I got that I had to do things another way, nothing comparable
with the situation where sending a message itself would be necessary.
If you really need do things like that and neither PostMessage work, I
would suggest making a dummy window, SW_HIDE, so you send the message to
the dummy and it resends it to the main, is the only way I can think about.
Did you try with PostMessage? Remember that SendMessage sends the
message and waits to the window to process it, but it can't do while it
is processing the current message.
Be careful about this situation:
Main receives "do push button" push button says itself "message: do it,
then continue". If things are like this and you send the message when
"do it" and after that is "then continue". If you do Sendmessage "do
it", it'll wait to "do it" to be done, but it can't if "then continue
isn't done" (Uhmm, the same would happen with the dummy window!!). If
you PostMessage then it would post "do it" and immediately it performs
"then continue", so it makes "then continue" before knowing the result
of "do it", so perhaps you would have to make: receive message (a) push
button posts message "do it" (b) and after do "do it" it posts "then
continue" (c), but perhaps it would need to happen that a=c, but with
some extra parameter so the program can distinguish beetwen the message
x being sent for start or for continue. Or perhaps, your program
performs steps that are not equivalent to this scheme and you don't need
worry about it.
Hope you get the perfect answer.
Geoff Baker wrote:
>I am trying to setup a Push Button control that when pushed, runs a series
>of commands, then calls itself to be run again. The reason behind this is
>that there is another thread that needs to process some data prior to the
>second half of the function being run. To do this I thought I could simply
>send a message to my main window (put the message into the que) so that once
>the other threads message has completed the button will be recalled.
>However this does not seem to happen, it simply ignores my sendmesage (or so
>it seems)
>
>Code:
> case 508:
> switch(setup)
> {
> case 0:
> FindSearch=FindInBuffer("]#",2);
> if(FindSearch==1)
> {
> MessageBox(NULL,"Prompt
>Check","Error",MB_OK|MB_ICONEXCLAMATION);
> }
> setup=1;
> break;
> case 1:
> FindInBuffer("]#",1);
> Command(" ",hwnd);
>
>SendMessage(hwnd,WM_COMMAND,(WPARAM)NULL,(LPARAM)508);
> break;
> }
> break;
>End Code:
>
>Does anyone know how to handle a situation like this?
>
>
>
>>Thanks
>>Geoff Baker
>>Systems Integration Technologist
>>
>>
>VCom (Formerly WaveCom)
>
>
>>150 Cardinal Place, Saskatoon, Sask. Canada S7L 6H7
>>Phone: (306)955-7075 Ext 489 Fax:(306)955-9919
>>Web Page: <http://www.vcom.com/>
>>
>>
>>
>>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: Colin L. <ha...@bl...> - 2003-10-02 16:35:15
|
Hi, Do you have "Use fast but imperfect dependency checking" unchecked in Compiler Options ? Greetings, Colin ps: next time please report bugs at http://bloodshed.net/bugs instead of this list On Tuesday 30 September 2003 11:26, you wrote: > Hi, ALL! > > Strange problem with DEV-CPP 4.9.8.3. > > I use precompiler directive #warning to comment > important points in code. > Dev-Cpp 4.9.8.3 makes bad makefile when #warning in used. > > Test source code: > ------------------------------------------ > int main(int argc, char *argv[]) > { > #warning "MyComment" > return 0; > } > ------------------------------------------- > > > built makefile > ------------------------------------------- > # Project: Warn2Mak > # Makefile created by Dev-C++ 4.9.8.3 > > CPP = g++.exe > CC = gcc.exe > WINDRES = windres.exe > RES = > OBJ = main.o $(RES) > LINKOBJ = main.o $(RES) > LIBS = -L"D:/LANG/MinGW3001/lib" > INCS = -I"D:/LANG/MinGW3001/include" > CXXINCS = -I"D:/LANG/MinGW3001/include/c++" -I"D:/LANG/MinGW3001/include" > BIN = Warn2Mak.exe > CXXFLAGS = $(CXXINCS) > CFLAGS = $(INCS) > > .PHONY: all all-before all-after clean clean-custom > > all: all-before Warn2Mak.exe all-after > > > clean: clean-custom > rm -f $(OBJ) $(BIN) > > $(BIN): $(LINKOBJ) > $(CC) $(LINKOBJ) -o "Warn2Mak.exe" $(LIBS) > > main.o: main.c main.c:3:2: warning: #warning "MyComment" > $(CC) -c main.c -o main.o $(CFLAGS) > > -------------------------------------------- > > I attach test project. > > Any suggestions? > Thanks in advance > Collins ---------------------------------------- Content-Type: application/x-zip-compressed; charset="iso-8859-2"; name="Warn2Mak.zip" Content-Transfer-Encoding: base64 Content-Description: ---------------------------------------- |
|
From: Hossein H. <ult...@em...> - 2003-10-02 15:58:31
|
Dear Michael, > Where is the best place to find header files? Is there a good collection > somewhere, like cpan is for perl? You mean good, free-to-download libraries? If that's the case there are several, several, several ones. E.g., consider the followings: www.cplusplus.com www.accu.org www.boost.org www.stlport.org www.cuj.com www.ddj.com www.relisoft.com www.comeaucomputing.com www.bloodshed.net www.codeproject.com www.codeguru.com cliodhna.cop.uop.edu/~hetrick/c-sources.html www.tcfb.com/freetechbooks/bookcpp.html If that's not the case (and that's probably because I do not know Perl), and you just want to know whether there is a standard sub-directory of the installation path in which one can find the header files, they are usually in the sub-directory of "\include". Note that the implementations are allowed to redirect the ".h" files to other addresses and files of other types in which the actual stuff lay. Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Per W. <pw...@ia...> - 2003-10-02 15:51:31
|
What do you want header files for? Your compiler already comes stocked with all header files needed for using the supplied libraries. If you install additional libraries, the installation package will also contain any extra header files needed. /Per W On Thu, 2 Oct 2003, Michael D. Smith wrote: > > Where is the best place to find header files? Is there a good collection > somewhere, like cpan is for perl? > > ms > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Michael D. S. <for...@hi...> - 2003-10-02 15:22:25
|
Where is the best place to find header files? Is there a good collection somewhere, like cpan is for perl? ms |
|
From: Opacki, J. <Jos...@ng...> - 2003-10-02 15:12:24
|
Well that explains it...It was a mis-typing on my part.
Thanks.
-----Original Message-----
From: Per Westermark [mailto:pw...@ia...]
Sent: Thursday, October 02, 2003 11:10 AM
To: Opacki, Joseph
Cc: 'dev...@li...'
Subject: Re: [Dev-C++] Memory Error in simple array sort
How can you call fillArray and say that the size of the array is 10, when
I can clearly see that your array declaration is only of size 1...
/Per W
On Thu, 2 Oct 2003, Opacki, Joseph wrote:
> When I run the program below, I am getting a memory error:
>
> The instruction ...referenced memory...could not be "read".
>
> I don't exactly don't know what is going on hear, so I thoughI could reach
> out to the experts and ask.
>
> The program asks for a list of integers and inputs them into an array.
You
> end the list of integers with a negative number, then the app sorts it and
> redisplays your input to you lowest to greatest. When ran I got the error
> above and it crashed. I then put the sytem("pause") statement in and it
ran
> fine. After it paused, then it crashed.
>
> Here is the code:
>
> // array sort demonstration
> #include <iostream>
> #include <cstdlib>
>
> void fillArray(int a[], int size, int& numberUsed);
> /*
> numberUsed is the number of values stored in a. a[0] through
> a[numberUsed - 1]
> have been filled with nonnegative integers read from the keyboard
> */
>
> void sort(int a[], int numberUsed);
> /*
> the values of a[0] through a[numberUsed - 1] have been rearranged so
> that
> a[0] <= a[1] <= a[2] ... a[numberUsed - 1]
> */
>
> void swapValues(int& v1, int& v2);
> // interchanges the values of v1 and v2
>
> int indexSmallest(const int a[], int startIndex, int numberUsed);
> /*
> returns the index of i such that a[i] is the smallest of the values
> a[startIndex, a[startIndex + 1] ..., a[numberUsed - 1]
> */
>
> int main()
> {
> using namespace std;
>
> cout << "This program sorts numbers from lowest to highest." << endl;
>
> int sampleArray[1], numberUsed;
>
> fillArray(sampleArray, 10, numberUsed);
> sort(sampleArray, numberUsed);
>
> cout << "In sorted order the numbers are: " << endl;
>
> for ( int index = 0; index < numberUsed; index++ )
> {
> cout << sampleArray[index] << " ";
> }
>
> cout << endl;
>
> system("PAUSE");
> return 0;
> }
>
> void fillArray(int a[], int size, int& numberUsed)
> {
> using namespace std;
>
> cout << "Enter up to " << size << " nonnegative whole number.\n"
> << "Mark the end of the list with a negative number.\n";
>
> int next, index = 0;
> cin >> next;
>
> while ( (next >= 0) && (index < size) )
> {
> a[index] = next;
> index++;
> cin >> next;
> }
>
> numberUsed = index;
> }
>
> void sort(int a[], int numberUsed)
> {
> int index_Smallest;
>
> for ( int index = 0; index < numberUsed - 1; index++ )
> { // place the correct value in a[index]
> index_Smallest = indexSmallest(a, index, numberUsed);
> swapValues(a[index], a[index_Smallest]);
> // a[0] <= a[1] <= ... <= a[index] are the smallest of the
original
> array
> // elements. The rest of the lements are in the remaining
> positions.
> }
> }
>
> void swapValues(int& v1, int& v2)
> {
> int temp;
> temp = v1;
> v1 = v2;
> v2 = temp;
> }
>
> int indexSmallest(const int a[], int startIndex, int numberUsed)
> {
> int min = a[startIndex], indexMin = startIndex;
>
> for ( int index = startIndex + 1; index < numberUsed; index++ )
> {
> if ( a[index] < min ) // change to > to change sort arrangement
> {
> min = a[index];
> indexMin = index;
> // min is the smallest of a[startIndex] through a[index]
> }
> }
>
> return indexMin;
> }
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Per W. <pw...@ia...> - 2003-10-02 15:11:07
|
How can you call fillArray and say that the size of the array is 10, when
I can clearly see that your array declaration is only of size 1...
/Per W
On Thu, 2 Oct 2003, Opacki, Joseph wrote:
> When I run the program below, I am getting a memory error:
>
> The instruction ...referenced memory...could not be "read".
>
> I don't exactly don't know what is going on hear, so I thoughI could reach
> out to the experts and ask.
>
> The program asks for a list of integers and inputs them into an array. You
> end the list of integers with a negative number, then the app sorts it and
> redisplays your input to you lowest to greatest. When ran I got the error
> above and it crashed. I then put the sytem("pause") statement in and it ran
> fine. After it paused, then it crashed.
>
> Here is the code:
>
> // array sort demonstration
> #include <iostream>
> #include <cstdlib>
>
> void fillArray(int a[], int size, int& numberUsed);
> /*
> numberUsed is the number of values stored in a. a[0] through
> a[numberUsed - 1]
> have been filled with nonnegative integers read from the keyboard
> */
>
> void sort(int a[], int numberUsed);
> /*
> the values of a[0] through a[numberUsed - 1] have been rearranged so
> that
> a[0] <= a[1] <= a[2] ... a[numberUsed - 1]
> */
>
> void swapValues(int& v1, int& v2);
> // interchanges the values of v1 and v2
>
> int indexSmallest(const int a[], int startIndex, int numberUsed);
> /*
> returns the index of i such that a[i] is the smallest of the values
> a[startIndex, a[startIndex + 1] ..., a[numberUsed - 1]
> */
>
> int main()
> {
> using namespace std;
>
> cout << "This program sorts numbers from lowest to highest." << endl;
>
> int sampleArray[1], numberUsed;
>
> fillArray(sampleArray, 10, numberUsed);
> sort(sampleArray, numberUsed);
>
> cout << "In sorted order the numbers are: " << endl;
>
> for ( int index = 0; index < numberUsed; index++ )
> {
> cout << sampleArray[index] << " ";
> }
>
> cout << endl;
>
> system("PAUSE");
> return 0;
> }
>
> void fillArray(int a[], int size, int& numberUsed)
> {
> using namespace std;
>
> cout << "Enter up to " << size << " nonnegative whole number.\n"
> << "Mark the end of the list with a negative number.\n";
>
> int next, index = 0;
> cin >> next;
>
> while ( (next >= 0) && (index < size) )
> {
> a[index] = next;
> index++;
> cin >> next;
> }
>
> numberUsed = index;
> }
>
> void sort(int a[], int numberUsed)
> {
> int index_Smallest;
>
> for ( int index = 0; index < numberUsed - 1; index++ )
> { // place the correct value in a[index]
> index_Smallest = indexSmallest(a, index, numberUsed);
> swapValues(a[index], a[index_Smallest]);
> // a[0] <= a[1] <= ... <= a[index] are the smallest of the original
> array
> // elements. The rest of the lements are in the remaining
> positions.
> }
> }
>
> void swapValues(int& v1, int& v2)
> {
> int temp;
> temp = v1;
> v1 = v2;
> v2 = temp;
> }
>
> int indexSmallest(const int a[], int startIndex, int numberUsed)
> {
> int min = a[startIndex], indexMin = startIndex;
>
> for ( int index = startIndex + 1; index < numberUsed; index++ )
> {
> if ( a[index] < min ) // change to > to change sort arrangement
> {
> min = a[index];
> indexMin = index;
> // min is the smallest of a[startIndex] through a[index]
> }
> }
>
> return indexMin;
> }
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Opacki, J. <Jos...@ng...> - 2003-10-02 15:01:20
|
When I run the program below, I am getting a memory error:
The instruction ...referenced memory...could not be "read".
I don't exactly don't know what is going on hear, so I thoughI could reach
out to the experts and ask.
The program asks for a list of integers and inputs them into an array. You
end the list of integers with a negative number, then the app sorts it and
redisplays your input to you lowest to greatest. When ran I got the error
above and it crashed. I then put the sytem("pause") statement in and it ran
fine. After it paused, then it crashed.
Here is the code:
// array sort demonstration
#include <iostream>
#include <cstdlib>
void fillArray(int a[], int size, int& numberUsed);
/*
numberUsed is the number of values stored in a. a[0] through
a[numberUsed - 1]
have been filled with nonnegative integers read from the keyboard
*/
void sort(int a[], int numberUsed);
/*
the values of a[0] through a[numberUsed - 1] have been rearranged so
that
a[0] <= a[1] <= a[2] ... a[numberUsed - 1]
*/
void swapValues(int& v1, int& v2);
// interchanges the values of v1 and v2
int indexSmallest(const int a[], int startIndex, int numberUsed);
/*
returns the index of i such that a[i] is the smallest of the values
a[startIndex, a[startIndex + 1] ..., a[numberUsed - 1]
*/
int main()
{
using namespace std;
cout << "This program sorts numbers from lowest to highest." << endl;
int sampleArray[1], numberUsed;
fillArray(sampleArray, 10, numberUsed);
sort(sampleArray, numberUsed);
cout << "In sorted order the numbers are: " << endl;
for ( int index = 0; index < numberUsed; index++ )
{
cout << sampleArray[index] << " ";
}
cout << endl;
system("PAUSE");
return 0;
}
void fillArray(int a[], int size, int& numberUsed)
{
using namespace std;
cout << "Enter up to " << size << " nonnegative whole number.\n"
<< "Mark the end of the list with a negative number.\n";
int next, index = 0;
cin >> next;
while ( (next >= 0) && (index < size) )
{
a[index] = next;
index++;
cin >> next;
}
numberUsed = index;
}
void sort(int a[], int numberUsed)
{
int index_Smallest;
for ( int index = 0; index < numberUsed - 1; index++ )
{ // place the correct value in a[index]
index_Smallest = indexSmallest(a, index, numberUsed);
swapValues(a[index], a[index_Smallest]);
// a[0] <= a[1] <= ... <= a[index] are the smallest of the original
array
// elements. The rest of the lements are in the remaining
positions.
}
}
void swapValues(int& v1, int& v2)
{
int temp;
temp = v1;
v1 = v2;
v2 = temp;
}
int indexSmallest(const int a[], int startIndex, int numberUsed)
{
int min = a[startIndex], indexMin = startIndex;
for ( int index = startIndex + 1; index < numberUsed; index++ )
{
if ( a[index] < min ) // change to > to change sort arrangement
{
min = a[index];
indexMin = index;
// min is the smallest of a[startIndex] through a[index]
}
}
return indexMin;
}
|
|
From: Prathmesh M. <pra...@te...> - 2003-10-02 13:00:48
|
Hello all, I am new to Dev-cpp. Actually just started 2 days back. I am trying to run an opengl program from Dev-cpp as a console window. Along with the opengl program, I also have some "printf" statements based on certain actions happening in opengl window. Now the problem is I cant figure out where the text with the "printf" command is being printed out. It is of course not being printed in opengl window, because "printf" does not work in opengl, as we all know, and to print out in opengl there is a particular way. So I m really not able to understand, where the text with "printf" statement is being displayed along with the running opengl command. Can anybody plz help me and tell me where should I look for the printed text? I was using Borland C++ IDE before and in that you have 2 console windows, wherein in one window opengl runs and in the other window the normal printf text appears. There is no such thing in Dev-cpp as 2 console windows. So plz help. Prathmesh -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Mark S. <mar...@li...> - 2003-10-02 11:06:27
|
Hi all Well here is a little more info which I obtained from Konstantin Knizhnik the original author of the windows port of winbgi. On win98 if I set the display properties settings to 256 colors then the software works OK on the win98 machine, does this suggest a possible fix? Thanks in advance for any suggestions. Regards mark -----Original Message----- From: Mark Smith [mailto:mar...@li...] Sent: 30 September 2003 13:24 To: Dev-Cpp-Users (E-mail) Subject: [Dev-C++] dev BGI library OS dependant behaviour Hi all firstly thanks to Yeoh for the dev project files for the static library & bgidemo ( http://www.yeohhs.com/shareware/winbgi_DevCpp.zip ) When I use the outtext() function & run on win2000 the text is in the colour set by setcolor and the background colour is as set by setbkcolour as one would expect, but if I rebuild & run it on a win98 machine the text colour is OK but the background colour goes to black irrespective of what I set the background colour to. Does anyone have a fix or must I live with the performance difference between the OS ? P.S. I'm not familiar with windows API programming :-( TIA Mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003 The information contained in this e-mail message (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an addressee, any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this communication in error, please contact us immediately so that we can correct the error. |
|
From: Chris S. <CS...@Ai...> - 2003-10-02 04:39:47
|
Damian,=20 =20 When you run DevC++ from the IDE (ie the development environment) and = don't specify a file path when opening files, then DevC++ uses the = default path, ie the location of your DevC++ program files, usually = "C:\Program Files\Dev-C++\Bin" or similar. So this is where your = application will look when trying to open a file.=20 =20 To get around this. either specify the full path of the files you are = trying to open, or put the files in the same place as your DevC++ = application. The first suggestion is the more elegant and efficient.=20 =20 Chris=20 =20 =20 -----Original Message----- From: damian knight [mailto:kni...@ho...] Sent: Thursday, 2 October 2003 11:59 AM To: dev...@li... Subject: [Dev-C++] opening files Hi=20 I am currently running Dev C++ v.4. I have XP home edition as my OS. = When i compile and run my program, the files I am trying to read from = are not being found. They are located in the same directory as my .cpp = files and the program works at a different location running Win 2000! Any ideas? Damian _____ =20 Get less junk mail with ninemsn Premium. Upgrade now! = <http://g.msn.com/8HMBENAU/2755??PS=3D> = ------------------------------------------------------- This sf.net = email is sponsored by:ThinkGeek Welcome to geek heaven. = http://thinkgeek.com/sf _______________________________________________ = Dev-cpp-users mailing list Dev...@li... TO = UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 |
|
From: damian k. <kni...@ho...> - 2003-10-02 01:59:24
|
<html><div style='background-color:'><DIV> <P><BR><BR></P>Hi </DIV> <DIV></DIV> <P>I am currently running Dev C++ v.4. I have XP home edition as my OS. When i compile and run my program, the files I am trying to read from are not being found. They are located in the same directory as my .cpp files and the program works at a different location running Win 2000!</P> <P>Any ideas?</P> <P>Damian</P></div><br clear=all><hr>Get less junk mail with ninemsn Premium. <a href="http://g.msn.com/8HMBENAU/2755??PS="> Upgrade now!</a> </html> |
|
From: Natalie B. <nap...@lo...> - 2003-10-02 00:38:40
|
I've just started learning C++ and I'm having a problem with DevC++. I = can compile the exercises, but none of them will run at all. I've = followed all the set-up instructions to the letter during the = installation process, but nothing.=20 If anyone can explain how to fix this it would be much appreciated. The = code should run since it follows the examples in the book exactly... Many thanks for any help |