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
(11) |
2
(8) |
3
(2) |
4
(13) |
5
(8) |
6
(16) |
7
(11) |
8
(5) |
9
(9) |
10
(13) |
11
(20) |
12
(10) |
13
(14) |
14
|
15
(3) |
16
(14) |
17
(10) |
18
(11) |
19
(5) |
20
(8) |
21
(7) |
22
(4) |
23
(11) |
24
|
25
(2) |
26
(4) |
27
(1) |
28
(5) |
29
(11) |
30
(6) |
|
From: Julio L. <ju2...@ya...> - 2001-11-30 19:28:06
|
is memset and free defined in a special MSVC++ header file? I have a glut program made for MSVC++ and am having a hard time using it on Dev-C++ because those functions are not defined. Does anyone know if there is a website that has the header file I need? ===== Julio __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |
From: Mike M. <mc...@ms...> - 2001-11-30 17:19:51
|
I have finally accomplished compiling a dll and a project that uses it, thanks to those that helped! My only problem now is that I cannot use iostream's cout within the DLL, I get undefined reference errors... I've been working on this in the mingw mailing list, and came across an interesting discovery today... I'm trying to include the libstdc++.a library into the dll project, but its not getting passed on the command line at link time. Here is the compile and Link command lines : ---------- Compiling files : C:\OPENGL\DEV-C_~1\BIN\gcc -c -DBUILDING_DLL=1 -I. "c:\opengl\using a dll\printdll\print.cpp" -s -mwindows -IC:\OPENGL\DEV-C_~1\INCLUDE\ -IC:\OPENGL\DEV-C_~1\INCLUDE\G__~1 -IC:\OPENGL\DEV-C_~1\INCLUDE\ -LC:\OPENGL\DEV-C_~1\LIB\ -BC:\OPENGL\DEV-C_~1\BIN\ Linking files : C:\OPENGL\DEV-C_~1\BIN\dllwrap --export-all --output-def C:\OPENGL\USINGA~1\PRINTDLL\dll.def --implib "C:\OPENGL\USINGA~1\PRINTDLL\libPrintdll.a" -o c:\opengl\usinga~1\printdll\Printdll.dll "c:\opengl\using a dll\printdll\print.o" ---------- If, in project options, I uncheck the box that says "Create a DLL" then I will see "-lstdc++" on the link command line, but not if the "Create a DLL" option is checked. Is this a bug within Dev-C++ ? I tried running the linking command, with all the options, from a dos window but the command is too long. Thanks for any help, Mike _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: dx F. <vin...@ed...> - 2001-11-30 11:58:41
|
Ok. now Ive done it... but still am getting a zero count on application windows. Anybody knows what Im doing wrong? the following is a test code. Note that the code wasnt optimized for speed for it still is a test. #include <string> #include <windows.h> #include <iostream.h> BOOL IsAPPWINDOW(HWND); BOOL IsVISIBLE(HWND); int i = 0; BOOL CALLBACK AppGetWindows(HWND hwnd, LPARAM lParam) { if (IsAPPWINDOW(hwnd)) { // APPWINDOW... cin >> str2; if (IsVISIBLE(hwnd)) { // VISIBLE. Adding... i = i + 1; } } return true; } BOOL IsAPPWINDOW(HWND hwnd) { if ((GetWindowLong(hwnd,GWL_EXSTYLE) & WS_EX_APPWINDOW)==WS_EX_APPWINDOW) { // the window referenced by the handle has a WS_EX_APPWINDOW style return true; } else { // no it doesnt return false; } } BOOL IsVISIBLE(HWND hwnd) { if ((GetWindowLong(hwnd,GWL_STYLE) & WS_VISIBLE)==WS_VISIBLE) { // the window referenced by the handle has a WS_VISIBLE style return true; } else { // no it doesnt return false; } } int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int cmdShow) { if (EnumWindows(*AppGetWindows, 0)) { // print out the number of windows cout << i; } else { cout << "EnumWindows Failed!"; } string str; cin >> str; } The program is suposed to detect the current windows with the WS_VISIBLE and WS_EX_APPWINDOW styles and then count them. The output is the number of windows that met the criteria. As one of you all said... the windows taskbar only enumerates windows with the afformentioned styles. Take note that the code is not yet optimized for it is still a test code. Any help on optimizing the code would be a great help. Back to the problem... Did I do something wrong again??? I have other applications running and it is supposed to output the number of the windows available in the taskbar. Anybody! Help! __________________________________ www.edsamail.com |
From: Ricardo R. <ri...@po...> - 2001-11-30 08:44:34
|
to stay up on the screen the result of a program you must put a last sentence in your source code, before the 'return 0' : system("PAUSE"); I hope this will work. In fact this sentence appears as defect in Dev++. |
From: Jason H. <jas...@bt...> - 2001-11-30 04:08:23
|
Hiya. You'll find enclosed a revamped version of your program that works ok. I hope you don't mind? However before you look at the files I'll tell you what made it not work and see if you can work it out for yourself before peeking. The main problem of the functions you wrote was that you were trying to access private members of an object from outside of that object (non-member functions). You could give the fuctions friend access to the class, but you don't need to. One thing that helps is that you don't need to worry about changing the object that is passed. It is a copy of the original and any changes to it won't affect the original. Unless an argument is passed as a referenced then a copy is made of the original for the function. The only other way the function could change the original would for a pointer to be passed, which is the traditional approach. Be aware that making a copy of objects adds overhead to a function call, slowing everything down in the case of very big objects. The size of 100 you use at the moment is OK for now though. Now you know that you aren't affecting the original then you can destructivly operate on the passed copy and get the info you want. That is you can count the values by popping them off the stack, for example. If you wanted to do it non-destructivly then you could add the ability to the class, meaning add other member functions that provide other information, but don't expose the private members unecessarily. The alternative is to make a manual copy and either work with the copy or use original and restore it after, but be aware that this isn't much different than the current approach! I have made some other optimisations in the attached version. Maybe you'll like them, maybe you won't! Regards, Jason. ----- Original Message ----- From: "chromatonus 712" <chr...@ho...> To: <dev...@li...> Sent: Friday, November 30, 2001 2:28 AM Subject: [Dev-C++] stack with class > hi, may I know how to display elements and count the number of elements in a > stack defined below, without destruction? thank you very much! > > > > > > // Program: STACK 2 > // Objective: To understand how a stack works as implemented by a class > // and an array for the data > // Last modified 11-29-01 > > > #include <iostream.h> > #include <conio.h> > > const max_stack = 100; > > class stacktype > { > public: > stacktype(); > // default constructor > // postcondition: initializes stack by setting TOP = 0 > void initialize(); > // postcondition: erase stack by setting TOP = 0 > void push( int ); > // postcondition: If the stack is not full, > // increase TOP by 1 , then > // put info into DATA[TOP] > int pop(); > // postcondition: If the stack is not empty, > // put DATA[TOP] into x, > // decrease TOP by 1, > // return x > bool is_empty(); > // postcondition: Return true if stack is empty, false otherwise. > bool is_full(); > // postcondition: Return true if stack is full, false otherwise. > private: > int mydata[max_stack]; > int mytop; // subscript of the top of the stack > }; > > > //========================================================================== ==== > //============================== Free functions > ================================ > //========================================================================== ==== > > void display_top( stacktype ); > // precondition: send in stack > // postcondition: display, without destruction, the value in data[top] > void display_stack( stacktype ); > // precondition: send in stack > // postcondition: display, without destruction, the values of all the > // elements in the stack, in the order entered. > int count_values( stacktype ); > // precondition: send in stack > // postcondition: return the number of data pieces > int menu(); > // postcondition: initial screen. Display options, allow user to enter > // choice and return this value > > //========================================================================== ==== > //============================== Implementation > ================================ > //========================================================================== ==== > > stacktype::stacktype() > { > mytop = 0; > } > void stacktype::initialize() > { > mytop = 0; > } > bool stacktype::is_empty() > { > if( mytop == 0 ) > return true; > else > return false; > } > bool stacktype::is_full() > { > if( mytop == 99 ) > return true; > else > return false; > } > void stacktype::push( int x ) > { > if( is_full() == false ) > { > mytop++; > mydata[mytop] = x; > } > } > int stacktype::pop() > { > if( is_empty() == false ) > { > int x = mydata[mytop]; > mytop--; > return x; > } > } > > > //========================================================================== ==== > //============================== Client Program > ================================ > //========================================================================== ==== > > int menu() > { > int choice; > cout<< "STACK EDITOR MENU OPTIONS" << "\n"; > cout<< "1. Create new stack" << "\n"; > cout<< "2. Add elements to stack" << "\n"; > cout<< "3. Delete elements from stack" << "\n"; > cout<< "4. Display top element in stack " << "\n"; > cout<< "5. Display whole stack in the order entered" << "\n"; > cout<< "6. Count numbers of elements in stack" << "\n"; > cout<< "7. Exit" << "\n" << "\n"; > gotoxy(0,8); > cout<< "choice? "; > cin>> choice; > return(choice); > } > > int main() > { > stacktype S, T; > int choice, x, i; > choice = menu(); > while( choice != 7 ) > { > switch( choice ) > { > case 1: S.initialize(); > gotoxy(0,8); > cout<< "choice? "; > cin>> choice; > break; > > case 2: gotoxy(0,10); > while(S.is_full() == false) > { > cout<< "number to insert? "; > cin>> x; > S.push(x); > } > gotoxy(0,8); > cout<< "choice? "; > cin>> choice; > break; > > case 3: gotoxy(0,10); > S.pop(); > gotoxy(0,8); > cout<< "choice? "; > cin>> choice; > break; > > case 4: gotoxy(0,12); > display_top(S); > gotoxy(0,8); > cout<< "\n" << "choice? "; > cin>> choice; > break; > > case 5: display_stack(S); > gotoxy(0,8); > cout<< "choice? "; > cin>> choice; > break; > > case 6: count_values(S); > cout<< i; > gotoxy(0,8); > cout<< "choice? "; > cin>> choice; > break; > > case 7: exit(); > break; > > choice = menu(); > } > } > } > > void display_top( stacktype S ) > { > S.pop(); > cout<< S.mytop; > } > > void display_stack( stacktype S ) > { > stacktype T; > while( S.mytop != 0 ) > { > S.pop(); > T.push(S.mytop); > } > while( T.mytop != 0 ) > { > cout<< T.pop(); > T.mytop--; > } > } > > int count_values( stacktype S ) > { > int i = 0; > if(S.mytop != 0) > { > while(S.mytop != 0) > { > S.pop(); > i++; > } > return i; > } > /////// ??????? > } > > int exit() > { > return x; > } > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: chromatonus 7. <chr...@ho...> - 2001-11-30 02:28:40
|
hi, may I know how to display elements and count the number of elements in a stack defined below, without destruction? thank you very much! // Program: STACK 2 // Objective: To understand how a stack works as implemented by a class // and an array for the data // Last modified 11-29-01 #include <iostream.h> #include <conio.h> const max_stack = 100; class stacktype { public: stacktype(); // default constructor // postcondition: initializes stack by setting TOP = 0 void initialize(); // postcondition: erase stack by setting TOP = 0 void push( int ); // postcondition: If the stack is not full, // increase TOP by 1 , then // put info into DATA[TOP] int pop(); // postcondition: If the stack is not empty, // put DATA[TOP] into x, // decrease TOP by 1, // return x bool is_empty(); // postcondition: Return true if stack is empty, false otherwise. bool is_full(); // postcondition: Return true if stack is full, false otherwise. private: int mydata[max_stack]; int mytop; // subscript of the top of the stack }; //============================================================================== //============================== Free functions ================================ //============================================================================== void display_top( stacktype ); // precondition: send in stack // postcondition: display, without destruction, the value in data[top] void display_stack( stacktype ); // precondition: send in stack // postcondition: display, without destruction, the values of all the // elements in the stack, in the order entered. int count_values( stacktype ); // precondition: send in stack // postcondition: return the number of data pieces int menu(); // postcondition: initial screen. Display options, allow user to enter // choice and return this value //============================================================================== //============================== Implementation ================================ //============================================================================== stacktype::stacktype() { mytop = 0; } void stacktype::initialize() { mytop = 0; } bool stacktype::is_empty() { if( mytop == 0 ) return true; else return false; } bool stacktype::is_full() { if( mytop == 99 ) return true; else return false; } void stacktype::push( int x ) { if( is_full() == false ) { mytop++; mydata[mytop] = x; } } int stacktype::pop() { if( is_empty() == false ) { int x = mydata[mytop]; mytop--; return x; } } //============================================================================== //============================== Client Program ================================ //============================================================================== int menu() { int choice; cout<< "STACK EDITOR MENU OPTIONS" << "\n"; cout<< "1. Create new stack" << "\n"; cout<< "2. Add elements to stack" << "\n"; cout<< "3. Delete elements from stack" << "\n"; cout<< "4. Display top element in stack " << "\n"; cout<< "5. Display whole stack in the order entered" << "\n"; cout<< "6. Count numbers of elements in stack" << "\n"; cout<< "7. Exit" << "\n" << "\n"; gotoxy(0,8); cout<< "choice? "; cin>> choice; return(choice); } int main() { stacktype S, T; int choice, x, i; choice = menu(); while( choice != 7 ) { switch( choice ) { case 1: S.initialize(); gotoxy(0,8); cout<< "choice? "; cin>> choice; break; case 2: gotoxy(0,10); while(S.is_full() == false) { cout<< "number to insert? "; cin>> x; S.push(x); } gotoxy(0,8); cout<< "choice? "; cin>> choice; break; case 3: gotoxy(0,10); S.pop(); gotoxy(0,8); cout<< "choice? "; cin>> choice; break; case 4: gotoxy(0,12); display_top(S); gotoxy(0,8); cout<< "\n" << "choice? "; cin>> choice; break; case 5: display_stack(S); gotoxy(0,8); cout<< "choice? "; cin>> choice; break; case 6: count_values(S); cout<< i; gotoxy(0,8); cout<< "choice? "; cin>> choice; break; case 7: exit(); break; choice = menu(); } } } void display_top( stacktype S ) { S.pop(); cout<< S.mytop; } void display_stack( stacktype S ) { stacktype T; while( S.mytop != 0 ) { S.pop(); T.push(S.mytop); } while( T.mytop != 0 ) { cout<< T.pop(); T.mytop--; } } int count_values( stacktype S ) { int i = 0; if(S.mytop != 0) { while(S.mytop != 0) { S.pop(); i++; } return i; } /////// ??????? } int exit() { return x; } _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Charles <cha...@at...> - 2001-11-29 23:32:57
|
Jeff - > > I have installed Dev-C++, and have written a test program, the program compiles, but when running it, it only flashes quickly on the screen. Note that Jason's solution, > If you add #include <cstdlib> at the top and the line: system("PAUSE") is system-specific and therefore not portable. It is better to do this: #include <cstdio> printf("Press ENTER to continue"); fflush(stdout); getchar(); Chuck |
From: Jason H. <jas...@bt...> - 2001-11-29 22:57:22
|
If you add #include <cstdlib> at the top and the line: system("PAUSE"); just before the return 0; then before the program finishes a message saying Press Any Key To Continue will pop up and wait for you. i.e. #include <cstdlib> #include <iostream> int main() { cout << "Hello World!" << endl; system("PAUSE"); return 0; } Jason. ----- Original Message ----- From: "Jeff Clark" <ja...@sp...> To: "Dev-C++ mailing list" <dev...@li...> Sent: Thursday, November 29, 2001 3:42 PM Subject: [Dev-C++] Run Problem > Hello, > > I'm new to C++ development; in fact I'm trying to learn by "Sams Teach > Yourself C++". > > I have installed Dev-C++, and have written a test program, the program > compiles, but when running it, it only flashes quickly on the screen. > > My system is a Pentium III with Windows 2000 installed, the program is > stated below, as it is in the book: > > > > #include <iostream.h> > > int main() > { > int x = 5; > int y = 7; > cout << "\n"; > cout << x + y << " " << x * y; > cout << "\n"; > return 0; > } > > ????? What am I doing wrong that the program when executed does not stay up > on the screen???? > > > Sincerely, > > Jeff > > > > > > > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Kevin W. <ke...@me...> - 2001-11-29 19:55:54
|
You could AND the value you want to test for against the value returned - if ((GetWindowLong(hwnd,GWL_EX_STYLE) & WS_EX_APPWINDOW) == WS_EX_APPWINDOW) Kev. ----- Original Message ----- From: dx FX <vin...@ed...> To: Dev-C++ mailing list <dev...@li...> Sent: Friday, November 30, 2001 6:05 AM Subject: RE: Re: [Dev-C++] Win32 shell programming > Ok I did some researching on what you said... and I found out that I could retrieve window styles as well as extended styles by using GetWindowLong(HWND hwnd, int nIndex) which returns long. However I also remember that window styles(as well as extended ones) can be combined by a "|". No wonder the following statement(s) would return false for any values of hwnd passed through EnumWindowsProc when I call EnumWindows: > > BOOL IsAppWindow(HWND hwnd) { > if (GetWindowLong(hwnd,GWL_EX_STYLE)==WS_EX_APPWINDOW) { > > return true; > > } else { > > return false; > > } > } > > Did I do something wrong? If there is, please tell me. The function is supposed to detect if a handle refers to a window with the WS_EX_APPWINDOW style. Note the word WITH which not necesarilly means "ONLY". So how do I get around this problem? > > Note: > I have Dev-C++ and Win32 help up and running on my computer while I was running the program with the afformentioned function. I tried to count the number of windows with WS_EX_APPWINDOW extended style. But I always end up with 0. I'm expecting to get an output of greater than 0. How do I get around this problem? > > __________________________________ > www.edsamail.com > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Ioannis V. <no...@ya...> - 2001-11-29 19:27:33
|
I do not know win32 api, but you can do it with ANSI C++ if you know the format of the access file, open it and read the certain places. But this is very low level. For a more high level way you must use win32 api (or mfc, e.t.c.). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Sten Willemsen > Sent: Thursday, November 29, 2001 11:40 AM > To: dev...@li... > Subject: [Dev-C++] MS Access (Jet) > > > Hello list, > > I have learned c++ at universsity but my practical experience > is mostly with VB. This is getting more and more inadequate > for my purposes however mostly because it is to slow. The > compiler is working more or less fine on my computer (I have > experiences some crashes of the IDE). For one project of mine > I would like to read the fields in an MC Access database. I > can't convert it to another format since it is also used by > others. NB: I only read to read a few values most of the work > goes in doing a series of calculations that depend on them. > Can anyone give me a tip how to do this? I would really like > to see a working example. > > Sten > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Mike M. <mc...@ms...> - 2001-11-29 17:23:06
|
Hello Jeff, You'll have to put a catch in there to stop the window from closing. What's happening is the program is opening the dos window, executing, then closing the dos window when its done. You see a flashing window :) Include the header file stdlib.h (#include <stdlib.h>) then add, at the bottom of your program before the return statement the command "system("pause");" This will hold the window open for you long enough to see the stuff (till you hit a key) Mike >My system is a Pentium III with Windows 2000 installed, the program is >stated below, as it is in the book: > > > > #include <iostream.h> > >int main() >{ >int x = 5; >int y = 7; >cout << "\n"; >cout << x + y << " " << x * y; >cout << "\n"; >return 0; >} > > ????? What am I doing wrong that the program when executed does not stay >up >on the screen???? > > >Sincerely, > >Jeff > > > > > > > > > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Daniel G. <sp...@ho...> - 2001-11-29 15:56:51
|
<html><div style='background-color:'><DIV> <P>Dev will pop up then down quickly in short programs because the program has executed, finished, and thus destroyed the window.</P> <P>What I normally do is add something like cin>>x; that way the computer MUST wait for me to push a button to resume and thus exit the program.</P> <P>oh and it should be #include <iostream.h></P> <P> </P> <P>Hope that helps!<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "Jeff Clark" <JA...@SP...> <DIV></DIV>>To: "Dev-C++ mailing list" <DEV...@LI...> <DIV></DIV>>Subject: [Dev-C++] Run Problem <DIV></DIV>>Date: Thu, 29 Nov 2001 07:42:37 -0800 <DIV></DIV>> <DIV></DIV>>Hello, <DIV></DIV>> <DIV></DIV>>I'm new to C++ development; in fact I'm trying to learn by "Sams Teach <DIV></DIV>>Yourself C++". <DIV></DIV>> <DIV></DIV>>I have installed Dev-C++, and have written a test program, the program <DIV></DIV>>compiles, but when running it, it only flashes quickly on the screen. <DIV></DIV>> <DIV></DIV>>My system is a Pentium III with Windows 2000 installed, the program is <DIV></DIV>>stated below, as it is in the book: <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> #include <IOSTREAM.H> <DIV></DIV>> <DIV></DIV>>int main() <DIV></DIV>>{ <DIV></DIV>>int x = 5; <DIV></DIV>>int y = 7; <DIV></DIV>>cout << "\n"; <DIV></DIV>>cout << x + y << " " << x * y; <DIV></DIV>>cout << "\n"; <DIV></DIV>>return 0; <DIV></DIV>>} <DIV></DIV>> <DIV></DIV>> ????? What am I doing wrong that the program when executed does not stay up <DIV></DIV>>on the screen???? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>Sincerely, <DIV></DIV>> <DIV></DIV>>Jeff <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
From: Jeff C. <ja...@sp...> - 2001-11-29 15:43:09
|
Hello, I'm new to C++ development; in fact I'm trying to learn by "Sams Teach Yourself C++". I have installed Dev-C++, and have written a test program, the program compiles, but when running it, it only flashes quickly on the screen. My system is a Pentium III with Windows 2000 installed, the program is stated below, as it is in the book: #include <iostream.h> int main() { int x = 5; int y = 7; cout << "\n"; cout << x + y << " " << x * y; cout << "\n"; return 0; } ????? What am I doing wrong that the program when executed does not stay up on the screen???? Sincerely, Jeff |
From: dx F. <vin...@ed...> - 2001-11-29 13:55:15
|
Ok I did some researching on what you said... and I found out that I could retrieve window styles as well as extended styles by using GetWindowLong(HWND hwnd, int nIndex) which returns long. However I also remember that window styles(as well as extended ones) can be combined by a "|". No wonder the following statement(s) would return false for any values of hwnd passed through EnumWindowsProc when I call EnumWindows: BOOL IsAppWindow(HWND hwnd) { if (GetWindowLong(hwnd,GWL_EX_STYLE)==WS_EX_APPWINDOW) { return true; } else { return false; } } Did I do something wrong? If there is, please tell me. The function is supposed to detect if a handle refers to a window with the WS_EX_APPWINDOW style. Note the word WITH which not necesarilly means "ONLY". So how do I get around this problem? Note: I have Dev-C++ and Win32 help up and running on my computer while I was running the program with the afformentioned function. I tried to count the number of windows with WS_EX_APPWINDOW extended style. But I always end up with 0. I'm expecting to get an output of greater than 0. How do I get around this problem? __________________________________ www.edsamail.com |
From: Sten W. <ste...@ly...> - 2001-11-29 09:40:50
|
Hello list, I have learned c++ at universsity but my practical experience is mostly with VB. This is getting more and more inadequate for my purposes however mostly because it is to slow. The compiler is working more or less fine on my computer (I have experiences some crashes of the IDE). For one project of mine I would like to read the fields in an MC Access database. I can't convert it to another format since it is also used by others. NB: I only read to read a few values most of the work goes in doing a series of calculations that depend on them. Can anyone give me a tip how to do this? I would really like to see a working example. Sten |
From: Mike M. <mc...@ms...> - 2001-11-29 03:29:30
|
[LONG POST WARNING] I am trying to build a DLL in Dev-C++... I have a standard install (Version 4, mingw, with the 4.01 upgrade, and the mingw 1.1 upgrade, but I got same problem before I upgraded mingw) so I'm asking here to get an idea of what I'm doing wrong, I think it's a user error more than a compiler error... <G> I started a DLL C++ project, added these two files, print.cpp and print.h. PRINT.CPP ------------ #include "print.h" __declspec(dllexport) void printMessage() { // Print out a message cout << "message from the .dll" << endl << endl; } ------------ PRINT.H ------------ #ifndef PRINT_H #define PRINT_H #include <iostream> using namespace std; __declspec(dllexport) void printMessage(); #endif ------------ When I compile it, I get the following output from the compiler log COMPILER LOG ------------ Reading specs from D:/DEV-C_~1/BIN/../lib/gcc-lib/mingw32/2.95.3-6/specs gcc version 2.95.3-6 (mingw special) D:\DEV-C_~1\BIN\..\lib\gcc-lib\mingw32\2.95.3-6\cpp0.exe -lang-c++ -v -I. -ID:\DEV-C_~1\INCLUDE\ -ID:\DEV-C_~1\INCLUDE\G__~1 -ID:\DEV-C_~1\INCLUDE\ -iprefix D:\DEV-C_~1\BIN\../lib/gcc-lib/mingw32/2.95.3-6/ -isystem D:/DEV-C_~1/BIN/include -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Di386 -D_WIN32 -DWIN32 -D__WIN32__ -D__MINGW32__=1.0 -D__MSVCRT__ -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D_stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_WIN32 -D__WIN32__ -D__WIN32__ -D__MINGW32__=1.0 -D__MSVCRT__ -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D___stdcall__=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386 -D__WIN32 -D__WINNT -D___stdcall=__attribute__((__stdcall__)) -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -H -remap -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -DBUILDING_DLL=1 d:\gt\new projects 4\using a dll\printdll\print.cpp C:\WIN98\TEMP\ccvrxdfb.ii GNU CPP version 2.95.3-6 (mingw special) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: . D:/DEV-C_~1/INCLUDE D:/DEV-C_~1/INCLUDE/G__~1 D:/DEV-C_~1/INCLUDE D:/DEV-C_~1/BIN/../lib/gcc-lib/mingw32/2.95.3-6/../../../../include D:/DEV-C_~1/BIN/../lib/gcc-lib/mingw32/2.95.3-6/../../../../mingw32/include D:/DEV-C_~1/BIN/../lib/gcc-lib/mingw32/2.95.3-6/include End of search list. The following default directories have been omitted from the search path: /mingw/lib/gcc-lib/mingw32/2.95.3-6/../../../../include/g++-3 /usr/local/mingw32/include End of omitted list. d:/gt/new projects 4/using a dll/printdll/print.h D:/DEV-C_~1/INCLUDE/G__~1/iostream D:/DEV-C_~1/INCLUDE/G__~1/iostream.h D:/DEV-C_~1/INCLUDE/G__~1/streambuf.h D:/DEV-C_~1/INCLUDE/G__~1/libio.h D:/DEV-C_~1/INCLUDE/_G_config.h D:/DEV-C_~1/INCLUDE/stddef.h D:\DEV-C_~1\BIN\cc1plus.exe C:\WIN98\TEMP\ccvrxdfb.ii -quiet -dumpbase print.cc -mwindows -version -o C:\WIN98\TEMP\ccAaD6db.s GNU C++ version 2.95.2 19991024 (release) (i386-mingw32msvc) compiled by GNU C version 2.95.2 19991024 (release). D:\DEV-C_~1\BIN\as.exe -o print.o C:\WIN98\TEMP\ccAaD6db.s ------------ and the linker output is : LINKER OUTPUT -------------- d:\gt\new projects 4\using a dll\printdll\print.o(.text+0x22):print.cpp: undefined reference to `endl(ostream &)' d:\gt\new projects 4\using a dll\printdll\print.o(.text+0x2a):print.cpp: undefined reference to `endl(ostream &)' d:\gt\new projects 4\using a dll\printdll\print.o(.text+0x37):print.cpp: undefined reference to `cout' d:\gt\new projects 4\using a dll\printdll\print.o(.text+0x3c):print.cpp: undefined reference to `ostream::operator<<(char const *)' D:\DEV-C_~1\BIN\dllwrap: no export definition file provided D:\DEV-C_~1\BIN\dllwrap: creating one, but that may not be what you want D:\DEV-C_~1\BIN\dllwrap: D:\DEV-C_~1\BIN\gcc exited with status 1 -------------- I've included libstdc++.a in the project options (suggested in the mingw forum), but still no go.. Some people (in mingw list) have suggested how to do it via the command line, but those options didn't work either. I would really like to learn how to do this through the Dev-C++ IDE, which I'm sure somebody has done... If anyone could enlighten me, I would greatly appreciate it. Thanks, Mike _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
From: Jason <tux...@au...> - 2001-11-29 00:15:35
|
http://www.collegeboard.org/ap/students/compsci/classes.html This should get you all the files you need. I think I know what you are = talking about with bool.h, apstring right? I had the same problem and = you just need to comment out the include because I believe (someone help = out here) that bool.h is included into Dev-C++. I hope that helped. bana-sea- ----- Original Message -----=20 From: Richard Lund=20 To: dev...@li...=20 Sent: Wednesday, November 28, 2001 3:39 PM Subject: [Dev-C++] header files Hey, what's happening? Does anyone know where I can find AP header = files and <bool.h> so I can download them? Thanks Richard Lund -------------------------------------------------------------------------= ----- Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Richard L. <rlu...@ho...> - 2001-11-28 21:40:05
|
<html><div style='background-color:'><DIV>Hey, what's happening? Does anyone know where I can find AP header files and <bool.h> so I can download them? Thanks</DIV> <DIV> </DIV> <DIV>Richard Lund</DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
From: Julio L. <ju2...@ya...> - 2001-11-28 20:49:02
|
I seem to be having a problem using glut on Dev-C++. I had gotten the same errors(undefined references to certain functions) using openGL and I later found out it was that I had not linked the libraries needed. However, with glut even when I link the correct libraries I still get undefined references to the glut functions. Has anyone else been able to get glut to work on Dev-C++ or know how to get it to work??? I would appreciate any suggestions.... ===== Julio __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |
From: Ioannis V. <no...@ya...> - 2001-11-28 19:15:57
|
Dev-C++ has some bugs mainly on the IDE, but it provides successfully the main functionalities. New version will be presumambly even better. Now as for your NT 4 machine check to see if you have write access in the account you use to compile both in your project's directory and Dev-C++ Directories. Also check if you have at least service pack 3 intalled in NT 4. Almost all applications require at least sp3 for running on NT (sp3 must had some radical new-at-the-time changes). I hope these will help. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Alain KOCELNIAK > Sent: Wednesday, November 28, 2001 6:49 PM > To: dev...@li... > Subject: [Dev-C++] Too much bugs in DevC++ ? >=20 >=20 > Do you think DevC++ is a good product for an > engineers school ? > I am a teacher of C++ Programming Language. > My students are going first to develop little > programs ( exercices ) and then more complex softwares > ( with Fltk graphic library ). > =20 > My first experience with it is positive ( on my own > PC ) but on the PC in the school I can use DevC++ due > to this error when I try to compile ( even with a > very little non-graphic program such as HelloWorld )=20 > : "Could not create code completion list file" ???!!!! >=20 > The messages on the mailing-list tend me to think=20 > that DevC++ have others bugs ... >=20 > What is your opinion ? > Too much bugs ? or not ? >=20 > Thanks for your help. >=20 > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en=20 > fran=E7ais ! Yahoo! Courrier : http://courrier.yahoo.fr >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
From: <ak...@ya...> - 2001-11-28 16:49:10
|
Do you think DevC++ is a good product for an engineers school ? I am a teacher of C++ Programming Language. My students are going first to develop little programs ( exercices ) and then more complex softwares ( with Fltk graphic library ). My first experience with it is positive ( on my own PC ) but on the PC in the school I can use DevC++ due to this error when I try to compile ( even with a very little non-graphic program such as HelloWorld ) : "Could not create code completion list file" ???!!!! The messages on the mailing-list tend me to think that DevC++ have others bugs ... What is your opinion ? Too much bugs ? or not ? Thanks for your help. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Courrier : http://courrier.yahoo.fr |
From: <ak...@ya...> - 2001-11-28 13:37:34
|
I want to install Dev C++ for my students in the school where I work. On my own two PCs, DevC++ works fine ( Windows 98, Windows NT ). In my school, PC are also under Windows NT 4.0 system. When I try to compile a very little "Hello World" program I obtain this error message : "Could not create code completion list file". What does mean this error ? How can I solve it ? Thanks for your help. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Courrier : http://courrier.yahoo.fr |
From: Julio L. <ju2...@ya...> - 2001-11-27 20:38:55
|
does any one know how to change the color of the text in a dos console, or do graphics, or of anywhere that has tutorials or information on how to do this? ===== Julio __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 |
From: lo j. <lo...@ms...> - 2001-11-26 23:27:47
|
----- Original Message ----- From: dev...@li... Sent: 26 November 2001 20:15 To: dev...@li... Subject: Dev-cpp-users digest, Vol 1 #533 - 1 msg Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Re: Welcome to the "Dev-cpp-users" mailing list (lvejar@alumnos.ubi= obio.cl) --__--__-- Message: 1 To: dev...@li... Date: Sun, 25 Nov 2001 14:23:12 -0300 (CLST) From: lv...@al... Subject: [Dev-C++] Re: Welcome to the "Dev-cpp-users" mailing list hello everyone: i want to known if is possible to use dos.h funtions like "delay" or "so= und". thanx to anyone --__--__-- _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users End of Dev-cpp-users DigestGet more from the Web. FREE MSN Explorer down= load : http://explorer.msn.com |
From: <Joh...@ao...> - 2001-11-26 21:39:41
|
puchar("\a"); |