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
(5) |
2
(4) |
3
(4) |
4
(10) |
5
(6) |
6
(16) |
7
(4) |
8
|
9
(8) |
10
|
11
(24) |
12
(11) |
13
(5) |
14
(5) |
15
(5) |
16
(2) |
17
(4) |
18
(6) |
19
(4) |
20
(10) |
21
(12) |
22
(11) |
23
(5) |
24
(14) |
25
(10) |
26
(10) |
27
(12) |
28
(25) |
29
(17) |
30
(3) |
31
(7) |
|
|
|
|
|
From: Per W. <pw...@ia...> - 2004-05-31 15:11:59
|
Isn't gprof - available with gcc - a good alternative? /Per W On Mon, 31 May 2004, michele wrote: > hello, > Does someone know a good - free - profiler for dev-c++? > Thanks. > M. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > 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: michele <mic...@li...> - 2004-05-31 14:58:00
|
hello, Does someone know a good - free - profiler for dev-c++? Thanks. M. |
From: Yeoh HS <ye...@ye...> - 2004-05-31 12:32:15
|
THAMAE wrote: > Hi! guys I am trying to interface betwbeen C++ (on Dev-C++) and Ms > Access and I can't establish a connection through a system DSN, has any > one achieved this? > Hello, I have an example C++ program that does this. It was written using Dev-C++, NoDSNCpp-V1.0.zip: ODBC DSNless connection in C++. The download URL is: http://www.yeohhs.com/downloads.htm Best Regards, Yeoh -- http://www.yeohhs.com |
From: Tim S. <ti...@we...> - 2004-05-31 08:28:56
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HI Thamae, you wrote: | Hi! guys I am trying to interface betwbeen C++ (on Dev-C++) and Ms | Access and I can't establish a connection through a system DSN, has any | one achieved this? You could check the wxWidget lib, it has an ODBC class for accessing Access and other dbs. For more information have a look at http://www.wxwidgets.org/ HTH Tim - -- http://we-are-teh-b.org/~tim/borg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAuuxDsMXChvH2qP0RAtNBAKC+BUsflKBSjYjEKLuvh6fYGZmDtACfQfYf t/sHiBDTwlPS20y41VP3W7Y= =Z8UF -----END PGP SIGNATURE----- |
From: THAMAE <m_t...@ya...> - 2004-05-31 07:15:07
|
Hi! guys I am trying to interface betwbeen C++ (on Dev-C++) and Ms Access and I can't establish a connection through a system DSN, has any one achieved this? --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger |
From: <per...@ya...> - 2004-05-31 06:17:47
|
I used to program in VC6 in past.Now I turn to Dev-cpp,I find it is good to use.Because I was new learner in Dev-cpp,when I want to do Windows program,my problem occur----the resource file is not in graph as in VC6.So is there a tutorial about the resource file program in Dev-cpp? ----Thanks Bruce.J --------------------------------- Do You Yahoo!? 嫌邮箱太小?雅虎电邮自助扩容! |
From: Toni W. <to...@ik...> - 2004-05-31 03:19:57
|
On Fri, 2004-05-28 at 21:10, Alf C Stockton wrote: > Some questions I should have asked before starting my current project. > > Is anyone on either of these lists using gtk+ to develop applications to run > on Microsoft Windows? In C ? > If yes are you using Dev-C++? > If no what are you using? Sure. I use Emacs as an editor. The binaries for Win32 version of Silky are built on Linux using MinGW (a cross compilation toolchain). -- Toni Willberg - to...@ik... - http://toniw.iki.fi/ Silky - A Gtk2 client for SILC - http://silky.sourceforge.net/ SILC - Secure Internet Live Conferencing - http://www.silcnet.org/ |
From: <Fra...@Rh...> - 2004-05-30 23:01:29
|
Ich werde ab 29.05.2004 nicht im B=FCro sein. Ich kehre zur=FCck am 09.06.2004. Ich werde Ihre Nachrichten nach meiner R=FCckkehr bearbeiten. = |
From: Per W. <pw...@ia...> - 2004-05-30 10:42:46
|
Note that gsbegin and gsend are _references_ to integers, not pointers, so the for loop shouldn't use any star for pointer indirection. /Per W On Sun, 30 May 2004, Kenneth P. Ruppel wrote: > I'm getting error message "invalid type argument of 'unary *'" on the > stmt indicated, and I just don't see why. Couldja help? I've clipped > out what pertains to these variables. TIA. > Ken > > > > // Functions > void Day1Hit(int &d1, string &day2, vector<string> &mtglist, int > &gsbegin, int &gsend) { > cout << "Now in Day1Hit..." << endl; > > for (int i= *gsbegin; i < *gsend; i++) { > ERROR IS FOR THIS STMT > > if (*mtglist[i].substr(0,3) == *day2.substr(((*d1+1)*3)-3,3)) { > cout << "Day1Hit: matched on " << (mtglist[i].substr(0,3) << > endl; > cout << *Day2.substr(((*d1+1)*3)-3,3)) << endl; > } // end if > } // end for > return;} // end Day1Hit > > > vector<string> Mtglist; // Input - loaded from a disk file > vector<int> Groupset; // subscripts/pointers to Groupset ranges > > > {Here, Groupset is created during a first pass through Mtglist. > Groupset[n] is the beginning of a range of records in Mtglist to be > processed. > Groupset[n+1] is the end of that range of records in Mtglist. > The last record in any range in Mtglist is called the WDR.} > > > Day1.assign("SMTWTFS"); > Day2.assign("SunMonTueWedThuFriSat"); > > // gs moves thru Groupset[]. > for (int gs=0; gs < Groupset.size()-1; gs+=2) { > > // Process Day1 against the WDR. d1 moves through Day1, looking > for a hit. > for (int d1=0; d1 < 7; d1++) { > > // I set the next variables for readability and ease of typing. > D1P=Day1.substr(d1,1); > WDRP=Mtglist[Groupset[gs+1]].substr(d1+1,1); > > if (D1P == WDRP) { > > int gsbegin=Groupset[gs]; // record number of beginning > of a group range in Mtglist > int gsend=Groupset[gs+1]; // record number of end of that > group range in Mtglist > > Day1Hit(&d1,&Day2,&Mtglist,&gsbegin,&gsend); > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > 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: Kenneth P. R. <kpr...@op...> - 2004-05-30 09:34:49
|
I'm getting error message "invalid type argument of 'unary *'" on the stmt indicated, and I just don't see why. Couldja help? I've clipped out what pertains to these variables. TIA. Ken // Functions void Day1Hit(int &d1, string &day2, vector<string> &mtglist, int &gsbegin, int &gsend) { cout << "Now in Day1Hit..." << endl; for (int i= *gsbegin; i < *gsend; i++) { ERROR IS FOR THIS STMT if (*mtglist[i].substr(0,3) == *day2.substr(((*d1+1)*3)-3,3)) { cout << "Day1Hit: matched on " << (mtglist[i].substr(0,3) << endl; cout << *Day2.substr(((*d1+1)*3)-3,3)) << endl; } // end if } // end for return;} // end Day1Hit vector<string> Mtglist; // Input - loaded from a disk file vector<int> Groupset; // subscripts/pointers to Groupset ranges {Here, Groupset is created during a first pass through Mtglist. Groupset[n] is the beginning of a range of records in Mtglist to be processed. Groupset[n+1] is the end of that range of records in Mtglist. The last record in any range in Mtglist is called the WDR.} Day1.assign("SMTWTFS"); Day2.assign("SunMonTueWedThuFriSat"); // gs moves thru Groupset[]. for (int gs=0; gs < Groupset.size()-1; gs+=2) { // Process Day1 against the WDR. d1 moves through Day1, looking for a hit. for (int d1=0; d1 < 7; d1++) { // I set the next variables for readability and ease of typing. D1P=Day1.substr(d1,1); WDRP=Mtglist[Groupset[gs+1]].substr(d1+1,1); if (D1P == WDRP) { int gsbegin=Groupset[gs]; // record number of beginning of a group range in Mtglist int gsend=Groupset[gs+1]; // record number of end of that group range in Mtglist Day1Hit(&d1,&Day2,&Mtglist,&gsbegin,&gsend); |
From: Billiam <bon...@ya...> - 2004-05-29 22:38:49
|
There is. I am going to assume you are using C, not C++, and you are using the console. here it goes. this is probably going to be more complicated and tedious than the \n and \t, but its alot cooler.:: #include <stdio.h> #include <windows.h> #include <stdlib.h> #define SCREEN_WIDTH 79 //this is the default prompt window width( 80 //characters, 0 counts #define SCREEN_LENGTH 24 //this is the default prompt window length, 25 void DrawColorString(char *szText, int X, int Y, WORD COLORS); //parameters: //(string you want,x coordinate,y coordinate, the color). //the colors are: //BACKGROUND_RED,BACKGROUND_BLUE,BACKGROUND_GREEN, //BACKGROUND_INTENSITY(makes the background color lighter), //FOREGROUND_RED,FOREGROUND_BLUE,FOREGROUND_GREEN, and //FOREGROUND_INTENSITY(makes the foreground color lighter) void DrawColorString(char *szText, int X, int Y, WORD COLORS) { COORD screenPos={X, Y}; WORD *colorBuf=NULL; DWORD dwResult=0; HANDLE OutputH; int length=0; int i=0; if(szText == NULL) return; OutputH = GetStdHandle(STD_OUTPUT_HANDLE); length = strlen(szText); colorBuf = (WORD*)malloc(sizeof(WORD) * length); for (i=0; i < length; i++) { colorBuf[i] = COLORS; } WriteConsoleOutputAttribute(OutputH, colorBuf, length, screenPos, &dwResult); WriteConsoleOutputCharacter(OutputH, szText, length, screenPos, &dwResult); free(colorBuf); colorBuf = NULL; } //if you understand all of that, you do, and if you dont, you dont. lol int main() { DrawColorString("Word here!", 7, 2, FOREGROUND_RED | FOREGROUND_INTENSITY | BACKGROUND_GREEN | BACKGROUND_RED | BACKGROUND_INTENSITY); getchar(); return 0; } Noorez Kassam <coo...@ho...> wrote: I want to output text in a program to the center of the command prompt window. Is there a function that can help we with it so that I don't have to use the '\n' and '\t' characters? _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ 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 --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger |
From: Ewald H. <in...@ho...> - 2004-05-29 22:28:21
|
> Noorez Kassam wrote: > > > I want to output text in a program to the center of the command prompt > > window. Is there a function that can help we with it so that I don't > > have to use the '\n' and '\t' characters? > Check out http://www.hornlabs.co.za/sources/colours.cpp as it contains text positioning and colour examples. Hope it helps Ewald Horn Proprietor/Eienaar : Horn Labs Cell/Sel : 083 519 1615 Website : http://www.hornlabs.co.za Email/E-pos : in...@ho... |
From: Daniel K. O. <dan...@ya...> - 2004-05-29 21:55:00
|
Noorez Kassam wrote: > I want to output text in a program to the center of the command prompt > window. Is there a function that can help we with it so that I don't > have to use the '\n' and '\t' characters? SetConsoleCursorPosition(), from Win32 API. Look also for the other functions in the same group (like GetStdHandle()). Daniel K. O. |
From: Noorez K. <coo...@ho...> - 2004-05-29 21:27:32
|
I want to output text in a program to the center of the command prompt window. Is there a function that can help we with it so that I don't have to use the '\n' and '\t' characters? _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
From: Alf C S. <al...@st...> - 2004-05-29 17:08:17
|
On Sat, 29 May 2004, Per Westermark wrote: > How about putting -mms-bitfields among the compiler switches and then post > the compiler output. Then maybe we can help with the 'output filename' > problem. > Thank you Per. I replaced the "pkg-config gtk+-2.0 --cflags" in the compile options with your suggested -mms-bitfields leaving "pkg-config gtk+-2.0 --clibs" in the linker and now I have an executable which runs without errors. I wonder just how much this has to do with rebooting Windows. BTW pkg-config runs fine in my setup. Ladies & Gentlemen thank you for your help so far and now for my next trick I need to make this program call MS SQL and Oracle stored procedurers. --- Regards, Alf Stockton www.stockton.co.za Gravity is a myth, the Earth sucks. |
From: Alf C S. <al...@st...> - 2004-05-29 17:08:09
|
On Sat, 29 May 2004, Tor Lillqvist wrote: > > Why use IDEs if they cause problems like this? Why not start by > learning how to compile and link a hello-world program from the > command line, then continue on to write a Makefile for more complex > programs. > Been there and done that. The current problem is that although I have successfully worked with Watcom 11c and Visual Studio C++ 6 and VB 6 I wanted this project produced in an Open Source product and that it should be able to run on both Linux & Windows. and Dev-C++ was a new tool and I could not resist. --- Regards, Alf Stockton www.stockton.co.za A "No" uttered from deepest conviction is better and greater than a "Yes" merely uttered to please, or what is worse, to avoid trouble. -- Mahatma Ghandi |
From: Alf C S. <al...@st...> - 2004-05-29 16:38:36
|
On Fri, 28 May 2004, Daniel K. O. wrote: > Alf C Stockton wrote: > > >Is anyone on either of these lists using gtk+ to develop applications to run > >on Microsoft Windows? In C ? > > > > > > I'm one of the maintainers of a port of Lopster (a Napster/IRC client). > http://winlop.sourceforge.net > > > >If yes are you using Dev-C++? > > > > > Yes. And I also have installed all the MinGW toys (MinGW, MSYS, MSYS > Developer Tool Kit, MinGW utils, binutils, gdb, etc). > > > > PS1: By the way, you guys were discussing a while ago about the flags to > use in GTK+ apps... why don't just use `pkg-config gtk+-2.0 --cflags` in > the compiler flags and `pkg-config gtk+-2.0 --libs` in the linker flags, > as it says in the docs? (and obviously the -mms-bitfields and > -mno-cygwin options) Of course, considering you have pkg-config. > Thank you all. I have added `pkg-config gtk+-2.0 --cflags` to compile options and now gcc tells me "cannot specify -o with -c or -S and multiple compilation" and yes I have 4 different .c source files in my project. Do I need to put these source files together into one file? --- Regards, Alf Stockton www.stockton.co.za When the speaker and he to whom he is speaks do not understand, that is metaphysics. -- Voltaire |
From: Tor L. <tm...@ik...> - 2004-05-29 14:30:43
|
Alf C Stockton writes: > Tor thank you for this suggestion but when I attempt it by adding > the -mms-bitfields to the linker options I still get "Incompatible > build!" & when I add it to the compiler switches I get told by > cc1.exe that "output filename specified twice". Well, look closely at what command line the IDE actually tries to run to compile. Is there something weird with it? Is there just one -o option, immediately followed by an object file name? Somehow the IDE manages to invoke the compiler with a mixed-up command line. Why use IDEs if they cause problems like this? Why not start by learning how to compile and link a hello-world program from the command line, then continue on to write a Makefile for more complex programs. --tml |
From: Per W. <pw...@ia...> - 2004-05-29 13:16:35
|
How about putting -mms-bitfields among the compiler switches and then post the compiler output. Then maybe we can help with the 'output filename' problem. /Per W On Sat, 29 May 2004, Alf C Stockton wrote: > Thank you for all the replies I received it makes me feel good that I am not > necessarily the only one on the bleeding edge of using Open Source on Windows. > > While I attempt some of the compiler/linker switches suggested may I put the > following problem forward again. > > I am now getting Gtk-ERROR** Incompatible Build when I attempt to > run my Linux developed application on Windows. > > > Tor Lillqvist <tm...@ik...> original reply was:- > > > Doesn't the message say what to do? This message comes from this > > g_error() call: > > > > g_error ("Incompatible build!\n" > > "The code using GTK+ thinks GtkWindow is of different\n" > > "size than it actually is in this build of GTK+.\n" > > "On Windows, this probably means that you have compiled\n" > > "your code with gcc without the -fnative-struct\n" > > "(or -mms-bitfields) switch, or that you are using\n" > > "an unsupported compiler."); > > > > I.e. you need to compile your source code with the -mms-bitfields gcc > > switch. > > > > Tor thank you for this suggestion but when I attempt it by adding the > -mms-bitfields to the linker options I still get "Incompatible build!" & when I > add it to the compiler switches I get told by cc1.exe that "output filename > specified twice". > > I get the same effect if I use -fnative-struct so now I am really confused. > > > > > --- > > Regards, > Alf Stockton www.stockton.co.za > > There's only one way to have a happy marriage and as soon as I learn > what it is I'll get married again. > -- Clint Eastwood > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > 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: Alf C S. <al...@st...> - 2004-05-29 11:56:42
|
Thank you for all the replies I received it makes me feel good that I am not necessarily the only one on the bleeding edge of using Open Source on Windows. While I attempt some of the compiler/linker switches suggested may I put the following problem forward again. I am now getting Gtk-ERROR** Incompatible Build when I attempt to run my Linux developed application on Windows. > Tor Lillqvist <tm...@ik...> original reply was:- > Doesn't the message say what to do? This message comes from this > g_error() call: > > g_error ("Incompatible build!\n" > "The code using GTK+ thinks GtkWindow is of different\n" > "size than it actually is in this build of GTK+.\n" > "On Windows, this probably means that you have compiled\n" > "your code with gcc without the -fnative-struct\n" > "(or -mms-bitfields) switch, or that you are using\n" > "an unsupported compiler."); > > I.e. you need to compile your source code with the -mms-bitfields gcc > switch. > Tor thank you for this suggestion but when I attempt it by adding the -mms-bitfields to the linker options I still get "Incompatible build!" & when I add it to the compiler switches I get told by cc1.exe that "output filename specified twice". I get the same effect if I use -fnative-struct so now I am really confused. --- Regards, Alf Stockton www.stockton.co.za There's only one way to have a happy marriage and as soon as I learn what it is I'll get married again. -- Clint Eastwood |
From: Per W. <pw...@ia...> - 2004-05-29 07:28:56
|
Of course you get. You are ignoring the first parameter, which specifies number of parameters. If you don't give the program any arguments, pszArgs[0] will be the name of your application, and pszArgs[1] will be NULL. =C1 NULL pointer to strcmp isn't so nice! By the way. How about cutting down a bit on your source code? I think the source listing has been in this mailing list enough times now. /Per W On Sat, 29 May 2004, Noorez Kassam wrote: > This program needs args passed to it with the cmd prompt. If it doesn't f= ind > any then it should display a message saying that you need the args but al= l I > get is an error message upon opening the program. > > #include <iostream> > #include <cstdlib> > #include <string> > #include <conio.h> > using namespace std; > > int main(int args, char* pszArgs[])//there needs to be args for this to w= ork > { > > if(strcmp(pszArgs[1],"-nt")=3D=3D 0) > { > system("cls");//start with a clear screen > //explain what the heck all this does > cout << "Welcome to the easy program opener!\n"; > cout << "Hear is a list of programs that can be easy opened\n\n"; > cout << "To quit enter 0 or nothing for a program choice\n"; > > cout << "1. Microsoft Office\n"; > cout << "2. Microsoft Paint\n"; > cout << "3. Calculator\n"; > cout << "4. Internet Explorer\n"; > > int choice; > while(1) > {//while > > choice =3D 0; > cout << "\nEnter the number of your choice: "; > cin >> choice; > cin.sync(); > switch(choice) > {//switch > case 0: > cout << "Exiting easy opener...\n"; > //Sleep(1000); > return 0; > break; > > case 1: > system("start winword"); > break; > > case 2: > system("mspaint"); > break; > > case 3: > system("calc"); > break; > > case 4: > { > char site[123]; > char intern[] =3D"start iexplore "; > cout << "Enter site: "; > cin.getline(site,123); > strcat(intern,site); > system(intern); > break; > } > > default://the choice wasn't a valid one if we are at default > cout << "Not a valid choice\n"; > }//switch > > }//end while > }//done defining nt operating system > > else if(strcmp(pszArgs[1],"-me")=3D=3D0) > { > system("cls"); > cout << "Welcome to the easy program opener!\n"; > cout << "Hear is a list of programs that can be easy opened\n\n"; > cout << "To quit enter 0 or nothing for a program choice\n"; > > cout << "1. Microsoft Office\n"; > cout << "2. Microsoft Paint\n"; > cout << "3. Calculator\n"; > cout << "4. Internet Explorer\n"; > > int choice; > while(1) > { > cout << endl << "Enter choice: "; > cin >> choice; > cin.sync(); > switch(choice) > { > case 0: > cout << "Exiting easy opener...\n"; > //Sleep(1000); > return 0; > break; > > case 1: > system("start winword"); > break; > > case 2: > system("pbrush"); > break; > > case 3: > system("calc"); > break; > > case 4: > { > char site[123]; > char intern[] =3D"start iexplore "; > cout << "Enter site: "; > cin.getline(site,123); > strcat(intern,site); > system(intern); > break; > } > > default: > cout << "Not a valid choice\n"; > }//end switch > > }//end while > > }//end defining me operating system > > else > { > cout << "Args needed\n"; > system("pause"); > return 0; > } > > return 0;//exit program > } > > _________________________________________________________________ > MSN Premium includes powerful parental controls and get 2 months FREE* > http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D= 1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > 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: Noorez K. <coo...@ho...> - 2004-05-29 07:10:57
|
This program needs args passed to it with the cmd prompt. If it doesn't find any then it should display a message saying that you need the args but all I get is an error message upon opening the program. #include <iostream> #include <cstdlib> #include <string> #include <conio.h> using namespace std; int main(int args, char* pszArgs[])//there needs to be args for this to work { if(strcmp(pszArgs[1],"-nt")== 0) { system("cls");//start with a clear screen //explain what the heck all this does cout << "Welcome to the easy program opener!\n"; cout << "Hear is a list of programs that can be easy opened\n\n"; cout << "To quit enter 0 or nothing for a program choice\n"; cout << "1. Microsoft Office\n"; cout << "2. Microsoft Paint\n"; cout << "3. Calculator\n"; cout << "4. Internet Explorer\n"; int choice; while(1) {//while choice = 0; cout << "\nEnter the number of your choice: "; cin >> choice; cin.sync(); switch(choice) {//switch case 0: cout << "Exiting easy opener...\n"; //Sleep(1000); return 0; break; case 1: system("start winword"); break; case 2: system("mspaint"); break; case 3: system("calc"); break; case 4: { char site[123]; char intern[] ="start iexplore "; cout << "Enter site: "; cin.getline(site,123); strcat(intern,site); system(intern); break; } default://the choice wasn't a valid one if we are at default cout << "Not a valid choice\n"; }//switch }//end while }//done defining nt operating system else if(strcmp(pszArgs[1],"-me")==0) { system("cls"); cout << "Welcome to the easy program opener!\n"; cout << "Hear is a list of programs that can be easy opened\n\n"; cout << "To quit enter 0 or nothing for a program choice\n"; cout << "1. Microsoft Office\n"; cout << "2. Microsoft Paint\n"; cout << "3. Calculator\n"; cout << "4. Internet Explorer\n"; int choice; while(1) { cout << endl << "Enter choice: "; cin >> choice; cin.sync(); switch(choice) { case 0: cout << "Exiting easy opener...\n"; //Sleep(1000); return 0; break; case 1: system("start winword"); break; case 2: system("pbrush"); break; case 3: system("calc"); break; case 4: { char site[123]; char intern[] ="start iexplore "; cout << "Enter site: "; cin.getline(site,123); strcat(intern,site); system(intern); break; } default: cout << "Not a valid choice\n"; }//end switch }//end while }//end defining me operating system else { cout << "Args needed\n"; system("pause"); return 0; } return 0;//exit program } _________________________________________________________________ MSN Premium includes powerful parental controls and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
From: Noorez K. <coo...@ho...> - 2004-05-29 07:10:54
|
This program needs args passed to it with the cmd prompt. If it doesn't find any then it should display a message saying that you need the args but all I get is an error message upon opening the program. #include <iostream> #include <cstdlib> #include <string> #include <conio.h> using namespace std; int main(int args, char* pszArgs[])//there needs to be args for this to work { if(strcmp(pszArgs[1],"-nt")== 0) { system("cls");//start with a clear screen //explain what the heck all this does cout << "Welcome to the easy program opener!\n"; cout << "Hear is a list of programs that can be easy opened\n\n"; cout << "To quit enter 0 or nothing for a program choice\n"; cout << "1. Microsoft Office\n"; cout << "2. Microsoft Paint\n"; cout << "3. Calculator\n"; cout << "4. Internet Explorer\n"; int choice; while(1) {//while choice = 0; cout << "\nEnter the number of your choice: "; cin >> choice; cin.sync(); switch(choice) {//switch case 0: cout << "Exiting easy opener...\n"; //Sleep(1000); return 0; break; case 1: system("start winword"); break; case 2: system("mspaint"); break; case 3: system("calc"); break; case 4: { char site[123]; char intern[] ="start iexplore "; cout << "Enter site: "; cin.getline(site,123); strcat(intern,site); system(intern); break; } default://the choice wasn't a valid one if we are at default cout << "Not a valid choice\n"; }//switch }//end while }//done defining nt operating system else if(strcmp(pszArgs[1],"-me")==0) { system("cls"); cout << "Welcome to the easy program opener!\n"; cout << "Hear is a list of programs that can be easy opened\n\n"; cout << "To quit enter 0 or nothing for a program choice\n"; cout << "1. Microsoft Office\n"; cout << "2. Microsoft Paint\n"; cout << "3. Calculator\n"; cout << "4. Internet Explorer\n"; int choice; while(1) { cout << endl << "Enter choice: "; cin >> choice; cin.sync(); switch(choice) { case 0: cout << "Exiting easy opener...\n"; //Sleep(1000); return 0; break; case 1: system("start winword"); break; case 2: system("pbrush"); break; case 3: system("calc"); break; case 4: { char site[123]; char intern[] ="start iexplore "; cout << "Enter site: "; cin.getline(site,123); strcat(intern,site); system(intern); break; } default: cout << "Not a valid choice\n"; }//end switch }//end while }//end defining me operating system else { cout << "Args needed\n"; system("pause"); return 0; } return 0;//exit program } _________________________________________________________________ Add photos to your e-mail with MSN Premium. Get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |
From: Per W. <pw...@ia...> - 2004-05-29 06:36:53
|
Don't declare variables within the switch statement without using braces, to create a separate namespace for the variable! switch (n) { case 0: { int local_variable; break; } default: // because of braces, the local_variable isn't visible anymore. } /Per W On Fri, 28 May 2004, Noorez Kassam wrote: > I am having a problem with the case statement with both the switch > statements in the program. > They are both exactly the same really.... I marked the lines with errors > > The compile errors are > [Warning] Infunction 'int main(int, char**) > Line 57/110 Jump to case label > Line 50/103 crosses initialization of 'char intern[16]'; > > #include <iostream> > #include <cstdlib> > #include <string> > using namespace std; > > int main(int args, char* pszArgs[])//there needs to be args for this to work > { > if(strcmp(pszArgs[1],"-nt")== 0) > { > system("cls");//start with a clear screen > //explain what the heck all this does > cout << "Welcome to the easy program opener!\n"; > cout << "Hear is a list of programs that can be easy opened\n\n"; > cout << "To quit enter 0 or nothing for a program choice\n"; > > cout << "1. Microsoft Office\n"; > cout << "2. Microsoft Paint\n"; > cout << "3. Calculator\n"; > cout << "4. Internet Explorer\n"; > > int choice; > while(1) > {//while > > choice = 0; > cout << "\nEnter the number of your choice: "; > cin >> choice; > switch(choice) > {//switch > case 0: > cout << "Exiting easy opener...\n"; > //Sleep(1000); > return 0; > break; > > case 1: > system("start winword"); > break; > > case 2: > system("mspaint"); > break; > > case 3: > system("calc"); > break; > > case 4: > char site[123]; > char intern[] ="start iexplore "; /*50*/ > cout << "Enter site: "; > cin >> site; > strcat(intern,site); > system(intern); > break; > > default://the choice wasn't a valid one if we are at default /*line > 57*/ > cout << "Not a valid choice\n"; > }//switch > > }//end while > }//done defining nt operating system > > if(strcmp(pszArgs[1],"-me")==0) > { > system("cls"); > cout << "Welcome to the easy program opener!\n"; > cout << "Hear is a list of programs that can be easy opened\n\n"; > cout << "To quit enter 0 or nothing for a program choice\n"; > > cout << "1. Microsoft Office\n"; > cout << "2. Microsoft Paint\n"; > cout << "3. Calculator\n"; > cout << "4. Internet Explorer\n"; > > int choice; > while(1) > { > cout << endl << "Enter choice: "; > cin >> choice; > switch(choice) > { > case 0: > cout << "Exiting easy opener...\n"; > //Sleep(1000); > return 0; > break; > > case 1: > system("start winword"); > break; > > case 2: > system("pbrush"); > break; > > case 3: > system("calc"); > break; > > case 4: > char site[123]; > char intern[] ="start iexplore "; /*103*/ > cout << "Enter site: "; > cin >> site; > strcat(intern,site); > system(intern); > break; > > default: /*line 110*/ > cout << "Not a valid choice\n"; > }//end switch > > }//end while > > }//end defining me operating system > > if(strcmp(pszArgs[1],NULL)==0 )//opps! nothing found! > { > cout << "This program requries the use of Args\n" > << "Use the name of your operating system\n" > << "eg... -me for Millenium Edition\n\n"; > > cout << "Open a command prompt window and type pszArgs[0] -<short name > of system>"; > cout << "Just don't use the << "; > > system("pause"); > return 1; > } > > return 0;//exit program > } > > _________________________________________________________________ > http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > 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: Noorez K. <coo...@ho...> - 2004-05-29 05:34:20
|
I am having a problem with the case statement with both the switch statements in the program. They are both exactly the same really.... I marked the lines with errors The compile errors are [Warning] Infunction 'int main(int, char**) Line 57/110 Jump to case label Line 50/103 crosses initialization of 'char intern[16]'; #include <iostream> #include <cstdlib> #include <string> using namespace std; int main(int args, char* pszArgs[])//there needs to be args for this to work { if(strcmp(pszArgs[1],"-nt")== 0) { system("cls");//start with a clear screen //explain what the heck all this does cout << "Welcome to the easy program opener!\n"; cout << "Hear is a list of programs that can be easy opened\n\n"; cout << "To quit enter 0 or nothing for a program choice\n"; cout << "1. Microsoft Office\n"; cout << "2. Microsoft Paint\n"; cout << "3. Calculator\n"; cout << "4. Internet Explorer\n"; int choice; while(1) {//while choice = 0; cout << "\nEnter the number of your choice: "; cin >> choice; switch(choice) {//switch case 0: cout << "Exiting easy opener...\n"; //Sleep(1000); return 0; break; case 1: system("start winword"); break; case 2: system("mspaint"); break; case 3: system("calc"); break; case 4: char site[123]; char intern[] ="start iexplore "; /*50*/ cout << "Enter site: "; cin >> site; strcat(intern,site); system(intern); break; default://the choice wasn't a valid one if we are at default /*line 57*/ cout << "Not a valid choice\n"; }//switch }//end while }//done defining nt operating system if(strcmp(pszArgs[1],"-me")==0) { system("cls"); cout << "Welcome to the easy program opener!\n"; cout << "Hear is a list of programs that can be easy opened\n\n"; cout << "To quit enter 0 or nothing for a program choice\n"; cout << "1. Microsoft Office\n"; cout << "2. Microsoft Paint\n"; cout << "3. Calculator\n"; cout << "4. Internet Explorer\n"; int choice; while(1) { cout << endl << "Enter choice: "; cin >> choice; switch(choice) { case 0: cout << "Exiting easy opener...\n"; //Sleep(1000); return 0; break; case 1: system("start winword"); break; case 2: system("pbrush"); break; case 3: system("calc"); break; case 4: char site[123]; char intern[] ="start iexplore "; /*103*/ cout << "Enter site: "; cin >> site; strcat(intern,site); system(intern); break; default: /*line 110*/ cout << "Not a valid choice\n"; }//end switch }//end while }//end defining me operating system if(strcmp(pszArgs[1],NULL)==0 )//opps! nothing found! { cout << "This program requries the use of Args\n" << "Use the name of your operating system\n" << "eg... -me for Millenium Edition\n\n"; cout << "Open a command prompt window and type pszArgs[0] -<short name of system>"; cout << "Just don't use the << "; system("pause"); return 1; } return 0;//exit program } _________________________________________________________________ http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines |