dev-cpp-users Mailing List for Dev-C++ (Page 569)
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
|
|
From: Rajashekar, K. (IE10)
<Raj...@ho...> - 2002-06-21 03:09:39
|
unsubscribe > -----Original Message----- > From: Ioannis Vranos [SMTP:no...@ho...] > Sent: Tuesday, June 11, 2002 4:34 PM > To: Dev-C++ Mailing List > Subject: RE: [Dev-C++] (no subject) > > http://www.allegro.cc > > > I have links to other libraries at http://www.noicys.cjb.net/links.htm > > > It is not a self-advertisement, simply i have all my favorite links > there. > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: prasad athreya [mailto:pra...@ho...] > > Sent: Tuesday, June 11, 2002 1:55 PM > > To: no...@ho... > > Subject: RE: [Dev-C++] (no subject) > > > > > > thanks a lot > > btw where do u get allegro from? > > > > > > >From: "Ioannis Vranos" <no...@ho...> > > >To: "Dev-C++ Mailing List" <dev...@li...> > > >Subject: RE: [Dev-C++] (no subject) > > >Date: Tue, 11 Jun 2002 13:44:16 +0300 > > > > > > > -----Original Message----- > > > > From: dev...@li... > > > > [mailto:dev...@li...] On Behalf > > > > Of prasad athreya > > > > Sent: Tuesday, June 11, 2002 1:31 PM > > > > To: dev...@li... > > > > Subject: [Dev-C++] (no subject) > > > > > > > > > > > > hello > > > > im trying to improve my program by colouring the text. Im not > > > > sure how > > > > exactly in devcpp to do this. > > > > > > > > >You can use some 3rd party library, like Allegro. > > > > > > > > > > I am also trying to find out whther it is possible to > > print via a USB > > > > printer port > > > > > > > > >Of course it is, you will use some system extension, e.g > > some Win32 API > > >call which comes with Dev-C++. I do not know the particular call > > >however. > > > > > > > > >Ioannis > > > > > >* Ioannis Vranos > > >* Programming pages: http://www.noicys.cjb.net > > >* Alternative URL: http://run.to/noicys > > > > > >_______________________________________________________________ > > > > > >Don't miss the 2002 Sprint PCS Application Developer's Conference > > >August 25-28 in Las Vegas - > > http://devcon.sprintpcs.com/adp/index.cfm?> source=osdntextlink > > > > > > > > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Bob W. <bo...@ph...> - 2002-06-20 22:55:28
|
----- Original Message ----- From: "Andres Rand" <lo...@ho...> To: "'Bob Wilson'" <bo...@ph...> Sent: Thursday, June 20, 2002 3:13 PM Subject: RE: [Dev-C++] 2 questions -> 1 question > > If you mean that you want to pass a parameter to a program you have > > compiled > > with dev-c++ when you run the freshly compiled program still in the > IDE, > > go > > to "Options>Enviroment Options>Preferences" and you will see an input > box > > labled "Give the following parameters when executing a compiled > project". > > Use this to call your program with parameters, in case it needs some. > > > > Regards, > > > > Bob Wilson > > > Nope, it's not there. At least not in 4.9.3.2 Well, it is in 4.01 Bob |
|
From: Hongli L. <h....@ch...> - 2002-06-20 20:04:29
|
On Thu, 2002-06-20 at 20:03, Carlos Garc=EDa del Monte wrote: > Is there some page where we can find the packages which are in Dev home > page in DevPak format in another format we can install with Dev 4? > As I said I cannot install one I downloaded, and it was said in an > answer it only works with Dev 5, but I don't want download 10MB of it. > And the old package page link leads to a file not found in one page (the > not .everfloyd.) and in the (.everfloyd.) page some of them are not > there or are broken. No, that is not possible. I did that on purpose because there's no way the templates will work in version 4. And version 5 has a different directory structure. If you're interested in the header files, go to it's website and download the source code. |
|
From: Carlos d. M. <cg...@wo...> - 2002-06-20 18:06:22
|
Is there some page where we can find the packages which are in Dev home page in DevPak format in another format we can install with Dev 4? As I said I cannot install one I downloaded, and it was said in an answer it only works with Dev 5, but I don't want download 10MB of it. And the old package page link leads to a file not found in one page (the not .everfloyd.) and in the (.everfloyd.) page some of them are not there or are broken. Possible answer(?) - "Read instructions" Answer to possible answer- "I read them, they say double click (they are in the download page), I did not see any other place with any instruction about it. I double clicked and nothing, only open with..., but no program opens it correctly. It was said Dev4 does not manage this kind of format, you must have Dev5". Thanks. P.S. : I had the opportunity to prove some other free IDEs for programming with mingw, Borland (conTEXT, VIDE and others) and Dev is the best I found, together with VIDE, which is the only comparable, and which I use for Borland 5.5 free. Thank you, authors! |
|
From: Bob W. <bo...@ph...> - 2002-06-20 16:22:18
|
If you mean that you want to pass a parameter to a program you have compiled with dev-c++ when you run the freshly compiled program still in the IDE, go to "Options>Enviroment Options>Preferences" and you will see an input box labled "Give the following parameters when executing a compiled project". Use this to call your program with parameters, in case it needs some. Regards, Bob Wilson > > Hi, > > > > can somebody answer me a few questions ? My first problem is > > I compiled a console program and want to start it like this "bot.exe > > level3.bot" > > is it possible to configure dev-c++ o use these parameters ? > > > > my second question concerns the classbrowser, is it possible to > > move around in the .cc file or does it only support to move around in > > the header ? > > > > yours nils |
|
From: Mac R. <re...@no...> - 2002-06-20 14:31:14
|
>I am new to Dev-C++ but not C++. I think I need the Setup Creator
[clip]
>Is this what will allow me to define my own project types?
I would expect Setup Creator to be a program that builds installation sets
for your finished executable. Installing Windows executables is frequently
painful, since they depend on various DLLs, COM components, etc. A setup
program discovers those dependencies, packs them together, and wraps an
install program around them to install them on destination machines.
I don't know how you make your own project types, sorry.
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Mac R. <re...@no...> - 2002-06-20 14:28:34
|
At 01:03 AM 6/20/02 +0300, Andres Rand wrote:
> See.. Original qustion wosn't about how to code it, but how to use
>it on Dev-C++ IDE!! I have same question about IDE. Read carefully!!
> A. > Hi, > > can somebody answer me a few questions ? My first
>problem is >"bot.exe >" > is it possible to configure dev-c++ o use
>these parameters ? > > my second question concerns the classbrowser, is
>it possible to > move around in the .cc file or does it only support to
>move around in > the header ? > > yours nils P.S. Sry for HTML..
>it’s just for clearifying the point here..
OK, I'm going to go out on a limb here. The only interpretation I can
place on your question that makes any sense to me in the context of an IDE
(Dev-C++ or any other IDE) is:
"How do I configure the debugging system to pass command line arguments to
the program I am developing?"
Is this a correct interpretation? If not, could you please be more
specific about what you are wanting to do and what is keeping you from
doing it?
Mac
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Scott A. S. <ss...@ma...> - 2002-06-20 13:34:10
|
Greetings, I am new to Dev-C++ but not C++. I think I need the Setup Creator feature as mentioned in the FAQ (V4, #15), but am not sure since there does not seem to be any documentation on it and the installation instructions are not working. Does this still work in the recent version (4.9.3.0) from SourceForge? If so, where can I read about how it is used? Is this what will allow me to define my own project types? Thanks, Scott |
|
From: Ramana K. <ra...@my...> - 2002-06-20 13:15:43
|
thanks very much
i would have been a little disturbed too. i am not too familiar with the
workings of command line arguments and was just copying a bit out of a text
book.
thanks for correcting me
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Mac
Reiter
Sent: Thursday, 20 June 2002 2:47 AM
To: C++
Subject: RE: [Dev-C++] 2 questions
I'm a little disturbed by the description given below. I'm pretty sure
that argc includes the name of the executable, so that "bot.exe level3.bot"
would have argc == 2. I know that argv[0] contains the name of the
executable, because UN*X systems use this to distinguish behaviors for
symlinked executables (don't ask, it isn't possible on Windows, and it is
slightly odd anyway). The practical upshot is that, for the example above,
argv[0] would be "bot.exe" and argv[1] would be "level3.bot".
At 10:19 PM 6/19/02 +1000, Ramana Kumar wrote:
>to start a program using command line arguments, you take these two
>arguments in your main function.
>example:
>---------------------------------
>int main(int argc, char *argv[])
>{
> if(argc == 1)
> {
> openfile(argv[0]);
> }
> return 0;
>}
>---------------------------------
>the first argument passed to main (argc) is the number (int) of words typed
>after the name of the program when it is run. the second argument is an
>array of pointers to char strings, basically, a list in order of all the
>words passed to the program when it is run. in your example "bot.exe
>level3.bot" argc would equal 1 and argv[0] would evaluate as "level3.bot".
>so you could use a function (like openfile(char*) above) or even use
>ifstream in(argv[0]); or whatever else your program needs to use the
>filename given when your program is run.
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...]On Behalf Of Nils
>Langner
>Sent: Wednesday, 19 June 2002 2:27 AM
>To: dev...@li...
>Subject: [Dev-C++] 2 questions
>
>
>Hi,
>
>can somebody answer me a few questions ? My first problem is
>I compiled a console program and want to start it like this "bot.exe
>level3.bot"
>is it possible to configure dev-c++ o use these parameters ?
>
>my second question concerns the classbrowser, is it possible to
>move around in the .cc file or does it only support to move around in
>the header ?
>
>yours nils
>
>
>---------------------------------------------------------------------------
-
> Bringing you mounds of caffeinated joy
> >>> http://thinkgeek.com/sf <<<
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>
>---------------------------------------------------------------------------
-
> Bringing you mounds of caffeinated joy
> >>> http://thinkgeek.com/sf <<<
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
----------------------------------------------------------------------------
Bringing you mounds of caffeinated joy
>>> http://thinkgeek.com/sf <<<
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Ramana K. <ra...@my...> - 2002-06-20 13:13:56
|
surely info on the dev-c++ ide is not needed when you can solve your problems with actual code... oh wait a second... do you mean starting dev-c++ with command line arguments? for that i think you would need to wait for a new version where it is implemented and at the moment, argue strongly why we would need such a thing -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Andres Rand Sent: Thursday, 20 June 2002 8:04 AM To: Dev-C++ users Subject: RE: [Dev-C++] 2 questions See.. Original qustion wosn't about how to code it, but how to use it on Dev-C++ IDE!! I have same question about IDE. Read carefully!! A. > Hi, > > can somebody answer me a few questions ? My first problem is > I compiled a console program and want to start it like this "bot.exe > level3.bot" > is it possible to configure dev-c++ o use these parameters ? > > my second question concerns the classbrowser, is it possible to > move around in the .cc file or does it only support to move around in > the header ? > > yours nils P.S. Sry for HTML.. it's just for clearifying the point here.. |
|
From: Abhinav_Arora <Abh...@sa...> - 2002-06-20 12:29:06
|
Yeah Ioannis I dint get any url -----Original Message----- From: Ioannis Vranos [mailto:no...@ho...] Sent: Thursday, June 20, 2002 5:49 PM To: Dev-C++ Mailing List Subject: RE: [Dev-C++] LoadLib > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Hongli Lai > Sent: Thursday, June 20, 2002 11:14 AM > To: Abhinav_Arora > Cc: CPP-Maillinglist (E-Mail) > Subject: Re: [Dev-C++] LoadLib > > > Abhinav_Arora wrote: > > >unsubscribe > > > > > > > > Didn't you read the unsubscription instructions? I've highlighted the > text with red, made it bold and made it blinking! Did you provide him with any url? Also, i suggest make that text to not blink. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys ------------------------------------------------------- Bringing you mounds of caffeinated joy >>> http://thinkgeek.com/sf <<< _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users *********************************************************************** This e-mail (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipeint,please contact the sender by e-mail and delete all copies; your co-operation in this regard is appreciated. |
|
From: Ioannis V. <no...@ho...> - 2002-06-20 12:20:36
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Hongli Lai > Sent: Thursday, June 20, 2002 11:14 AM > To: Abhinav_Arora > Cc: CPP-Maillinglist (E-Mail) > Subject: Re: [Dev-C++] LoadLib > > > Abhinav_Arora wrote: > > >unsubscribe > > > > > > > > Didn't you read the unsubscription instructions? I've highlighted the > text with red, made it bold and made it blinking! Did you provide him with any url? Also, i suggest make that text to not blink. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-06-20 12:16:52
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Abhinav_Arora > Sent: Thursday, June 20, 2002 7:26 AM > To: Christian Wallukat; CPP-Maillinglist (E-Mail) > Subject: RE: [Dev-C++] LoadLib > > > unsubscribe http://www.noicys.cjb.net/devcpp/ub.htm Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Hongli L. <h....@ch...> - 2002-06-20 08:09:13
|
Abhinav_Arora wrote: >unsubscribe > > > Didn't you read the unsubscription instructions? I've highlighted the text with red, made it bold and made it blinking! |
|
From: Abhinav_Arora <Abh...@sa...> - 2002-06-20 04:33:38
|
unsubscribe
-----Original Message-----
From: Christian Wallukat [mailto:Chr...@vo...]
Sent: Monday, June 17, 2002 3:18 PM
To: CPP-Maillinglist (E-Mail)
Subject: [Dev-C++] LoadLib
Hi List,
I try to learn the handling with DLLs and the Project I've wrote doesnt
work...
Has anyone some Ideas what I've made wrong ???
Kind Regards
CHW
Here the code:
#include <windows.h>
#include <TCHAR.h>
#include <stdio.h>
static HINSTANCE hLibrary ;
int main(int argc, char* argv[])
{
bool bT;
LPCSTR test;
typedef bool (*lpTest)(void);
typedef LPCSTR (*lpTest2)(void);
typedef char* (*lpTest3) (char*);
lpTest fnTest;
lpTest2 fnTest2;
lpTest3 fnTest3;
//DLL einbinden
if ((hLibrary = LoadLibrary (TEXT("DLL.DLL"))) == NULL)
{
MessageBox (NULL, TEXT ("Can't load DLL.DLL."), "hjjhkj", 0)
;
return -1 ;
};
fnTest = (lpTest) GetProcAddress(hLibrary, _T("_Test1@0"));
if (fnTest != NULL)
{
printf("juhu\n");
bT = fnTest();
};
FreeLibrary(hLibrary); // Unload DLL from memory
if ((hLibrary = LoadLibrary (TEXT("DLL.DLL"))) == NULL)
{
MessageBox (NULL, TEXT ("Can't load DLL.DLL."), "hjjhkj", 0)
;
return -1 ;
};
fnTest2 = (lpTest2) GetProcAddress(hLibrary, _T("Test2"));
if (fnTest != NULL)
{
printf("juhu2\n");
test = fnTest2();
};
FreeLibrary(hLibrary); // Unload DLL from memory
if ((hLibrary = LoadLibrary (TEXT("DLL.DLL"))) == NULL)
{
MessageBox (NULL, TEXT ("Can't load DLL.DLL."), "hjjhkj", 0)
;
return -1 ;
};
fnTest3 = (lpTest3) GetProcAddress(hLibrary, _T("_Test3@4"));
if (fnTest3 != NULL)
{
char szTest[400];
*szTest = 0;
printf("juhu3");
strcpy (szTest, fnTest3("hallo welt\0"));
printf("%s", szTest);
};
FreeLibrary(hLibrary); // Unload DLL from memory
getchar();
return 0;
}
Here the DLL:
#include <windows.h>
#include <string.h>
#ifdef __cplusplus
#define EXPORT extern "C" __declspec (dllexport)
#else
#define EXPORT __declspec (dllexport)
#endif
EXPORT BOOL CALLBACK TestA();
#define TestA Test1
EXPORT LPCSTR CALLBACK TestB();
#define TestB Test2
EXPORT char* CALLBACK TestC(char*);
#define TestC Test3
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
EXPORT BOOL CALLBACK TestA(void)
{
return TRUE;
};
EXPORT LPCSTR TestB(void)
{
return "Test\0";
};
EXPORT char* CALLBACK TestC(char *lpcStr)
{
MessageBox(NULL, lpcStr, "test", MB_OK);
return lpcStr;
};
_______________________________________________________________
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
***********************************************************************
This e-mail (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipeint,please contact
the sender by e-mail and delete all copies; your co-operation in this regard
is appreciated.
|
|
From: Andres R. <lo...@ho...> - 2002-06-19 22:03:37
|
See.. Original qustion wosn't about how to code it, but how to use it on Dev-C++ IDE!! I have same question about IDE. Read carefully!! A. > Hi, > > can somebody answer me a few questions ? My first problem is > I compiled a console program and want to start it like this "bot.exe > level3.bot" > is it possible to configure dev-c++ o use these parameters ? > > my second question concerns the classbrowser, is it possible to > move around in the .cc file or does it only support to move around in > the header ? > > yours nils P.S. Sry for HTML.. it's just for clearifying the point here.. |
|
From: Ioannis V. <no...@ho...> - 2002-06-19 20:48:38
|
Yes, if the mechanism work. There is a possibility the program to not
"see" the arguments and argc to be 0. Also if it works, argv[0] can be
"" (which is '\0' and 0).
The C++ standard says:
"An implementation shall not predefine the main function. This function
shall not be overloaded. It shall
have a return type of type int, but otherwise its type is
implementationdefined.
All implementations
shall allow both of the following definitions of main:
int main() { /* ... */ }
and
int main(int argc, char* argv[]) { /* ... */ }
In the latter form argc shall be the number of arguments passed to the
program from the environment in
which the program is run. If argc is nonzero these arguments shall be
supplied in argv[0] through
argv[argc1] as pointers to the initial characters of nullterminated
multibyte strings (NTMBSs)
(17.3.2.1.3.2) and argv[0] shall be the pointer to the initial character
of a NTMBS that represents the
name used to invoke the program or "". The value of argc shall be
nonnegative. The value of
argv[argc] shall be 0. [Note: it is recommended that any further
(optional) parameters be added after
argv. ]"
Ioannis
* Ioannis Vranos
* Programming pages: <http://www.noicys.cjb.net>
http://www.noicys.cjb.net
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [ <mailto:dev...@li...>
mailto:dev...@li...] On Behalf
> Of Mac Reiter
> Sent: Wednesday, June 19, 2002 7:47 PM
> To: C++
> Subject: RE: [Dev-C++] 2 questions
>
>
> I'm a little disturbed by the description given below. I'm
> pretty sure
> that argc includes the name of the executable, so that
> "bot.exe level3.bot"
> would have argc == 2. I know that argv[0] contains the name of the
> executable, because UN*X systems use this to distinguish behaviors for
> symlinked executables (don't ask, it isn't possible on
> Windows, and it is
> slightly odd anyway). The practical upshot is that, for the
> example above,
> argv[0] would be "bot.exe" and argv[1] would be "level3.bot".
|
|
From: Hongli L. <h....@ch...> - 2002-06-19 19:48:49
|
On Wed, 2002-06-19 at 18:47, Mac Reiter wrote: > I'm a little disturbed by the description given below. I'm pretty sure > that argc includes the name of the executable, so that "bot.exe level3.bot" > would have argc == 2. I know that argv[0] contains the name of the > executable, because UN*X systems use this to distinguish behaviors for > symlinked executables (don't ask, it isn't possible on Windows, and it is > slightly odd anyway). The practical upshot is that, for the example above, > argv[0] would be "bot.exe" and argv[1] would be "level3.bot". > Actually, argv[0] is always the full filename of the executable, like C:\Foo\Bar.exe, no matter what you do. In Unix, argv[0] is what you've typed in at the commandline, not the filename of the executable. |
|
From: Mac R. <re...@no...> - 2002-06-19 16:49:13
|
I'm a little disturbed by the description given below. I'm pretty sure
that argc includes the name of the executable, so that "bot.exe level3.bot"
would have argc == 2. I know that argv[0] contains the name of the
executable, because UN*X systems use this to distinguish behaviors for
symlinked executables (don't ask, it isn't possible on Windows, and it is
slightly odd anyway). The practical upshot is that, for the example above,
argv[0] would be "bot.exe" and argv[1] would be "level3.bot".
At 10:19 PM 6/19/02 +1000, Ramana Kumar wrote:
>to start a program using command line arguments, you take these two
>arguments in your main function.
>example:
>---------------------------------
>int main(int argc, char *argv[])
>{
> if(argc == 1)
> {
> openfile(argv[0]);
> }
> return 0;
>}
>---------------------------------
>the first argument passed to main (argc) is the number (int) of words typed
>after the name of the program when it is run. the second argument is an
>array of pointers to char strings, basically, a list in order of all the
>words passed to the program when it is run. in your example "bot.exe
>level3.bot" argc would equal 1 and argv[0] would evaluate as "level3.bot".
>so you could use a function (like openfile(char*) above) or even use
>ifstream in(argv[0]); or whatever else your program needs to use the
>filename given when your program is run.
>-----Original Message-----
>From: dev...@li...
>[mailto:dev...@li...]On Behalf Of Nils
>Langner
>Sent: Wednesday, 19 June 2002 2:27 AM
>To: dev...@li...
>Subject: [Dev-C++] 2 questions
>
>
>Hi,
>
>can somebody answer me a few questions ? My first problem is
>I compiled a console program and want to start it like this "bot.exe
>level3.bot"
>is it possible to configure dev-c++ o use these parameters ?
>
>my second question concerns the classbrowser, is it possible to
>move around in the .cc file or does it only support to move around in
>the header ?
>
>yours nils
>
>
>----------------------------------------------------------------------------
> Bringing you mounds of caffeinated joy
> >>> http://thinkgeek.com/sf <<<
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>
>----------------------------------------------------------------------------
> Bringing you mounds of caffeinated joy
> >>> http://thinkgeek.com/sf <<<
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
-
_____________________________ /"\
Mac Reiter \ / ASCII Ribbon Campaign
Nomadics, Inc. X Against HTML Mail
re...@no... / \ (To join the campaign, simply use
this in your signature.)
|
|
From: Ramana K. <ra...@my...> - 2002-06-19 12:20:50
|
to start a program using command line arguments, you take these two
arguments in your main function.
example:
---------------------------------
int main(int argc, char *argv[])
{
if(argc == 1)
{
openfile(argv[0]);
}
return 0;
}
---------------------------------
the first argument passed to main (argc) is the number (int) of words typed
after the name of the program when it is run. the second argument is an
array of pointers to char strings, basically, a list in order of all the
words passed to the program when it is run. in your example "bot.exe
level3.bot" argc would equal 1 and argv[0] would evaluate as "level3.bot".
so you could use a function (like openfile(char*) above) or even use
ifstream in(argv[0]); or whatever else your program needs to use the
filename given when your program is run.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Nils
Langner
Sent: Wednesday, 19 June 2002 2:27 AM
To: dev...@li...
Subject: [Dev-C++] 2 questions
Hi,
can somebody answer me a few questions ? My first problem is
I compiled a console program and want to start it like this "bot.exe
level3.bot"
is it possible to configure dev-c++ o use these parameters ?
my second question concerns the classbrowser, is it possible to
move around in the .cc file or does it only support to move around in
the header ?
yours nils
----------------------------------------------------------------------------
Bringing you mounds of caffeinated joy
>>> http://thinkgeek.com/sf <<<
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Ioannis V. <no...@ho...> - 2002-06-18 21:07:38
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Stephen Smith > Sent: Tuesday, June 18, 2002 9:58 PM > To: dev...@li... > Subject: [Dev-C++] Dev-C++ Version 5 Release 3 Errors > > > I'm using Windows ME (yes, I know, please don't lecture me) :)) > and have just > downloaded the latest version of the Dev-C++ Beta, but it > isn't working. I > get the blue screen of death when I try to compile anything > (even a simple > "Hello World" script, the one included!) and then I have to > restart the > computer numerous times to get everything working and to get > the Internet > back. I am running a P3 1GHz with 256 MB of RAM. Is this a > known issue? Open a command prompt window and get in the directory of your source code file, which is named e.g. temp.c. E.g. C:\>cd c C:\c> Then give \dev-c++\bin\gcc temp.c -o temp and see if it compiles. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Hongli L. <h....@ch...> - 2002-06-18 21:02:07
|
Stephen Smith wrote: > I'm using Windows ME (yes, I know, please don't lecture me) and have > just downloaded the latest version of the Dev-C++ Beta, but it isn't > working. I get the blue screen of death when I try to compile > anything (even a simple "Hello World" script, the one included!) and > then I have to restart the computer numerous times to get everything > working and to get the Internet back. I am running a P3 1GHz with 256 > MB of RAM. Is this a known issue? I'm running ME here too... no problems at all. |
|
From: Stephen S. <ssm...@ho...> - 2002-06-18 18:58:18
|
I'm using Windows ME (yes, I know, please don't lecture me) and have just downloaded the latest version of the Dev-C++ Beta, but it isn't working. I get the blue screen of death when I try to compile anything (even a simple "Hello World" script, the one included!) and then I have to restart the computer numerous times to get everything working and to get the Internet back. I am running a P3 1GHz with 256 MB of RAM. Is this a known issue? Stephen Smith SSm...@ho... _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |
|
From: Nils L. <lan...@we...> - 2002-06-18 16:27:05
|
Hi, can somebody answer me a few questions ? My first problem is I compiled a console program and want to start it like this "bot.exe level3.bot" is it possible to configure dev-c++ o use these parameters ? my second question concerns the classbrowser, is it possible to move around in the .cc file or does it only support to move around in the header ? yours nils |
|
From: Abhijit S. <mu...@gm...> - 2002-06-18 15:07:40
|
.a files are library files. To make them under MingW32, you do this: g++ -c -o foo.o foo.cpp ar -r libfoo.a foo.o Copy libfoo.a to your 'lib' directory, and when compiling stuff, you can use it as a library, as in g++ -o boo.exe boo.cpp -lfoo Translate these commands into appropriate Dev-C++ settings (if possible)... for the 'ar' bit, you'll have to use a script. A reminder: Some people are (still)using HTML e-mail, please switch to text. -------------------------- http://mudeth.tripod.com ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Tuesday, June 18, 2002 3:41 PM Subject: Re: [Dev-C++] making .a files There is no option in file -> new project to make only the .a file, at least in Dev-C++ 4. There are only windows, console, winmain, dll and empty. But I tried to open a new DLL and compile it wothout touch the basic template, and in the output are the .def, the .dll and the .a file. I suppose then that if you want make an .a file you have just to make a dll. It is valid I'll suppose while no other thing is said. [I don't know yet program them, but I am trying to write an application to convert MSVC project to DEV-C++ project] |