dev-cpp-users Mailing List for Dev-C++ (Page 501)
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: Per W. <pw...@ia...> - 2002-10-24 12:51:06
|
Well, maybe not directly forever.
It will also be automatically released - for most operating systems, that
is - when the application ends.
/Per W
On Thu, 24 Oct 2002, Daniel Glenfield wrote:
> I can help with the first - the lifetime of a variable created with mallo=
c()=20
> is forever - until you call free() of course!
>=20
>=20
>=20
>=20
> >From: "Scott Williams" <se...@al...>
> >Reply-To: <se...@al...>
> >To: <dev...@li...>
> >Subject: [Dev-C++] dynamic allocation and structs
> >Date: Thu, 24 Oct 2002 08:18:24 -0400
> >
> >Hi,
> >
> >I'm working in C (no C++ please). Got a couple of questions related to
> >dynamic allocation and in particular, dynamically allocating an array of
> >structs.
> >
> >First, what is the duration of memory allocated by malloc (etc.)? In
> >particular, I want to dynamically allocate/de-allocate several global
> >variables within a single subroutine called from main and so want to be=
=20
> >sure
> >that the allocated memory exists beyond the scope of that subroutine.
> >
> >Second, it is my understanding that it is perfectly acceptable to have a=
n
> >array of structs. E.g.,
> >
> >struct mystruct {
> > double var1;
> > long var2;
> > etc...
> >}
> >
> >. . .
> >
> >struct mystruct data[100];
> >
> >Is this correct? If so, what then is the calling sequence to dynamicall=
y
> >allocate an array of structs, and, in particularly, make the result
> >available globally?
> >
> >Thanks for your help (& sorry if this is naive).
> >
> >Scott Williams
> >
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by: Influence the future
> >of Java(TM) technology. Join the Java Community
> >Process(SM) (JCP(SM)) program now.
> >http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javav=
ote
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
>=20
> _________________________________________________________________
> Surf the Web without missing calls!=A0Get MSN Broadband. =20
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>=20
>=20
>=20
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future=20
> of Java(TM) technology. Join the Java Community=20
> Process(SM) (JCP(SM)) program now.=20
> http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavo=
te
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: Ioannis V. <no...@ho...> - 2002-10-24 12:50:32
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Christian Wallukat
> Sent: Thursday, October 24, 2002 2:51 PM
> To: Dev-Cpp-Users@Lists. Sourceforge. Net (E-Mail)
> Subject: [Dev-C++] Strange phenomenon
>
>
> Hi List,
>
>
> i have a strange phenomenon in my project:
>
> I call a function: Test(char szTest[1024]) with Test("test");
>
> In that function another Function (like the first) will be called:
> Test2(szTest);
>
> the adress of szZest is 0x000000000....
>
> and the content is empty ....
>
>
> Anyone an Idea ????
You must provide the whole code.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 12:32:42
|
Do you need to use BYTE? you seem to be typecasting a lot.
You've allocated memory with new
BYTE *CalledPartyNumberStruct = new BYTE[1024];
then used malloc to allocate more memory later, why is that?
>From: Christian Wallukat <Chr...@vo...>
>To: Daniel Glenfield <sp...@ho...>,
>dev...@li...
>Subject: AW: [Dev-C++] Strange phenomenon
>Date: Thu, 24 Oct 2002 14:18:29 +0200
>
>unsigned Connect(char CalledPartyNumber[1024], char
>CallingPartyNumber[1024])
>{
> _cmsg CMSG;
> int error;
> long Controller;
> unsigned short CIPValue;
>
>
>
> Controller = GetFreeController();
> if (Controller == -1)
> {
> /*----- if no available controller use the first one for
>correct -----*/
> /*----- error signaling -----*/
> Controller = 1;
> };
>
> int Connection = GetFreeLine();
>
> if (Connection == -1)
> {
> printf("Error: no available connection identifiers\n");
> /*----- no OS resources -----*/
> return 0x1108;
> };
>
>
>
> /*----- use ConnectionIdentifier as Messagenumber -----*/
> CONNECT_REQ_HEADER(&CMSG, (WORD)dwApplID, (unsigned short)Connection,
>Controller);
>
> /*----- build up service mask -----*/
>
> CONNECT_REQ_CIPVALUE(&CMSG) = 0x1;
>
> CONNECT_REQ_CALLEDPARTYNUMBER(&CMSG) = SetNumber
>(CalledPartyNumber);;
> CONNECT_REQ_CALLINGPARTYNUMBER(&CMSG) = SetNumber
>(CallingPartyNumber);
> CONNECT_REQ_B1PROTOCOL(&CMSG) = B1PROTOCOL;
> CONNECT_REQ_B2PROTOCOL(&CMSG) = B2PROTOCOL;
> CONNECT_REQ_B3PROTOCOL(&CMSG) = B3PROTOCOL;
> CONNECT_REQ_B3CONFIGURATION(&CMSG) = B3CONFIGURATION;
>
>
> return error;
>};
>
>
>
>
>
>
>
>
>BYTE *SetNumber(char Number[1024])
>{
> BYTE *CalledPartyNumberStruct = new BYTE[1024];
>
> if (strlen(Number) >= 1)
> {
> int len;
>
> len = strlen(Number);
>
> /*----- \xLen\x80 STRING '\0' -----*/
>
> CalledPartyNumberStruct = (unsigned char *)malloc(len + 2 +
>1);
>
> CalledPartyNumberStruct[0] = (unsigned char)(len + 1);
> CalledPartyNumberStruct[1] = 0x80;
>
> strcpy ((char *)&(CalledPartyNumberStruct[2]), Number);
> };
>
> return CalledPartyNumberStruct;
>};
>
>-----Ursprüngliche Nachricht-----
>Von: Daniel Glenfield [mailto:sp...@ho...]
>Gesendet am: Donnerstag, 24. Oktober 2002 14:14
>An: Chr...@vo...; dev...@li...
>Betreff: Re: [Dev-C++] Strange phenomenon
>
>Could be a scope problem. You'll need to show us the functions.
>
>
> >From: Christian Wallukat <Chr...@vo...>
> >To: "Dev-Cpp-Users@Lists. Sourceforge. Net (E-Mail)"
> ><dev...@li...>
> >Subject: [Dev-C++] Strange phenomenon
> >Date: Thu, 24 Oct 2002 13:51:23 +0200
> >
> >Hi List,
> >
> >
> >i have a strange phenomenon in my project:
> >
> >I call a function: Test(char szTest[1024]) with Test("test");
> >
> >In that function another Function (like the first) will be called:
> >Test2(szTest);
> >
> >the adress of szZest is 0x000000000....
> >
> >and the content is empty ....
> >
> >
> >Anyone an Idea ????
> >
> >Kind r
> >
> >Chris
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by: Influence the future
> >of Java(TM) technology. Join the Java Community
> >Process(SM) (JCP(SM)) program now.
> >http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>_________________________________________________________________
>Get a speedy connection with MSN Broadband. Join now!
>http://resourcecenter.msn.com/access/plans/freeactivation.asp
_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN.
http://resourcecenter.msn.com/access/plans/default.asp
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 12:29:03
|
I can help with the first - the lifetime of a variable created with malloc()
is forever - until you call free() of course!
>From: "Scott Williams" <se...@al...>
>Reply-To: <se...@al...>
>To: <dev...@li...>
>Subject: [Dev-C++] dynamic allocation and structs
>Date: Thu, 24 Oct 2002 08:18:24 -0400
>
>Hi,
>
>I'm working in C (no C++ please). Got a couple of questions related to
>dynamic allocation and in particular, dynamically allocating an array of
>structs.
>
>First, what is the duration of memory allocated by malloc (etc.)? In
>particular, I want to dynamically allocate/de-allocate several global
>variables within a single subroutine called from main and so want to be
>sure
>that the allocated memory exists beyond the scope of that subroutine.
>
>Second, it is my understanding that it is perfectly acceptable to have an
>array of structs. E.g.,
>
>struct mystruct {
> double var1;
> long var2;
> etc...
>}
>
>. . .
>
>struct mystruct data[100];
>
>Is this correct? If so, what then is the calling sequence to dynamically
>allocate an array of structs, and, in particularly, make the result
>available globally?
>
>Thanks for your help (& sorry if this is naive).
>
>Scott Williams
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: Influence the future
>of Java(TM) technology. Join the Java Community
>Process(SM) (JCP(SM)) program now.
>http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
|
|
From: Christian W. <Chr...@vo...> - 2002-10-24 12:19:59
|
unsigned Connect(char CalledPartyNumber[1024], char
CallingPartyNumber[1024])=20
{
_cmsg CMSG;
int error;
long Controller;
unsigned short CIPValue;
=20
Controller =3D GetFreeController();
if (Controller =3D=3D -1)=20
{
/*----- if no available controller use the first one for
correct -----*/
/*----- error signaling -----*/
Controller =3D 1;
};
int Connection =3D GetFreeLine();
=20
if (Connection =3D=3D -1)=20
{
printf("Error: no available connection identifiers\n");
/*----- no OS resources -----*/
return 0x1108;
};
=20
/*----- use ConnectionIdentifier as Messagenumber -----*/
CONNECT_REQ_HEADER(&CMSG, (WORD)dwApplID, (unsigned =
short)Connection,
Controller);
/*----- build up service mask -----*/
=20
CONNECT_REQ_CIPVALUE(&CMSG) =3D 0x1;
CONNECT_REQ_CALLEDPARTYNUMBER(&CMSG) =3D SetNumber =
(CalledPartyNumber);;
CONNECT_REQ_CALLINGPARTYNUMBER(&CMSG) =3D SetNumber =
(CallingPartyNumber);
CONNECT_REQ_B1PROTOCOL(&CMSG) =3D B1PROTOCOL;
CONNECT_REQ_B2PROTOCOL(&CMSG) =3D B2PROTOCOL;
CONNECT_REQ_B3PROTOCOL(&CMSG) =3D B3PROTOCOL;
CONNECT_REQ_B3CONFIGURATION(&CMSG) =3D B3CONFIGURATION;
return error;
};
BYTE *SetNumber(char Number[1024])=20
{
BYTE *CalledPartyNumberStruct =3D new BYTE[1024];
if (strlen(Number) >=3D 1)=20
{
int len;
=09
len =3D strlen(Number);
/*----- \xLen\x80 STRING '\0' -----*/
CalledPartyNumberStruct =3D (unsigned char *)malloc(len + 2 +
1);
=09
CalledPartyNumberStruct[0] =3D (unsigned char)(len + 1);
CalledPartyNumberStruct[1] =3D 0x80;
=09
strcpy ((char *)&(CalledPartyNumberStruct[2]), Number);
};
return CalledPartyNumberStruct;
};
-----Urspr=FCngliche Nachricht-----
Von: Daniel Glenfield [mailto:sp...@ho...]
Gesendet am: Donnerstag, 24. Oktober 2002 14:14
An: Chr...@vo...; dev...@li...
Betreff: Re: [Dev-C++] Strange phenomenon
Could be a scope problem. You'll need to show us the functions.
>From: Christian Wallukat <Chr...@vo...>
>To: "Dev-Cpp-Users@Lists. Sourceforge. Net (E-Mail)"=20
><dev...@li...>
>Subject: [Dev-C++] Strange phenomenon
>Date: Thu, 24 Oct 2002 13:51:23 +0200
>
>Hi List,
>
>
>i have a strange phenomenon in my project:
>
>I call a function: Test(char szTest[1024]) with Test("test");
>
>In that function another Function (like the first) will be called:
>Test2(szTest);
>
>the adress of szZest is 0x000000000....
>
>and the content is empty ....
>
>
>Anyone an Idea ????
>
>Kind r
>
>Chris
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: Influence the future
>of Java(TM) technology. Join the Java Community
>Process(SM) (JCP(SM)) program now.
>http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/java=
vote
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get a speedy connection with MSN Broadband. Join now!=20
http://resourcecenter.msn.com/access/plans/freeactivation.asp
|
|
From: Scott W. <se...@al...> - 2002-10-24 12:18:03
|
Hi,
I'm working in C (no C++ please). Got a couple of questions related to
dynamic allocation and in particular, dynamically allocating an array of
structs.
First, what is the duration of memory allocated by malloc (etc.)? In
particular, I want to dynamically allocate/de-allocate several global
variables within a single subroutine called from main and so want to be sure
that the allocated memory exists beyond the scope of that subroutine.
Second, it is my understanding that it is perfectly acceptable to have an
array of structs. E.g.,
struct mystruct {
double var1;
long var2;
etc...
}
. . .
struct mystruct data[100];
Is this correct? If so, what then is the calling sequence to dynamically
allocate an array of structs, and, in particularly, make the result
available globally?
Thanks for your help (& sorry if this is naive).
Scott Williams
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 12:16:09
|
I'm sure the linked list is the right way to do it, I just can't remember
the specifics.
>From: "Vlada Djurovic" <dj...@im...>
>To: "Daniel Glenfield"
><sp...@ho...>,<dev...@li...>
>Subject: Re: [Dev-C++] Whoops - drawing in Windows
>Date: Thu, 24 Oct 2002 14:02:32 +0200
>
>
>----- Original Message -----
>From: "Daniel Glenfield" <sp...@ho...>
>To: <dj...@im...>; <dev...@li...>
>Sent: Thursday, October 24, 2002 11:59 AM
>Subject: Re: [Dev-C++] Whoops - drawing in Windows
>
>
> > Nope maybe not, serialising is for saving and restoring.
> >
> > I think you have to store the info in to an array, but looking at this
>old
> > code I cannot remember what exactly you have to do. I worked on the
>Scribble
> > tutorial that comes with VC++ - have a look on MSDN for it.
> >
> >
>I tried to store all the info in a linked list, but I think I did something
>wrong because the program just froze when I tried to draw something. Then I
>thought it would be easier to store the drawing in a compatible memory
>bitmap and then just copy it back in the client area when it needs to be
>redrawn, but this also didn't work because the program froze again. That's
>why I was asking if anyone can give me some guidelines about how to do this
>(the bitmap way).
>As for the tutorials, I read the book "Teach yourself VC++ in 21 days"
>which
>also has some stuff about this, but although I think I did everything the
>way it's done in VC++- it doesn't work.
>
>Regards, Vlada
> >
> > >From: "Vlada Djurovic" <dj...@im...>
> > >To: "'DevC++ help'" <dev...@li...>
> > >Subject: [Dev-C++] drawing in Windows
> > >Date: Thu, 24 Oct 2002 10:32:16 +0200
> > >
> > >Hi, everybody
> > >Here's my problem: I'm trying to write a simple drawing app (just for
> > >exercise) and so far its been going OK. I can draw lines in client area
>in
> > >different colors, but when ever I minimize or maximize the window, or
> > >something similar happenes, all the content of the window is gone. I
>tried
> > >to use a memory DC an bitmap to save the contents in, and BitBlt it
>back
>in
> > >response to WM_PAINT message, but the program just "froze". Can anybody
> > >give me a hint how to do it? Here's the code used for drawing lines
>without
> > >any restoring parts:
> > >
> > > case WM_MOUSEMOVE:
> > > {
> > > switch(iTool) /* iTool is used for dtetrmining
>which
> > >drawing tool is selected(line, rect etc.)*/
> > > {
> > > case 0:
> > > {
> > > if(wParam==MK_LBUTTON) /*if line is selected
> > >(itool=0) and left button presed*/
> > > {
> > > HDC hDC=GetDC(hwnd);
> > >
> > > HPEN
>hPen=CreatePen(PS_SOLID,iCurWidth,crCurColor);
> > > HPEN hOldPen=(HPEN)SelectObject(hDC,hPen);
> > > CLine* pLine=new
> > >CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); /*create new
>line
> > >object*/
> > > pLine->DrawLine(hDC);
> > > ptPrevPos=MAKEPOINTS(lParam);
> > > SelectObject(hDC,hOldPen);
> > > DeleteDC(hDC);
> > > }
> > > }
> > > break;
> > > case 1: /* nothing here yet*/
> > > break;
> > > }
> > > }
> >
> >
> > _________________________________________________________________
> > Get a speedy connection with MSN Broadband. Join now!
> > http://resourcecenter.msn.com/access/plans/freeactivation.asp
> >
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: Influence the future
>of Java(TM) technology. Join the Java Community
>Process(SM) (JCP(SM)) program now.
>http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN.
http://resourcecenter.msn.com/access/plans/default.asp
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 12:14:23
|
Could be a scope problem. You'll need to show us the functions.
>From: Christian Wallukat <Chr...@vo...>
>To: "Dev-Cpp-Users@Lists. Sourceforge. Net (E-Mail)"
><dev...@li...>
>Subject: [Dev-C++] Strange phenomenon
>Date: Thu, 24 Oct 2002 13:51:23 +0200
>
>Hi List,
>
>
>i have a strange phenomenon in my project:
>
>I call a function: Test(char szTest[1024]) with Test("test");
>
>In that function another Function (like the first) will be called:
>Test2(szTest);
>
>the adress of szZest is 0x000000000....
>
>and the content is empty ....
>
>
>Anyone an Idea ????
>
>Kind r
>
>Chris
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: Influence the future
>of Java(TM) technology. Join the Java Community
>Process(SM) (JCP(SM)) program now.
>http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Get a speedy connection with MSN Broadband. Join now!
http://resourcecenter.msn.com/access/plans/freeactivation.asp
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 12:14:22
|
Could be a scope problem. You'll need to show us the functions.
>From: Christian Wallukat <Chr...@vo...>
>To: "Dev-Cpp-Users@Lists. Sourceforge. Net (E-Mail)"
><dev...@li...>
>Subject: [Dev-C++] Strange phenomenon
>Date: Thu, 24 Oct 2002 13:51:23 +0200
>
>Hi List,
>
>
>i have a strange phenomenon in my project:
>
>I call a function: Test(char szTest[1024]) with Test("test");
>
>In that function another Function (like the first) will be called:
>Test2(szTest);
>
>the adress of szZest is 0x000000000....
>
>and the content is empty ....
>
>
>Anyone an Idea ????
>
>Kind r
>
>Chris
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: Influence the future
>of Java(TM) technology. Join the Java Community
>Process(SM) (JCP(SM)) program now.
>http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Unlimited Internet access for only $21.95/month. Try MSN!
http://resourcecenter.msn.com/access/plans/2monthsfree.asp
|
|
From: Vlada D. <dj...@im...> - 2002-10-24 12:01:07
|
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <dj...@im...>; <dev...@li...>
Sent: Thursday, October 24, 2002 11:59 AM
Subject: Re: [Dev-C++] Whoops - drawing in Windows
> Nope maybe not, serialising is for saving and restoring.
>
> I think you have to store the info in to an array, but looking at this old
> code I cannot remember what exactly you have to do. I worked on the
Scribble
> tutorial that comes with VC++ - have a look on MSDN for it.
>
>
I tried to store all the info in a linked list, but I think I did something
wrong because the program just froze when I tried to draw something. Then I
thought it would be easier to store the drawing in a compatible memory
bitmap and then just copy it back in the client area when it needs to be
redrawn, but this also didn't work because the program froze again. That's
why I was asking if anyone can give me some guidelines about how to do this
(the bitmap way).
As for the tutorials, I read the book "Teach yourself VC++ in 21 days" which
also has some stuff about this, but although I think I did everything the
way it's done in VC++- it doesn't work.
Regards, Vlada
>
> >From: "Vlada Djurovic" <dj...@im...>
> >To: "'DevC++ help'" <dev...@li...>
> >Subject: [Dev-C++] drawing in Windows
> >Date: Thu, 24 Oct 2002 10:32:16 +0200
> >
> >Hi, everybody
> >Here's my problem: I'm trying to write a simple drawing app (just for
> >exercise) and so far its been going OK. I can draw lines in client area
in
> >different colors, but when ever I minimize or maximize the window, or
> >something similar happenes, all the content of the window is gone. I
tried
> >to use a memory DC an bitmap to save the contents in, and BitBlt it back
in
> >response to WM_PAINT message, but the program just "froze". Can anybody
> >give me a hint how to do it? Here's the code used for drawing lines
without
> >any restoring parts:
> >
> > case WM_MOUSEMOVE:
> > {
> > switch(iTool) /* iTool is used for dtetrmining
which
> >drawing tool is selected(line, rect etc.)*/
> > {
> > case 0:
> > {
> > if(wParam==MK_LBUTTON) /*if line is selected
> >(itool=0) and left button presed*/
> > {
> > HDC hDC=GetDC(hwnd);
> >
> > HPEN
hPen=CreatePen(PS_SOLID,iCurWidth,crCurColor);
> > HPEN hOldPen=(HPEN)SelectObject(hDC,hPen);
> > CLine* pLine=new
> >CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); /*create new
line
> >object*/
> > pLine->DrawLine(hDC);
> > ptPrevPos=MAKEPOINTS(lParam);
> > SelectObject(hDC,hOldPen);
> > DeleteDC(hDC);
> > }
> > }
> > break;
> > case 1: /* nothing here yet*/
> > break;
> > }
> > }
>
>
> _________________________________________________________________
> Get a speedy connection with MSN Broadband. Join now!
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
|
|
From: Christian W. <Chr...@vo...> - 2002-10-24 11:52:58
|
Hi List,
i have a strange phenomenon in my project:
I call a function: Test(char szTest[1024]) with Test("test");
In that function another Function (like the first) will be called:
Test2(szTest);
the adress of szZest is 0x000000000....
and the content is empty ....
Anyone an Idea ????
Kind r
Chris
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 11:19:51
|
lol hasn't this been asked almost as much as the "how do I unsubscribe"
question? Maybe Ioannis can put a page on his website to detail the
different methods?
>From: Pierre Lepage <fam...@gl...>
>To: da...@ir...
>CC: dev...@li...
>Subject: RE : [Dev-C++] How to keep the DOS console open?
>Date: Thu, 24 Oct 2002 06:45:59 -0400
>
>You must send a command to DOS to pause for sometime.
>
>The solution look like this :
>
>
>#include <cstdlib> // function system
>
>
>
>
>void main {
>
>
your programm
>
> system(PAUSE);
>
>} // end of main.
>
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|
|
From: Pierre L. <fam...@gl...> - 2002-10-24 10:44:44
|
You must send a command to DOS to pause for sometime.
The solution look like this :
#include <cstdlib> // function system
=85
void main {
=85 your programm
system(=93PAUSE=94);
} // end of main.
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 10:01:40
|
Nope maybe not, serialising is for saving and restoring.
I think you have to store the info in to an array, but looking at this old
code I cannot remember what exactly you have to do. I worked on the Scribble
tutorial that comes with VC++ - have a look on MSDN for it.
>From: "Vlada Djurovic" <dj...@im...>
>To: "'DevC++ help'" <dev...@li...>
>Subject: [Dev-C++] drawing in Windows
>Date: Thu, 24 Oct 2002 10:32:16 +0200
>
>Hi, everybody
>Here's my problem: I'm trying to write a simple drawing app (just for
>exercise) and so far its been going OK. I can draw lines in client area in
>different colors, but when ever I minimize or maximize the window, or
>something similar happenes, all the content of the window is gone. I tried
>to use a memory DC an bitmap to save the contents in, and BitBlt it back in
>response to WM_PAINT message, but the program just "froze". Can anybody
>give me a hint how to do it? Here's the code used for drawing lines without
>any restoring parts:
>
> case WM_MOUSEMOVE:
> {
> switch(iTool) /* iTool is used for dtetrmining which
>drawing tool is selected(line, rect etc.)*/
> {
> case 0:
> {
> if(wParam==MK_LBUTTON) /*if line is selected
>(itool=0) and left button presed*/
> {
> HDC hDC=GetDC(hwnd);
>
> HPEN hPen=CreatePen(PS_SOLID,iCurWidth,crCurColor);
> HPEN hOldPen=(HPEN)SelectObject(hDC,hPen);
> CLine* pLine=new
>CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); /*create new line
>object*/
> pLine->DrawLine(hDC);
> ptPrevPos=MAKEPOINTS(lParam);
> SelectObject(hDC,hOldPen);
> DeleteDC(hDC);
> }
> }
> break;
> case 1: /* nothing here yet*/
> break;
> }
> }
_________________________________________________________________
Get a speedy connection with MSN Broadband. Join now!
http://resourcecenter.msn.com/access/plans/freeactivation.asp
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 09:45:07
|
Yes you need to serialise the information to a file. I'll see if I can dig
up some information on this, but that's what you need to do.
>From: "Vlada Djurovic" <dj...@im...>
>To: "'DevC++ help'" <dev...@li...>
>Subject: [Dev-C++] drawing in Windows
>Date: Thu, 24 Oct 2002 10:32:16 +0200
>
>Hi, everybody
>Here's my problem: I'm trying to write a simple drawing app (just for
>exercise) and so far its been going OK. I can draw lines in client area in
>different colors, but when ever I minimize or maximize the window, or
>something similar happenes, all the content of the window is gone. I tried
>to use a memory DC an bitmap to save the contents in, and BitBlt it back in
>response to WM_PAINT message, but the program just "froze". Can anybody
>give me a hint how to do it? Here's the code used for drawing lines without
>any restoring parts:
>
> case WM_MOUSEMOVE:
> {
> switch(iTool) /* iTool is used for dtetrmining which
>drawing tool is selected(line, rect etc.)*/
> {
> case 0:
> {
> if(wParam==MK_LBUTTON) /*if line is selected
>(itool=0) and left button presed*/
> {
> HDC hDC=GetDC(hwnd);
>
> HPEN hPen=CreatePen(PS_SOLID,iCurWidth,crCurColor);
> HPEN hOldPen=(HPEN)SelectObject(hDC,hPen);
> CLine* pLine=new
>CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); /*create new line
>object*/
> pLine->DrawLine(hDC);
> ptPrevPos=MAKEPOINTS(lParam);
> SelectObject(hDC,hOldPen);
> DeleteDC(hDC);
> }
> }
> break;
> case 1: /* nothing here yet*/
> break;
> }
> }
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|
|
From: Daniel G. <sp...@ho...> - 2002-10-24 09:43:36
|
This constructor may help
fstream( const char* szName, int nMode, int nProt = filebuf::openprot );
szName is the name of the file,
nMode is ios::in, ios::out etc.
then use
filebuf::sh_read (Read sharing allowed.)
and
filebuf::sh_write (Write sharing allowed.)
with the || operator.
Try closing the file as well once you are done with it.
>From: "Mitchell, Tamra (DLM)" <Tam...@dl...>
>To: "'dev...@li...'"
><dev...@li...>
>Subject: [Dev-C++] Input one file output another.
>Date: Wed, 23 Oct 2002 14:54:20 -0400
>
>
>Rephrase question.
>
>I am trying read test from one file and output to another file and am not
>sure how to complete correctly.
>
>#include<fstream>
>#include<iostream>
>using namespace std;
>
>void main(){
> ifstream fin;
> ofstream fout;
> fin.open("Eb.txt");
> /*if(fin==0){
> cout << " input file xx.txt not found "<< endl;
> }*/
> fout.open("y.txt");
> int a[10],i;
> for(i=0;i<10;i++)
> fin >> a[i];
> for(i=0;i<10;i++)
> fout << a[i] << endl;
>
>}
>
>
>Can anyone offer any suggestions.
>
>Tamra Y. Mitchell
>Database & Operating Systems Analyst
>412-222-8203 - Work
>412-996-9078 - Cell
>
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
|
|
From: Carlos d. M. <cg...@wo...> - 2002-10-24 09:39:43
|
I updated Dev to the 4.9.6.5 version, now the import MSVisual project does not work, I select the dsp file and when I click on import button it does nothing. |
|
From: Per W. <pw...@ia...> - 2002-10-24 09:37:12
|
Hello David! As a regular user of sourceforge, you should know that sourceforge keeps the archive of this mailing list. You only have to scan two days back to find your specific question, and an answer. /Per W On Mon, 21 Oct 2002, Per Westermark wrote: > The problem is that you have forgotten do define which compiler > environment you are using. >=20 > Deefine __GNUWIN32__ and wxWindows will select a suitable string compare > function. >=20 > A good trick when playing along with the wxWindows kit is to run the > makefiles in the samples directory. When they compile the code, you will > see a number of parameters sent to gcc. If you make sure that your own > projects uses the same parameters, you will be home-free. >=20 > You will get all needed libraries, same settings for run-time type > information, debug settings etc. >=20 > /Per W >=20 > On Mon, 21 Oct 2002, Santiago Palmier Campos wrote: >=20 > > Hi Mark, > >=20 > > This error may appear due to... > >=20 > > ...uncomplete/wrong build of wxWindows libraries; so you have to rebuil= d the > > libraries correctly. > >=20 > > ...wrong order for include directories, please check them and take a lo= ok > > at: > > http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Directory-Options.html#Direct= ory%2 > > 0Options > > I think it is really useful sometimes ;o) > >=20 > > Hope this helps! > > Regards > >=20 > > Santy > > PS: wxWindows is not so hard/difficult to use, just be a little bit pat= ient > > at the beginning, follow the README instructions and take a look at som= e > > tutorials, they are great!!! Just my 2 cents! > >=20 > > -----Original Message----- > > From: Mark L. Wise [mailto:ma...@al...]=20 > > Sent: s=E1bado, 19 de octubre de 2002 0:03 > > To: dev...@li... > > Subject: [Dev-C++] WxWINDOWS and Dev-C++ > >=20 > >=20 > > Hello all! > >=20 > > Sorry to be such a pain regarding WxWINDOWS and Dev-C++, but.... > >=20 > > I have been trying to compile some of the sample code included with the > > WxWINDOWS package. When I try compiling I get the following message (a= long > > with other things...) > >=20 > > 4 C:\PROGRAM FILES\DEV-C++\include\wx\string.h:170 > > #error "Please define string case-insensitive compare for your OS/compi= ler" > >=20 > > So... How do I define string case-insensitive compare in Dev-C++??? > >=20 > > Thanks in advance... > >=20 > > Mark > >=20 > > Alpha II Service, Inc. > > 1312 Epworth Avenue > > Reynoldsburg, Ohio 43068 > > 614 868-5033 (Voice) > > 617 812-5838 (Fax) > >=20 > >=20 > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -----------------------------------------------------------------------= --------------- > > This message and any files transmitted with it are confidential and int= ended solely=20 > > for the use of the individual or entity to whom they are addressed. No = confidentiality=20 > > or privilege is waived or lost by any wrong transmission.=20 > > If you have received this message in error, please immediately destroy = it and kindly=20 > > notify the sender by reply email. > > You must not, directly or indirectly, use, disclose, distribute, print,= or copy any=20 > > part of this message if you are not the intended recipient. Opinions, c= onclusions and=20 > > other information in this message that do not relate to the official bu= siness of=20 > > Ydilo Advanced Voice Solutions, S.A. shall be understood as neither giv= en nor endorsed by it.=20 > > -----------------------------------------------------------------------= --------------- > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > >=20 >=20 >=20 |
|
From: Vlada D. <dj...@im...> - 2002-10-24 08:30:45
|
Hi, everybody
Here's my problem: I'm trying to write a simple drawing app (just for =
exercise) and so far its been going OK. I can draw lines in client area =
in different colors, but when ever I minimize or maximize the window, or =
something similar happenes, all the content of the window is gone. I =
tried to use a memory DC an bitmap to save the contents in, and BitBlt =
it back in response to WM_PAINT message, but the program just "froze". =
Can anybody give me a hint how to do it? Here's the code used for =
drawing lines without any restoring parts:
case WM_MOUSEMOVE:
{
switch(iTool) /* iTool is used for dtetrmining =
which drawing tool is selected(line, rect etc.)*/
{
case 0:
{
if(wParam=3D=3DMK_LBUTTON) /*if line is selected =
(itool=3D0) and left button presed*/
{
HDC hDC=3DGetDC(hwnd); =20
=20
HPEN =
hPen=3DCreatePen(PS_SOLID,iCurWidth,crCurColor);
HPEN hOldPen=3D(HPEN)SelectObject(hDC,hPen);
CLine* pLine=3Dnew =
CLine(ptPrevPos,MAKEPOINTS(lParam),iCurWidth,crCurColor); /*create new =
line object*/
pLine->DrawLine(hDC);
ptPrevPos=3DMAKEPOINTS(lParam);
SelectObject(hDC,hOldPen);
DeleteDC(hDC);
}
}
break;
case 1: /* nothing here yet*/
break;
}
}
|
|
From: Frank W. <F.W...@wi...> - 2002-10-24 07:50:22
|
Hello Colin, after downloading vUdate you metioned in your mail i be able to start vUpdate but got the "devcpp.cfg" error within the vUpdate status window. After I got connected with vUdate to look for new updates I was informed that there is a more recent version of vUpdate. It is not possible to update parts or files of Dev-C++ without updating vUpdate first. So when I click on the update button a new version of vUpadate will be installed and if I click on Look for Updates within Dev-C++ I will get the error message described in my last mail without opening vUpdate. Greetings Frank >>> Colin Laplace <ha...@bl...> 10/23 2:00 >>> Hello, With Dev-C++ 4.9.6.0 the config file directory has changed for NT, 2000 and XP. You need to update your vUpdate to have it look for the correct directory. If you cannot autoupdate it, you can download it from : http://www.zero47.com/devfiles/vUpdate.exe Greetings, Colin Laplace On Wednesday 23 October 2002 13:16, you wrote: > Hello, > > I'm working on NT4SP6 and run vUpdate. > After updating a new start of vUpdate leads to an Error that said: > > Error: devcpp.cfg not found Please check ... > > I checked these folders and I copied devcpp to all that directories I > thought they could take affect. > Devcpp.cfg is in the root directory of Dev-C++ and at serveral > locations in C:\WinNt\profiles...\Application Data. > But the Error is still present even if I restart Dev-C++. > > How can this be fixed? > > Greetings > > Frank > > > ------------------------------------------------------- > This sf.net emial is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Haag A. <ach...@fa...> - 2002-10-24 07:21:33
|
Hi, after installing dev-c++ 4.9.6.0 I found the help file to be missing. On = the mailing list, the answer to exactly the same question suggested to = do a 'Check for updates' via the intenet. This would detect that the = file 'dev.hlp' was missing and download it.=20 Alas, I do not have an internet connection on the machine where dev-c++ = is installed. I have searched the whole of the bloodshed page as well a = the last four month of the mailing list, but could not locate this file. = Thus my question: Where can I (manually) download the help file for dev-c++ 4.9.6.0. Thanks a lot for your help, Achim |
|
From: Santiago <sa...@ho...> - 2002-10-24 04:13:49
|
I had problems linking in winXP after I did system restore. It's a second partition and after formatting it and re-installing windows, it got fixed. ----- Original Message ----- From: "David Scott Williams" <xi...@pr...> To: <dev...@li...> Sent: Wednesday, October 23, 2002 11:43 PM Subject: [Dev-C++] One more whack at this question.... > I am getting errors using the wxwindows module for Dev-C++ > > I run Windows XP (and Linux)...but am writing a C++ application > specifically for windows. > > The first error I am getting is that "string-insensitive" compare has > not been defined > The second is an illegal toolkit in font.h > > Does anyone know anything about running Dev-C++ on XP with the WxWindows > package? Heck..it might not have anything to do with the WxWindows > package... > > Has anyone gotten Dev-C++ working on Windows XP? > > -- > ~Dave > xi...@pr... > > Brainchild > (and current obsession) > http://dustyscript.sourceforge.net/ > >Dustyscript: Programming for Children< > > Other Obsession > http://sourceforge.net/projects/livingresume/ > >Living Resume: Dynamic Resume Software< > > ||*Other projects that I head up*|| > http://sourceforge.net/projects/cxtable > >The xTable Project<< > http://sourceforge.net/projects/moonroof > >Moonroof, a Java desktop< > > |**Projects that I am dedicated to (but not in charge of)*|| > http://sourceforge.net/projects/grapevine > >Grapevine p2p network< > "The Java Port" > http://sourceforge.net/projects/symbiosis >Symbiosis< > > weblog: http://wildegrey.blogspot.com/ > > "When I think back on all the crap I learned in High School... > it's a wonder I can think at all..." > -Paul Simon, "Kodachrome" > > "...I took the road less travelled by, and that has made all the difference.." > -Robert Frost > > "Man is the only animal that blushes... or needs to" > -Mark Twain > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Influence the future > of Java(TM) technology. Join the Java Community > Process(SM) (JCP(SM)) program now. > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: David S. W. <xi...@pr...> - 2002-10-24 03:27:46
|
I am getting errors using the wxwindows module for Dev-C++ I run Windows XP (and Linux)...but am writing a C++ application specifically for windows. The first error I am getting is that "string-insensitive" compare has not been defined The second is an illegal toolkit in font.h Does anyone know anything about running Dev-C++ on XP with the WxWindows package? Heck..it might not have anything to do with the WxWindows package... Has anyone gotten Dev-C++ working on Windows XP? -- ~Dave xi...@pr... Brainchild (and current obsession) http://dustyscript.sourceforge.net/ >Dustyscript: Programming for Children< Other Obsession http://sourceforge.net/projects/livingresume/ >Living Resume: Dynamic Resume Software< ||*Other projects that I head up*|| http://sourceforge.net/projects/cxtable >The xTable Project<< http://sourceforge.net/projects/moonroof >Moonroof, a Java desktop< |**Projects that I am dedicated to (but not in charge of)*|| http://sourceforge.net/projects/grapevine >Grapevine p2p network< "The Java Port" http://sourceforge.net/projects/symbiosis >Symbiosis< weblog: http://wildegrey.blogspot.com/ "When I think back on all the crap I learned in High School... it's a wonder I can think at all..." -Paul Simon, "Kodachrome" "...I took the road less travelled by, and that has made all the difference.." -Robert Frost "Man is the only animal that blushes... or needs to" -Mark Twain |
|
From: Charles <cha...@at...> - 2002-10-24 02:12:26
|
I need some guidance in the implementation of Tools. I got the idea of invoking some source code beautifier utility such as Great Code or Artistic Style as a Tool. They both work fine from the command line but I'm having some trouble getting them to work from within Dev-C++. I think that I want to use an Available Macro to specify the file to be worked on. The Quick Help on Macros doesn't give me enough information to go on. Can anybody tell me when to find documentation on the Tools Configuration? I'm running Dev-C++ version 4.9.6.5 (and 4.01) under Windows 98SE and have a devcpp.hlp file current as of yesterday. Charles |
|
From: Mitchell, T. (DLM) <Tam...@dl...> - 2002-10-24 00:51:27
|
Rephrase question.
I am trying read test from one file and output to another file and am not
sure how to complete correctly.
#include<fstream>
#include<iostream>
using namespace std;
void main(){
ifstream fin;
ofstream fout;
fin.open("Eb.txt");
/*if(fin==0){
cout << " input file xx.txt not found "<< endl;
}*/
fout.open("y.txt");
int a[10],i;
for(i=0;i<10;i++)
fin >> a[i];
for(i=0;i<10;i++)
fout << a[i] << endl;
}
Can anyone offer any suggestions.
Tamra Y. Mitchell
Database & Operating Systems Analyst
412-222-8203 - Work
412-996-9078 - Cell
|