dev-cpp-users Mailing List for Dev-C++ (Page 403)
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: <pau...@se...> - 2003-04-08 17:26:00
|
Hi all!
I'd like to now why this code bellow dont work, more specific about
functions clrscr(),textcolor(),gotoxy(),delay() cprintf().
I am using dev-c++ 4.9.8.0.
Thanks.
Paulogon
# include <stdio.h>
# include <dos.h>
# include <conio.h>
# include <stdlib.h>
int main()
{
clrscr();
textcolor(3);
gotoxy(19,8 );cprintf(" =B1 =B1=B1=B1=B1=B1 =B1=B1=B1=B1=B1 =B1=B1=
=B1=B1=B1 =B1=B1=B1 =B1=B1=B1=B1 ");
delay(50);
system("PAUSE");
return 0;
}
=
|
|
From: Ken B. <ke...@al...> - 2003-04-08 13:06:43
|
Perhaps, because it doesn't seem to make much sense. GUI stands for Graphical User Interface, which by implication is non-text based. Maybe you're looking for something like ncurses, a multi window system for text based terminals. If so, check out http://www.linuxfocus.org/English/March2002/article233.shtml and http://freshmeat.net/projects/ncurses/?topic_id=809. I hope that's helpful. Ken Bradford Alpha II Service, Inc. > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Smitha V. > Babu > Sent: Tuesday, April 08, 2003 12:54 AM > To: Dev-C Mailing List > Subject: [Dev-C++] RE: GUI on Linux > > > Why any one of not answering my question.. > > > > -----Original Message----- > > From: Smitha V. Babu > > Sent: Tuesday, April 08, 2003 9:18 AM > > To: Dev-C Mailing List > > Subject: GUI on Linux > > > > > > Does any one how to make text based GUI on linux.. > > I don't know how to start up with... > > Can someone suggest an answer.... > > Or some good tutorial for that > > > > Thanking in advance > > smitha > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************* > Disclaimer: The information in this e-mail and any attachments is > confidential / privileged. It is intended solely for the addressee or > addressees. If you are not the addressee indicated in this > message, you may > not copy or deliver this message to anyone. In such case, you > should destroy > this message and kindly notify the sender by reply email. Please advise > immediately if you or your employer does not consent to Internet email for > messages of this kind. > ********************************************************************* > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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: NBarnes <nw_...@ya...> - 2003-04-08 07:44:04
|
My current application uses Simple DirectMedia Layer. I'm trying to
move it over from MSVC++ to Dev C++. The code compiles nice and clean
under MSVC++, but when I try to complile it in Dev-C++, I get 22 linker
errors, of the pattern...
undefined reference to `SDL_RWFromFile
undefined reference to `SDL_LoadBMP_RW'
and others.
I am using SDL_LoadBMP in my code, but I am not calling CDL_LoadBMP_RW
myself. I have installed the SDL dev pack for Dev-C++ and have gone
in to confirm the presense of both the appropriate header files and
SDL.dll, and both appear to be fine.
Can anybody help me resolve this problem? I want to open this
project to several other programmers I know, but I cannot until I
resolve this problem, as I want dev work to continue using Dev-C++.
NBarnes
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
|
|
From: Daniel G. <sp...@ho...> - 2003-04-08 07:02:28
|
Well someone asked me how (they are using VC++) so I guess it's along those lines in another compiler huh? The library...that's the .cpp files compiled isn't it? and you #include the header and then just call them, yes? Daniel >From: David Matthews <dem...@uw...> >To: "Daniel Glenfield" <sp...@ho...>, >dev...@li... >Subject: Re: [Dev-C++] Creating a static library >Date: Mon, 07 Apr 2003 14:32:37 -0400 > >New project, static library. Add the source files to the project, compile >as lib<yourname>.a drop the new .a library into your /lib/ directory. In >another project, go to linker options, add -l<yourname> and #include ><yourname>.h > >At 04:52 PM 07/04/2003 +0100, Daniel Glenfield wrote: > >How can I create a static library? > > > >Sorry if this is obvious, can't think today! > > > > > > > > > > > >_________________________________________________________________ > >It's fast, it's easy and it's free. Get MSN Messenger today! > >http://www.msn.co.uk/messenger > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 > > _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |
|
From: Vlada D. <dj...@im...> - 2003-04-08 06:22:59
|
Thanks for explanation. I think it will be very usefull.
----- Original Message -----
From: "Per Westermark" <pw...@ia...>
To: "Vlada Djurovic" <dj...@im...>
Cc: "Igor Pierscinski" <igo...@po...>;
<dev...@li...>
Sent: Monday, April 07, 2003 5:34 PM
Subject: Re: [Dev-C++] syntax error driving me crazy
You might write:
stuct x {
int a,b,c;
};
x myvar[2] = {{1,2,3},{3,4,5}};
However, you may not write:
x myvar;
myvar[0].x = 1;
myvar[0].y = 2;
...
When assigning values to a global variable, the assign must be of the form
my_type my_global_variable = xx;
or
my_type my_global_variable = { xx };
If you don't give an equal sign directly, the global variable will be set
to zero, and you'll have to wait until you are inside main() or a function
called by main() before you may change the value of the global variable.
/Per W
On Mon, 7 Apr 2003, Vlada Djurovic wrote:
>
> ----- Original Message -----
> From: "Per Westermark" <pw...@ia...>
> To: "Vlada Djurovic" <dj...@im...>
> Cc: "Igor Pierscinski" <igo...@po...>;
> <dev...@li...>
> Sent: Monday, April 07, 2003 2:53 PM
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
> >No code statements outside of a function!
> >
> >/Per W
>
> That's it!!! Thanks! But I'm not sure I understand why is this a mistake?
> Isn't it just a case of assigning values to global variables? Can you
> explain? (Sorry if I'm bugging you, but...)
>
> On Mon, 7 Apr 2003, Vlada Djurovic wrote:
>
> >
> > ----- Original Message -----
> > From: "Igor Pierscinski" <igo...@po...>
> > To: <dev...@li...>
> > Sent: Monday, April 07, 2003 12:04 PM
> > Subject: RE: [Dev-C++] syntax error driving me crazy
> >
> >
> > Hi,
> >
> > Check the line(s) immediately preceding the line showing
> > syntax error. Check if ';' is not missing at the end of that line.
> > You can also try to rename imgs to something else and
> > see if the problem still exist. If it still does not work please
> > send us 10 - 15 lines preceding the first line with syntax error.
> >
> > Best Regards
> >
> > Igor Pierscinski
> >
> > I tried what you said, but still no luck. Here's the begining of the
file.
> > Thanks for your time.
> >
> > #define _WIN32_IE 0x0400
> > #include <windows.h>
> > #include <commctrl.h>
> > #include "resource.h"
> >
> >
> > /* Declare Windows procedure */
> > LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
> >
> > /* Make the class name into a global variable */
> > char szClassName[ ] = "WindowsApp";
> > HINSTANCE g_hInst;
> >
> > TBBUTTON image[2];
> >
> >
> void my_init_function() {
> > image[0].iBitmap=STD_FILENEW;
> > image[0].idCommand=ID_FILE_NEW;
> > image[0].fsState=TBSTATE_ENABLED;
> > image[0].fsStyle=BTNS_BUTTON;
> > image[0].dwData=0;
> > image[0].iString=0;
> >
> > image[1].iBitmap=STD_FILEOPEN;
> > image[1].idCommand=ID_FILE_OPEN;
> > image[1].fsState=TBSTATE_ENABLED;
> > image[1].fsStyle=BTNS_BUTTON;
> > image[1].dwData=0;
> > image[1].iString=0;
> }
> >
> >
> > int WINAPI
> > WinMain (HINSTANCE hThisInstance,
> > HINSTANCE hPrevInstance,
> > LPSTR lpszArgument,
> > int nFunsterStil)
> > file://rest of code
> >
> > -----Original Message-----
> > From: Vlada Djurovic [mailto:dj...@im...]
> > Sent: Friday, April 04, 2003 6:12 PM
> > To: Igor Pieroeciñski; dev...@li...
> > Subject: Re: [Dev-C++] syntax error driving me crazy
> >
> >
> >
> > ----- Original Message -----
> > From: "Igor Pierscinski" <igo...@po...>
> > To: <dev...@li...>
> > Sent: Friday, April 04, 2003 4:31 PM
> > Subject: RE: [Dev-C++] syntax error driving me crazy
> >
> >
> > Hi,
> >
> > Please tell us what was the first syntax error on the list.
> >
> > Regards
> >
> > Igor Pierscinski
> >
> >
> > The first error was:
> >
> > 21 C:\My Documents\Prog\interface\main.cpp
> > syntax error before `.'
> > in the line
> > imgs[0].iBitmap=STD_FILENEW;
> >
> > and then same error occurs in every line.
> >
> > -----Original Message-----
> > From: Vlada Djurovic [mailto:dj...@im...]
> > Sent: Friday, April 04, 2003 2:46 PM
> > To: Daniel Glenfield; dev...@li...
> > Subject: Re: [Dev-C++] syntax error driving me crazy
> >
> >
> >
> > ----- Original Message -----
> > From: "Daniel Glenfield" <sp...@ho...>
> > To: <dj...@im...>; <dev...@li...>
> > Sent: Friday, April 04, 2003 2:25 PM
> > Subject: Re: [Dev-C++] syntax error driving me crazy
> >
> >
> > >
> > >
> > >
> > > Have you defined imgs ? Does the compiler know what members are inside
> > imgs?
> > >
> >
> > I'm not sure what you mean. imgs is declared as array of TBBUTON
> structures,
> > and if I'm right, TBBUTTON is defined in commctrl.h, which is included
in
> my
> > source file. The compiler didn't complain about TBBUTTON being
undefined.
> I
> > also linked comctl32 library. The code is the same as I found on MSDN,
so
> I
> > think it should work.
> >
> >
> > > >From: "Vlada Djurovic" <dj...@im...>
> > > >To: "'DevC++ help'" <dev...@li...>
> > > >Subject: [Dev-C++] syntax error driving me crazy
> > > >Date: Fri, 4 Apr 2003 13:27:37 +0200
> > > >
> > > >Hi.
> > > >Can somebody please tell me what is wrong with this peace of code? I
> get
> > > >"syntax error before '.'" in every line and can't figure out what's
> > wrong.
> > > >
> > > >TBBUTTON imgs[2];
> > > >
> > > >imgs[0].iBitmap=STD_FILENEW;
> > > >imgs[0].idCommand=ID_FILE_NEW;
> > > >imgs[0].fsState=TBSTATE_ENABLED;
> > > >imgs[0].fsStyle=BTNS_BUTTON;
> > > >imgs[0].dwData=0;
> > > >imgs[0].iString=0;
> > > >
> > > >imgs[1].iBitmap=STD_FILEOPEN;
> > > >imgs[1].idCommand=ID_FILE_OPEN;
> > > >imgs[1].fsState=TBSTATE_ENABLED;
> > > >imgs[1].fsStyle=BTNS_BUTTON;
> > > >imgs[1].dwData=0;
> > > >imgs[1].iString=0;
> > > >
> > > >Thanks.
> > > >------------
> > > >Vlada
> > > >
> > > >
> > > >
> > > >-------------------------------------------------------
> > > >This SF.net email is sponsored by: ValueWeb:
> > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > > >No other company gives more support or power for your dedicated
server
> > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > > >_______________________________________________
> > > >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
> > >
> > >
> > > _________________________________________________________________
> > > On the move? Get Hotmail on your mobile phone
> http://www.msn.co.uk/mobile
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: Per W. <pw...@ia...> - 2003-04-08 05:52:53
|
1 - in my time zone your request came in at 5 in the morning. 2 - where did you read that this was a Linux group? 3 - we are not paid to answer - it's a question of free will. Check google with key words 'linux ncurses programming' and you should have a lot of programming references. /Per W On Tue, 8 Apr 2003, Smitha V. Babu wrote: > Why any one of not answering my question.. > > > > -----Original Message----- > > From: Smitha V. Babu > > Sent: Tuesday, April 08, 2003 9:18 AM > > To: Dev-C Mailing List > > Subject: GUI on Linux > > > > > > Does any one how to make text based GUI on linux.. > > I don't know how to start up with... > > Can someone suggest an answer.... > > Or some good tutorial for that > > > > Thanking in advance > > smitha > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************* > Disclaimer: The information in this e-mail and any attachments is > confidential / privileged. It is intended solely for the addressee or > addressees. If you are not the addressee indicated in this message, you may > not copy or deliver this message to anyone. In such case, you should destroy > this message and kindly notify the sender by reply email. Please advise > immediately if you or your employer does not consent to Internet email for > messages of this kind. > ********************************************************************* > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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: Ioannis V. <iv...@at...> - 2003-04-08 05:40:29
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Smitha V. Babu > Sent: Tuesday, April 08, 2003 7:54 AM > To: Dev-C Mailing List > Subject: [Dev-C++] RE: GUI on Linux > > > Why any one of not answering my question.. > > > > -----Original Message----- > > From: Smitha V. Babu > > Sent: Tuesday, April 08, 2003 9:18 AM > > To: Dev-C Mailing List > > Subject: GUI on Linux > > > > > > Does any one how to make text based GUI on linux.. > > I don't know how to start up with... > > Can someone suggest an answer.... > > Or some good tutorial for that > > > > Thanking in advance > > smitha Using a library obviously... Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Ioannis V. <iv...@at...> - 2003-04-08 05:36:49
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of David McKen > Sent: Monday, April 07, 2003 9:50 PM > To: Dev-C Mailing List > Subject: [Dev-C++] STL Vector > > > This may sound really stupid but here goes. > > I have a vector of objects (STL vector, just an arbritary > class). I have just pushed an object onto the end of this > vector. I want the index (the number I put in [] to access > the object) of the object I pushed onto the back. How would > I do so? (vector.size()?, or .end()) The straight way to do it is myarray[myarray.size()-1] Another way to do with [] is: myarray[myarray.end()-myarray.begin()-1] Or you can access it with iterator: E.g.: vector<int>::iterator p; //... p=myarray.end()-1; *p=7; Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |
|
From: Smitha V. B. <smi...@so...> - 2003-04-08 04:52:57
|
Why any one of not answering my question.. > -----Original Message----- > From: Smitha V. Babu > Sent: Tuesday, April 08, 2003 9:18 AM > To: Dev-C Mailing List > Subject: GUI on Linux > > > Does any one how to make text based GUI on linux.. > I don't know how to start up with... > Can someone suggest an answer.... > Or some good tutorial for that > > Thanking in advance > smitha > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: Smitha V. B. <smi...@so...> - 2003-04-08 03:55:19
|
Does any one how to make text based GUI on linux.. I don't know how to start up with... Can someone suggest an answer.... Or some good tutorial for that Thanking in advance smitha ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: <ri...@te...> - 2003-04-08 00:45:24
|
David McKen wrote: >This may sound really stupid but here goes. > >I have a vector of objects (STL vector, just an arbritary >class). I have just pushed an object onto the end of this >vector. I want the index (the number I put in [] to access >the object) of the object I pushed onto the back. How would >I do so? (vector.size()?, or .end()) > vector.end() returns the object contained in the last position of vector.= If you want the index, you should use vector.size()-1 --=20 Ricardo Amores Hern=E1ndez ricky (at) telecable (dot) es |
|
From: David M. <dem...@uw...> - 2003-04-07 22:36:48
|
New project, static library. Add the source files to the project, compile as lib<yourname>.a drop the new .a library into your /lib/ directory. In another project, go to linker options, add -l<yourname> and #include <yourname>.h At 04:52 PM 07/04/2003 +0100, Daniel Glenfield wrote: >How can I create a static library? > >Sorry if this is obvious, can't think today! > > > > > >_________________________________________________________________ >It's fast, it's easy and it's free. Get MSN Messenger today! >http://www.msn.co.uk/messenger > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >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: philip m. <mor...@ho...> - 2003-04-07 20:38:13
|
try: vector.size() - 1 hope this helps Philip Mortimer www: http://mysite.freeserve.com/coniferway/ ----- Original Message ----- From: "David McKen" <ci...@ya...> To: "Dev-C Mailing List" <dev...@li...> Sent: Monday, April 07, 2003 7:49 PM Subject: [Dev-C++] STL Vector > This may sound really stupid but here goes. > > I have a vector of objects (STL vector, just an arbritary > class). I have just pushed an object onto the end of this > vector. I want the index (the number I put in [] to access > the object) of the object I pushed onto the back. How would > I do so? (vector.size()?, or .end()) > > ===== > Signed > David Mcken > > Life Sucks > Live with it > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more > http://tax.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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 M. <ci...@ya...> - 2003-04-07 18:49:52
|
This may sound really stupid but here goes. I have a vector of objects (STL vector, just an arbritary class). I have just pushed an object onto the end of this vector. I want the index (the number I put in [] to access the object) of the object I pushed onto the back. How would I do so? (vector.size()?, or .end()) ===== Signed David Mcken Life Sucks Live with it __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |
|
From: Daniel G. <sp...@ho...> - 2003-04-07 15:52:26
|
How can I create a static library? Sorry if this is obvious, can't think today! _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: Zodiaq <zo...@ac...> - 2003-04-07 15:39:09
|
Hello Daniel and all Dev-C++ users,
Monday, April 7, 2003, 4:51:04 PM, Daniel wrote as follows:
DG> unsigned long Buffer = 420; // wrong
LOL! Totally wrong...
DG> unsigned long Buffer[420]; // Horay!
hmmm... you are allocating 420 items of size long... and long is AFAIR
32... nevermind, better is to do it like this:
this is howto for using GetIfTable, but GetIpNetTable is extremly
similar...
PMIB_IFTABLE interfaces = NULL;
DWORD response = GetIfTable( interfaces, &ulRozmiar, FALSE );
if( response == ERROR_INSUFFICIENT_BUFFER )
{
//cout << "Recommended size: " << ulRozmiar << endl;
if (!(interfaces = (PMIB_IFTABLE)malloc(ulRozmiar))) {
//cout << "Insufficient Memory" << endl;
MessageBox( Hwnd, "Damn, not enough memory!", "Buuuuu", MB_OK | MB_ICONINFORMATION );
PostQuitMessage( 1 );
return FALSE;
}
response = GetIfTable( interfaces, &ulRozmiar, FALSE );
}
else if( response == ERROR_NOT_SUPPORTED )
{
MessageBox( Hwnd, "Main program function not supported on this platform", "Błąd...", MB_OK | MB_ICONERROR );
PostQuitMessage( 1 );
return FALSE;
}
if( response != NO_ERROR )
{
MessageBox( Hwnd, "Some straaaange error", "Buuuuu", MB_OK | MB_ICONINFORMATION );
PostQuitMessage( 1 );
return FALSE;
}
GetIfTable( interfaces, &ulRozmiar, FALSE );
and now my program remebers that enough memory has been allocated, and
in next calls to obtain new send and received bytes I just use last
line... (ulRozmiar I made global, as interfaces)
DG> So it seems the buffer was overwritten, and the variable m_hWnd was
DG> overwritten!
DG> Does that seem right?
--
regards, Zodiaq
|
|
From: Per W. <pw...@ia...> - 2003-04-07 15:11:11
|
Problem found, case closed :-) /Per W On Mon, 7 Apr 2003, Daniel Glenfield wrote: > > Quick response! > > I just logged back on to say I found a solution - and it sounds like you > have found the reason. > > I put a watch on m_hWnd and after calling the function it said the > expression could not be evaluated. I had allocated the buffer wrongly! > > unsigned long Buffer = 420; // wrong > unsigned long Buffer[420]; // Horay! > > So it seems the buffer was overwritten, and the variable m_hWnd was > overwritten! > > Does that seem right? > > > >From: Per Westermark <pw...@ia...> > >To: Daniel Glenfield <sp...@ho...> > >CC: zo...@ac..., <Dev...@li...> > >Subject: Re: [Dev-C++] Network monitor - Question > >Date: Mon, 7 Apr 2003 17:38:05 +0200 (CEST) > > > >DWORD GetIpNetTable( > > PMIB_IPNETTABLE pIpNetTable, // buffer for mapping table > > PULONG pdwSize, // size of buffer > > BOOL bOrder // sort by IP address > >); > > > >Are you setting your dwSize to the size of the buffer before calling > >GetIpNetTable()? Else the call might overwrite the buffer, and thereby > >destroy other variables in your program. > > > >/Per W > > > >On Mon, 7 Apr 2003, Daniel Glenfield wrote: > > > > > > > > > > > Hi, this was perfect for me and I didn't even ask the question! However > > > there is something I'm having trouble with relating to this set of > > > functions. > > > > > > I'm using VC++ (boo! lol) and using MFC I've built a dialog-based app > >that > > > gets info with GetIfTable() and some others. One of these functions is > > > GetIpNetTable() which gets the ARP table. > > > > > > The problem is this - after much debugging I find that when I call > > > GetIpNetTable() the window handle becomes 0 !!!! So while everywhere > >else I > > > can call SetDlgItemText() to put the buffer contents into an edit box, I > >now > > > get Assert errors (even if I try to exit the function!) because hwnd is > >0! > > > > > > Has anyone heard of this? I've not found it on google. > > > > > > Daniel > > > > > > > > > > > > > > > >From: Zodiaq <zo...@ac...> > > > >Reply-To: Zodiaq <zo...@ac...> > > > >To: Dev...@li... > > > >Subject: Re: [Dev-C++] Network monitor > > > >Date: Sun, 6 Apr 2003 18:13:13 +0200 > > > > > > > >Hello Lambdabit and all Dev-C++ users, > > > > > > > >Sunday, April 6, 2003, 4:33:46 PM, Lambdabit wrote as follows: > > > > > > > >LJGS> how can I get the speed of my net interface's connection and the > > > >packages sent and received? > > > > > > > >By calling Win32 API function named GetIfTable you get CURRENT bytes > > > >sent and received for every interface (including loopback)... if you > > > >call this function every 1sec (using timer) you can easly obtain speed > > > >in bytes... but remember that this gives you total network load - > > > >every byte of packets counts... > > > >for more info and examples check msdn.microsoft.com > > > > > > > >LJGS> Thanks! > > > > > > > >-- > > > >regards, Zodiaq > > > > > > > > > > > > > > > >------------------------------------------------------- > > > >This SF.net email is sponsored by: ValueWeb: > > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > > >No other company gives more support or power for your dedicated server > > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > > >_______________________________________________ > > > >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 Hotmail on your mobile phone http://www.msn.co.uk/mobile > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: ValueWeb: > > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > > No other company gives more support or power for your dedicated server > > > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > > _______________________________________________ > > > 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: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 Hotmail on your mobile phone http://www.msn.co.uk/mobile > > |
|
From: Daniel G. <sp...@ho...> - 2003-04-07 14:51:13
|
Quick response! I just logged back on to say I found a solution - and it sounds like you have found the reason. I put a watch on m_hWnd and after calling the function it said the expression could not be evaluated. I had allocated the buffer wrongly! unsigned long Buffer = 420; // wrong unsigned long Buffer[420]; // Horay! So it seems the buffer was overwritten, and the variable m_hWnd was overwritten! Does that seem right? >From: Per Westermark <pw...@ia...> >To: Daniel Glenfield <sp...@ho...> >CC: zo...@ac..., <Dev...@li...> >Subject: Re: [Dev-C++] Network monitor - Question >Date: Mon, 7 Apr 2003 17:38:05 +0200 (CEST) > >DWORD GetIpNetTable( > PMIB_IPNETTABLE pIpNetTable, // buffer for mapping table > PULONG pdwSize, // size of buffer > BOOL bOrder // sort by IP address >); > >Are you setting your dwSize to the size of the buffer before calling >GetIpNetTable()? Else the call might overwrite the buffer, and thereby >destroy other variables in your program. > >/Per W > >On Mon, 7 Apr 2003, Daniel Glenfield wrote: > > > > > > > Hi, this was perfect for me and I didn't even ask the question! However > > there is something I'm having trouble with relating to this set of > > functions. > > > > I'm using VC++ (boo! lol) and using MFC I've built a dialog-based app >that > > gets info with GetIfTable() and some others. One of these functions is > > GetIpNetTable() which gets the ARP table. > > > > The problem is this - after much debugging I find that when I call > > GetIpNetTable() the window handle becomes 0 !!!! So while everywhere >else I > > can call SetDlgItemText() to put the buffer contents into an edit box, I >now > > get Assert errors (even if I try to exit the function!) because hwnd is >0! > > > > Has anyone heard of this? I've not found it on google. > > > > Daniel > > > > > > > > > > >From: Zodiaq <zo...@ac...> > > >Reply-To: Zodiaq <zo...@ac...> > > >To: Dev...@li... > > >Subject: Re: [Dev-C++] Network monitor > > >Date: Sun, 6 Apr 2003 18:13:13 +0200 > > > > > >Hello Lambdabit and all Dev-C++ users, > > > > > >Sunday, April 6, 2003, 4:33:46 PM, Lambdabit wrote as follows: > > > > > >LJGS> how can I get the speed of my net interface's connection and the > > >packages sent and received? > > > > > >By calling Win32 API function named GetIfTable you get CURRENT bytes > > >sent and received for every interface (including loopback)... if you > > >call this function every 1sec (using timer) you can easly obtain speed > > >in bytes... but remember that this gives you total network load - > > >every byte of packets counts... > > >for more info and examples check msdn.microsoft.com > > > > > >LJGS> Thanks! > > > > > >-- > > >regards, Zodiaq > > > > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: ValueWeb: > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > >No other company gives more support or power for your dedicated server > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > >_______________________________________________ > > >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 Hotmail on your mobile phone http://www.msn.co.uk/mobile > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: ValueWeb: > > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > > No other company gives more support or power for your dedicated server > > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > > _______________________________________________ > > 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: ValueWeb: >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >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 Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: David M. <ci...@ya...> - 2003-04-07 14:51:04
|
Yeah there is a pthreads library for windows. It is a wrapper around the Win32 API if I read the docs correctly but who cares. Heres a link: http://sources.redhat.com/pthreads-win32/ It's quite simple to use. If you already know how to program POSIX threads for UNIX then the only difference (or maybe it is the same) is add -lpthread to your linker command line. --- Ranjith P Antony <ran...@co...> wrote: > Hi all, > > I am using Dev C++ in a Windows environment. Is there any > way for me to use the pthread.h to > write a fully posix compatible thread application. Any > pointers is appreciated. > > -ranjith > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of > bandwidth! > No other company gives more support or power for your > dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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 ===== Signed David Mcken Life Sucks Live with it __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |
|
From: <li...@as...> - 2003-04-07 14:50:22
|
Thanks for the reply 8-) Concerning the remote debugging, a VMWare virtual machine is networked to its (say) Windows 'host' just like a separate (networked) Linux box would be, so it imposes no special complications/requirements. The Linux box (or VM) would have to be networked and run some sort of daemon, controlled over the network by Dev-C++ running on the Windows box. Since this type of remote debugging is standard in the GDB world and supported in GDB itself (eg. using it on a PC to remote-debug an embedded system, which has a simple stub to allow GDB to control it) I was assuming that this would be a very straightforward to do. Sorry for posting both here and on the forum - I had no idea which one was best to reach the developers. Also want to say that Dev-C++ is a really cool piece of work - which I'd found it earlier!! ----------------------- >Message: 9 >From: Colin Laplace <ha...@bl...> >Reply-To: ha...@bl... >To: dev...@li... >Subject: Re: [Dev-C++] Linux support without a Linux port >Date: Sun, 6 Apr 2003 23:36:00 +0200 >Hello, > >Cross compiling to Linux from Dev-C++ should be easy. Just install a Win32 >cross compiler that generates x86-elf code on your windows, and configure the >path and names in Compiler Options of Dev-C++ to match the one of your cross >compiler. For the part of running GDB from a linux launched in a VMWare, I >don't use VMWare and don't really know if that would possible (it would need >some kind of protocol between the host and slave system - available to >running programs - which would suprise me if it exists). > >Greetings, >Colin Laplace |
|
From: Ranjith P A. <ran...@co...> - 2003-04-07 14:41:05
|
Hi all, I am using Dev C++ in a Windows environment. Is there any way for me to use the pthread.h to write a fully posix compatible thread application. Any pointers is appreciated. -ranjith |
|
From: Per W. <pw...@ia...> - 2003-04-07 14:39:25
|
DWORD GetIpNetTable( PMIB_IPNETTABLE pIpNetTable, // buffer for mapping table PULONG pdwSize, // size of buffer BOOL bOrder // sort by IP address ); Are you setting your dwSize to the size of the buffer before calling GetIpNetTable()? Else the call might overwrite the buffer, and thereby destroy other variables in your program. /Per W On Mon, 7 Apr 2003, Daniel Glenfield wrote: > > > Hi, this was perfect for me and I didn't even ask the question! However > there is something I'm having trouble with relating to this set of > functions. > > I'm using VC++ (boo! lol) and using MFC I've built a dialog-based app that > gets info with GetIfTable() and some others. One of these functions is > GetIpNetTable() which gets the ARP table. > > The problem is this - after much debugging I find that when I call > GetIpNetTable() the window handle becomes 0 !!!! So while everywhere else I > can call SetDlgItemText() to put the buffer contents into an edit box, I now > get Assert errors (even if I try to exit the function!) because hwnd is 0! > > Has anyone heard of this? I've not found it on google. > > Daniel > > > > > >From: Zodiaq <zo...@ac...> > >Reply-To: Zodiaq <zo...@ac...> > >To: Dev...@li... > >Subject: Re: [Dev-C++] Network monitor > >Date: Sun, 6 Apr 2003 18:13:13 +0200 > > > >Hello Lambdabit and all Dev-C++ users, > > > >Sunday, April 6, 2003, 4:33:46 PM, Lambdabit wrote as follows: > > > >LJGS> how can I get the speed of my net interface's connection and the > >packages sent and received? > > > >By calling Win32 API function named GetIfTable you get CURRENT bytes > >sent and received for every interface (including loopback)... if you > >call this function every 1sec (using timer) you can easly obtain speed > >in bytes... but remember that this gives you total network load - > >every byte of packets counts... > >for more info and examples check msdn.microsoft.com > > > >LJGS> Thanks! > > > >-- > >regards, Zodiaq > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ValueWeb: > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > >No other company gives more support or power for your dedicated server > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > >_______________________________________________ > >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 Hotmail on your mobile phone http://www.msn.co.uk/mobile > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > 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: Per W. <pw...@ia...> - 2003-04-07 14:36:11
|
You might write:
stuct x {
int a,b,c;
};
x myvar[2] =3D {{1,2,3},{3,4,5}};
However, you may not write:
x myvar;
myvar[0].x =3D 1;
myvar[0].y =3D 2;
=2E..
When assigning values to a global variable, the assign must be of the form
my_type my_global_variable =3D xx;
or
my_type my_global_variable =3D { xx };
If you don't give an equal sign directly, the global variable will be set
to zero, and you'll have to wait until you are inside main() or a function
called by main() before you may change the value of the global variable.
/Per W
On Mon, 7 Apr 2003, Vlada Djurovic wrote:
>
> ----- Original Message -----
> From: "Per Westermark" <pw...@ia...>
> To: "Vlada Djurovic" <dj...@im...>
> Cc: "Igor Pierscinski" <igo...@po...>;
> <dev...@li...>
> Sent: Monday, April 07, 2003 2:53 PM
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
> >No code statements outside of a function!
> >
> >/Per W
>
> That's it!!! Thanks! But I'm not sure I understand why is this a mistake?
> Isn't it just a case of assigning values to global variables? Can you
> explain? (Sorry if I'm bugging you, but...)
>
> On Mon, 7 Apr 2003, Vlada Djurovic wrote:
>
> >
> > ----- Original Message -----
> > From: "Igor Pierscinski" <igo...@po...>
> > To: <dev...@li...>
> > Sent: Monday, April 07, 2003 12:04 PM
> > Subject: RE: [Dev-C++] syntax error driving me crazy
> >
> >
> > Hi,
> >
> > Check the line(s) immediately preceding the line showing
> > syntax error. Check if ';' is not missing at the end of that line.
> > You can also try to rename imgs to something else and
> > see if the problem still exist. If it still does not work please
> > send us 10 - 15 lines preceding the first line with syntax error.
> >
> > Best Regards
> >
> > Igor Pierscinski
> >
> > I tried what you said, but still no luck. Here's the begining of the fi=
le.
> > Thanks for your time.
> >
> > #define _WIN32_IE 0x0400
> > #include <windows.h>
> > #include <commctrl.h>
> > #include "resource.h"
> >
> >
> > /* Declare Windows procedure */
> > LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
> >
> > /* Make the class name into a global variable */
> > char szClassName[ ] =3D "WindowsApp";
> > HINSTANCE g_hInst;
> >
> > TBBUTTON image[2];
> >
> >
> void my_init_function() {
> > image[0].iBitmap=3DSTD_FILENEW;
> > image[0].idCommand=3DID_FILE_NEW;
> > image[0].fsState=3DTBSTATE_ENABLED;
> > image[0].fsStyle=3DBTNS_BUTTON;
> > image[0].dwData=3D0;
> > image[0].iString=3D0;
> >
> > image[1].iBitmap=3DSTD_FILEOPEN;
> > image[1].idCommand=3DID_FILE_OPEN;
> > image[1].fsState=3DTBSTATE_ENABLED;
> > image[1].fsStyle=3DBTNS_BUTTON;
> > image[1].dwData=3D0;
> > image[1].iString=3D0;
> }
> >
> >
> > int WINAPI
> > WinMain (HINSTANCE hThisInstance,
> > HINSTANCE hPrevInstance,
> > LPSTR lpszArgument,
> > int nFunsterStil)
> > file://rest of code
> >
> > -----Original Message-----
> > From: Vlada Djurovic [mailto:dj...@im...]
> > Sent: Friday, April 04, 2003 6:12 PM
> > To: Igor Pieroeci=F1ski; dev...@li...
> > Subject: Re: [Dev-C++] syntax error driving me crazy
> >
> >
> >
> > ----- Original Message -----
> > From: "Igor Pierscinski" <igo...@po...>
> > To: <dev...@li...>
> > Sent: Friday, April 04, 2003 4:31 PM
> > Subject: RE: [Dev-C++] syntax error driving me crazy
> >
> >
> > Hi,
> >
> > Please tell us what was the first syntax error on the list.
> >
> > Regards
> >
> > Igor Pierscinski
> >
> >
> > The first error was:
> >
> > 21 C:\My Documents\Prog\interface\main.cpp
> > syntax error before `.'
> > in the line
> > imgs[0].iBitmap=3DSTD_FILENEW;
> >
> > and then same error occurs in every line.
> >
> > -----Original Message-----
> > From: Vlada Djurovic [mailto:dj...@im...]
> > Sent: Friday, April 04, 2003 2:46 PM
> > To: Daniel Glenfield; dev...@li...
> > Subject: Re: [Dev-C++] syntax error driving me crazy
> >
> >
> >
> > ----- Original Message -----
> > From: "Daniel Glenfield" <sp...@ho...>
> > To: <dj...@im...>; <dev...@li...>
> > Sent: Friday, April 04, 2003 2:25 PM
> > Subject: Re: [Dev-C++] syntax error driving me crazy
> >
> >
> > >
> > >
> > >
> > > Have you defined imgs ? Does the compiler know what members are insid=
e
> > imgs?
> > >
> >
> > I'm not sure what you mean. imgs is declared as array of TBBUTON
> structures,
> > and if I'm right, TBBUTTON is defined in commctrl.h, which is included =
in
> my
> > source file. The compiler didn't complain about TBBUTTON being undefine=
d.
> I
> > also linked comctl32 library. The code is the same as I found on MSDN,=
so
> I
> > think it should work.
> >
> >
> > > >From: "Vlada Djurovic" <dj...@im...>
> > > >To: "'DevC++ help'" <dev...@li...>
> > > >Subject: [Dev-C++] syntax error driving me crazy
> > > >Date: Fri, 4 Apr 2003 13:27:37 +0200
> > > >
> > > >Hi.
> > > >Can somebody please tell me what is wrong with this peace of code? I
> get
> > > >"syntax error before '.'" in every line and can't figure out what's
> > wrong.
> > > >
> > > >TBBUTTON imgs[2];
> > > >
> > > >imgs[0].iBitmap=3DSTD_FILENEW;
> > > >imgs[0].idCommand=3DID_FILE_NEW;
> > > >imgs[0].fsState=3DTBSTATE_ENABLED;
> > > >imgs[0].fsStyle=3DBTNS_BUTTON;
> > > >imgs[0].dwData=3D0;
> > > >imgs[0].iString=3D0;
> > > >
> > > >imgs[1].iBitmap=3DSTD_FILEOPEN;
> > > >imgs[1].idCommand=3DID_FILE_OPEN;
> > > >imgs[1].fsState=3DTBSTATE_ENABLED;
> > > >imgs[1].fsStyle=3DBTNS_BUTTON;
> > > >imgs[1].dwData=3D0;
> > > >imgs[1].iString=3D0;
> > > >
> > > >Thanks.
> > > >------------
> > > >Vlada
> > > >
> > > >
> > > >
> > > >-------------------------------------------------------
> > > >This SF.net email is sponsored by: ValueWeb:
> > > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > > >No other company gives more support or power for your dedicated serv=
er
> > > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > > >_______________________________________________
> > > >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
> > >
> > >
> > > _________________________________________________________________
> > > On the move? Get Hotmail on your mobile phone
> http://www.msn.co.uk/mobile
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> > Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > No other company gives more support or power for your dedicated server
> > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > _______________________________________________
> > 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: Daniel G. <sp...@ho...> - 2003-04-07 14:21:39
|
Hi, this was perfect for me and I didn't even ask the question! However there is something I'm having trouble with relating to this set of functions. I'm using VC++ (boo! lol) and using MFC I've built a dialog-based app that gets info with GetIfTable() and some others. One of these functions is GetIpNetTable() which gets the ARP table. The problem is this - after much debugging I find that when I call GetIpNetTable() the window handle becomes 0 !!!! So while everywhere else I can call SetDlgItemText() to put the buffer contents into an edit box, I now get Assert errors (even if I try to exit the function!) because hwnd is 0! Has anyone heard of this? I've not found it on google. Daniel >From: Zodiaq <zo...@ac...> >Reply-To: Zodiaq <zo...@ac...> >To: Dev...@li... >Subject: Re: [Dev-C++] Network monitor >Date: Sun, 6 Apr 2003 18:13:13 +0200 > >Hello Lambdabit and all Dev-C++ users, > >Sunday, April 6, 2003, 4:33:46 PM, Lambdabit wrote as follows: > >LJGS> how can I get the speed of my net interface's connection and the >packages sent and received? > >By calling Win32 API function named GetIfTable you get CURRENT bytes >sent and received for every interface (including loopback)... if you >call this function every 1sec (using timer) you can easly obtain speed >in bytes... but remember that this gives you total network load - >every byte of packets counts... >for more info and examples check msdn.microsoft.com > >LJGS> Thanks! > >-- >regards, Zodiaq > > > >------------------------------------------------------- >This SF.net email is sponsored by: ValueWeb: >Dedicated Hosting for just $79/mo with 500 GB of bandwidth! >No other company gives more support or power for your dedicated server >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ >_______________________________________________ >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 Hotmail on your mobile phone http://www.msn.co.uk/mobile |
|
From: Vlada D. <dj...@im...> - 2003-04-07 12:37:42
|
----- Original Message -----
From: "Per Westermark" <pw...@ia...>
To: "Vlada Djurovic" <dj...@im...>
Cc: "Igor Pierscinski" <igo...@po...>;
<dev...@li...>
Sent: Monday, April 07, 2003 2:53 PM
Subject: Re: [Dev-C++] syntax error driving me crazy
>No code statements outside of a function!
>
>/Per W
That's it!!! Thanks! But I'm not sure I understand why is this a mistake?
Isn't it just a case of assigning values to global variables? Can you
explain? (Sorry if I'm bugging you, but...)
On Mon, 7 Apr 2003, Vlada Djurovic wrote:
>
> ----- Original Message -----
> From: "Igor Pierscinski" <igo...@po...>
> To: <dev...@li...>
> Sent: Monday, April 07, 2003 12:04 PM
> Subject: RE: [Dev-C++] syntax error driving me crazy
>
>
> Hi,
>
> Check the line(s) immediately preceding the line showing
> syntax error. Check if ';' is not missing at the end of that line.
> You can also try to rename imgs to something else and
> see if the problem still exist. If it still does not work please
> send us 10 - 15 lines preceding the first line with syntax error.
>
> Best Regards
>
> Igor Pierscinski
>
> I tried what you said, but still no luck. Here's the begining of the file.
> Thanks for your time.
>
> #define _WIN32_IE 0x0400
> #include <windows.h>
> #include <commctrl.h>
> #include "resource.h"
>
>
> /* Declare Windows procedure */
> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
>
> /* Make the class name into a global variable */
> char szClassName[ ] = "WindowsApp";
> HINSTANCE g_hInst;
>
> TBBUTTON image[2];
>
>
void my_init_function() {
> image[0].iBitmap=STD_FILENEW;
> image[0].idCommand=ID_FILE_NEW;
> image[0].fsState=TBSTATE_ENABLED;
> image[0].fsStyle=BTNS_BUTTON;
> image[0].dwData=0;
> image[0].iString=0;
>
> image[1].iBitmap=STD_FILEOPEN;
> image[1].idCommand=ID_FILE_OPEN;
> image[1].fsState=TBSTATE_ENABLED;
> image[1].fsStyle=BTNS_BUTTON;
> image[1].dwData=0;
> image[1].iString=0;
}
>
>
> int WINAPI
> WinMain (HINSTANCE hThisInstance,
> HINSTANCE hPrevInstance,
> LPSTR lpszArgument,
> int nFunsterStil)
> file://rest of code
>
> -----Original Message-----
> From: Vlada Djurovic [mailto:dj...@im...]
> Sent: Friday, April 04, 2003 6:12 PM
> To: Igor Pieroeciñski; dev...@li...
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
>
> ----- Original Message -----
> From: "Igor Pierscinski" <igo...@po...>
> To: <dev...@li...>
> Sent: Friday, April 04, 2003 4:31 PM
> Subject: RE: [Dev-C++] syntax error driving me crazy
>
>
> Hi,
>
> Please tell us what was the first syntax error on the list.
>
> Regards
>
> Igor Pierscinski
>
>
> The first error was:
>
> 21 C:\My Documents\Prog\interface\main.cpp
> syntax error before `.'
> in the line
> imgs[0].iBitmap=STD_FILENEW;
>
> and then same error occurs in every line.
>
> -----Original Message-----
> From: Vlada Djurovic [mailto:dj...@im...]
> Sent: Friday, April 04, 2003 2:46 PM
> To: Daniel Glenfield; dev...@li...
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
>
> ----- Original Message -----
> From: "Daniel Glenfield" <sp...@ho...>
> To: <dj...@im...>; <dev...@li...>
> Sent: Friday, April 04, 2003 2:25 PM
> Subject: Re: [Dev-C++] syntax error driving me crazy
>
>
> >
> >
> >
> > Have you defined imgs ? Does the compiler know what members are inside
> imgs?
> >
>
> I'm not sure what you mean. imgs is declared as array of TBBUTON
structures,
> and if I'm right, TBBUTTON is defined in commctrl.h, which is included in
my
> source file. The compiler didn't complain about TBBUTTON being undefined.
I
> also linked comctl32 library. The code is the same as I found on MSDN, so
I
> think it should work.
>
>
> > >From: "Vlada Djurovic" <dj...@im...>
> > >To: "'DevC++ help'" <dev...@li...>
> > >Subject: [Dev-C++] syntax error driving me crazy
> > >Date: Fri, 4 Apr 2003 13:27:37 +0200
> > >
> > >Hi.
> > >Can somebody please tell me what is wrong with this peace of code? I
get
> > >"syntax error before '.'" in every line and can't figure out what's
> wrong.
> > >
> > >TBBUTTON imgs[2];
> > >
> > >imgs[0].iBitmap=STD_FILENEW;
> > >imgs[0].idCommand=ID_FILE_NEW;
> > >imgs[0].fsState=TBSTATE_ENABLED;
> > >imgs[0].fsStyle=BTNS_BUTTON;
> > >imgs[0].dwData=0;
> > >imgs[0].iString=0;
> > >
> > >imgs[1].iBitmap=STD_FILEOPEN;
> > >imgs[1].idCommand=ID_FILE_OPEN;
> > >imgs[1].fsState=TBSTATE_ENABLED;
> > >imgs[1].fsStyle=BTNS_BUTTON;
> > >imgs[1].dwData=0;
> > >imgs[1].iString=0;
> > >
> > >Thanks.
> > >------------
> > >Vlada
> > >
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.net email is sponsored by: ValueWeb:
> > >Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> > >No other company gives more support or power for your dedicated server
> > >http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> > >_______________________________________________
> > >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
> >
> >
> > _________________________________________________________________
> > On the move? Get Hotmail on your mobile phone
http://www.msn.co.uk/mobile
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> 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
>
|