dev-cpp-users Mailing List for Dev-C++ (Page 452)
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: Daniel G. <sp...@ho...> - 2003-01-21 14:42:10
|
Hi all, I'm sat here with the urge to expand my knowledge of programming in windows programming(on top of a basic MFC app that tested a printer's capabilities), but I can't think of a way to get started. Does anyone know of a good simple project to aim for, like "I'm going to build a project to record and display user input using MFC" ? Sorry if that sounds garbled lol ;) What do Windows-wannabe programmers get set for homework in colleges? _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus |
|
From: Daniel G. <sp...@ho...> - 2003-01-21 11:39:36
|
try a restart. Failing that, try reinstalling DEV >From: "adel maximous" <ade...@ho...> >To: dev...@li... >Subject: [Dev-C++] Need help with c++ and dev >Date: Tue, 21 Jan 2003 10:19:38 +0000 > > > >hello ; >my name is amal and i just downloaded the program to my computer >when i just started working with it it give me error msg that the dev c++ >does not have enough memory space free to run it. >i have no idea how to fix that and i really appreciate any help so if u >ever experienced this problem or know how to solve it please email meon: >ade...@ho... OR >ama...@ao... >thank u >amal > > > >_________________________________________________________________ >STOP MORE SPAM with the new MSN 8 and get 2 months FREE* >http://join.msn.com/?page=features/junkmail > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >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 _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus |
|
From: <cg...@wo...> - 2003-01-21 11:39:24
|
When yo need one:
HWND hEdit;
...
hEdit =3D CreateWindowEx(dwExStyles,
"edit",
"",
WS_VISIBLE | other dwStyles,
upperleft.x coordinate in=20
relation to the window, =20
upperleft.y,
width, =20
height,
hwnd (of the parent),
ID of the control,
hInstance of the program,
0 (LPVOID to window creation=20
data));
If you haven'tWS_VISIBLE, then you can use ShowWindow(hEdit, SW_SHOW);=20
when you want it to be visible. and ShowWindow(hEdit, SW_HIDE); for hide=20
it. (You can retrieve the edit control handle with GetDlgItem(hwnd=20
(handle of parent window), ID of the edit);
Johan H=F6rnell wrote:
> Hi Everbody.
> I'm wonder=EDng one thing.
> Hown shall I do to get an TEXTEDIT control in my program,
> I have seen many turtorials out ther, but none of these have worked.=20
> They all compile well and works well, but when I use the code in my=20
> program, you can not see any control, might that because of my=20
> backround picture? I have tried to remove it but that doesn't help!
> =20
> What shall I do?
> =20
> Please Help me!
> =20
> Regards Johan H=F6rnell
|
|
From: adel m. <ade...@ho...> - 2003-01-21 10:21:14
|
hello ; my name is amal and i just downloaded the program to my computer when i just started working with it it give me error msg that the dev c++ does not have enough memory space free to run it. i have no idea how to fix that and i really appreciate any help so if u ever experienced this problem or know how to solve it please email meon: ade...@ho... OR ama...@ao... thank u amal _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: Daniel G. <sp...@ho...> - 2003-01-21 08:01:00
|
That is true, though there is a clue as to how to subscribe HIDDEN IN EACH AND EVERY EMAIL... >From: Zodiaq <zo...@ac...> >Reply-To: Zodiaq <zo...@ac...> >To: Dev...@li... >Subject: Re: [Dev-C++] Unsubscribe Me Please >Date: Mon, 20 Jan 2003 23:03:25 +0100 > >Hello Kenneth and all Dev-C++ users, > >Monday, January 20, 2003, 9:24:37 PM, Kenneth wrote as follows: > >KT> Sorry if this is the wrong place to request this, but I need to be >taken off >KT> this mailing list. Thanks! > >No way dude! You're subscribed here for all your life!!! You belong to >us! HAHAHA! > >-- >regards, Zodiaq > > > >------------------------------------------------------- >This SF.NET email is sponsored by: FREE SSL Guide from Thawte >are you planning your Web Server Security? Click here to get a FREE >Thawte SSL guide and find the answers to all your SSL security issues. >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en >_______________________________________________ >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 _________________________________________________________________ MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail |
|
From: Jorge A. <jor...@ep...> - 2003-01-21 01:46:59
|
I have builted the first example of this wxwindows tutorial: http://www.codelearn.com/cpp/icpp_wx1.html , but when it runs i get a segmentation fault. The only adition that i made was a header file: #ifndef __GNUWIN32__ #define __GNUWIN32__ #endif #ifndef __WXMSW__ #define __WXMSW__ #endif Somebody knows of another package of wxwindows?, sugestions?. |
|
From: Zodiaq <zo...@ac...> - 2003-01-20 22:06:47
|
Hello Kenneth and all Dev-C++ users, Monday, January 20, 2003, 9:24:37 PM, Kenneth wrote as follows: KT> Sorry if this is the wrong place to request this, but I need to be taken off KT> this mailing list. Thanks! No way dude! You're subscribed here for all your life!!! You belong to us! HAHAHA! -- regards, Zodiaq |
|
From: Kenneth T <got...@ho...> - 2003-01-20 20:30:17
|
Sorry if this is the wrong place to request this, but I need to be taken off this mailing list. Thanks! _________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
|
From: <hor...@te...> - 2003-01-20 19:17:19
|
Hi Everbody. I'm wonder=EDng one thing. Hown shall I do to get an TEXTEDIT control in my program, I have seen many turtorials out ther, but none of these have worked. = They all compile well and works well, but when I use the code in my = program, you can not see any control, might that because of my backround = picture? I have tried to remove it but that doesn't help! What shall I do? Please Help me! Regards Johan H=F6rnell |
|
From: Abhijit S. <mu...@gm...> - 2003-01-20 06:49:10
|
Greets, Duncan. > I've managed to type in a .def file. However, I cannot get a DLL to > compile fully within Dev-C++ (I am using the latest Beta w/ 2.95). I > need to drop to the command line and enter the commands to compile > there. Try using the command-line option `--def <file>' (look under `Project Options' > `Linker parameters'). ___________________________________________________________ Abhijit Shylanath mu...@gm... http://mudeth.tripod.com/ |
|
From: Ioannis V. <no...@ho...> - 2003-01-20 03:08:06
|
-------Original Message-------=0D =0D From: gfu=0D Date: Monday, 20 January 2003 3:13:43 AM=0D To: dev...@li...=0D Subject: [Dev-C++] how to unsubscribe from the list?=0D =0D how to unsubscribe from the list? in http://www.bloodshed net/dev/mailinglist.html, the address:http://www.noicys.cjb.net/devcpp/ub htm is no link!=0D =0D =0D =3D=3D> ? That link is valid.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: gfu <gf...@pu...> - 2003-01-20 01:12:21
|
how to unsubscribe from the list? in http://www.bloodshed.net/dev/mailinglist.html, the address:http://www.noicys.cjb.net/devcpp/ub.htm is no link! |
|
From: Per W. <pw...@ia...> - 2003-01-19 22:42:07
|
In your project window, right-click on the topmost line - the one representing your target. Select 'Add folder'. /Per W On Sun, 19 Jan 2003, Anindita Sarangi wrote: > Hi: > I am new user of Dev C++. I am using the latest beta version Dev C++ 5.0. > >From the download page screen shot it seems one can create subfolders in a project. I want to know how can I add directories to the project like in JBuilder IDE for Java. Any help in this regard is appreciated. > Thanks > Pitambar > > |
|
From: Anindita S. <asa...@ya...> - 2003-01-19 22:35:55
|
Hi: I am new user of Dev C++. I am using the latest beta version Dev C++ 5.0. From the download page screen shot it seems one can create subfolders in a project. I want to know how can I add directories to the project like in JBuilder IDE for Java. Any help in this regard is appreciated. Thanks Pitambar |
|
From: Per W. <pw...@ia...> - 2003-01-19 20:47:18
|
Hello!
Don't use atof() for converting from text string to a double.
Use strtod() instead, since it will inform you how many characters it
consumed.
char mystring[] =3D "1.2E-3*3";
char *p =3D mystring;
char *end;
num =3D strtod(p,&end);
Now end will point to the '*' character, since '1.2E-3' is consumed and
returned as the double 0.0012.
Note also when parsing infix expressions, that you normally have to take
care of unary signs, i.e. 1+-2 which should be evaluated as 1 + (-2).
Easiest is to perform the parsing with a recursive-descent parser, i.e.
something like:
eval_expr()
return eval_additive()
eval_additive()
while (*p =3D=3D '+' || *p =3D=3D '-')
if (*p =3D=3D '+') {
p++;
n +=3D eval_multiplicative()
} else {
p++;
n -=3D eval_multiplicative()
}
return n;
eval_multiplicative()
n =3D eval_factor()
while (*p =3D=3D '*' || *p =3D=3D '/')
if (*p =3D=3D '*') {
p++;
n *=3D eval_factor();
} else {
p++;
n /=3D eval_factor();
}
return n;
eval_factor()
if (*p =3D=3D =B4+') {p++; return eval_factor(); }
if (*p =3D=3D '-') {p++; return -eval_factor(); }
if (*p =3D=3D '(') {p++; n =3D eval_expr(); if (p !=3D ')') error(); retu=
rn n; }
return number();
Good luck!
/Per W
On Sun, 19 Jan 2003, j b wrote:
>
>
>
> ---------------------------------
> Gesendet von http://mail.yahoo.de.
> Bis zu 100 MB Speicher bei http://premiummail.yahoo.de.
|
|
From: Duncan M. <mcq...@um...> - 2003-01-19 19:10:12
|
Thanks. However I see tutorials on creating a DLL there, though none on specifically creating one within Dev-C++. I have been able to create one, but need to drop to a command prompt to run the final steps (using Dev-C++ to only create the object file). Dev-C++ errors out with porblems related to the path. Has anyone written a tutorial, from start to finish, of using Dev-C++ and the .dll template to build a simple DLL? I can build a DLL, but not fully within Dev-C++. Thanks, Duncan On Sunday, January 19, 2003, at 12:33 PM, Daniel Glenfield wrote: > > try www.codeproject.com > > >> From: Duncan McQueen <mcq...@um...> >> To: dev...@li... >> CC: Duncan McQueen <mcq...@um...> >> Subject: [Dev-C++] Creating a .DLL >> Date: Sat, 18 Jan 2003 15:13:04 -0600 >> >> I've searched thru the mailing list, and online. Downloaded the >> dlltools (where none of the examples work), and still can't figure >> out how to build a simple DLL. >> >> Has anyone created a tutorial to use Dev-C++ and the dll template to >> create a DLL? >> >> I keep on getting errors about creating a .def file. Every tutorial >> I see says to create the .def file from the .dll, but if the .dll >> can't compile, then how do you create the .def file? >> >> Thanks, >> Duncan McQueen >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts >> will >> allow you to extend the highest allowed 128 bit encryption to all >> your clients even if they use browsers that are limited to 40 bit >> encryption. Get a guide >> here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en >> _______________________________________________ >> 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 > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > _______________________________________________ > 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-01-19 18:38:23
|
You could use a pointer, which defaults to the base element of an array when pointed to it, and then use ++ to go to the next element. This will of course not work with multi-byte characters or unicode characters. >From: j b <com...@ya...> >To: dev...@li... >Subject: [Dev-C++] atof... >Date: Sun, 19 Jan 2003 14:48:50 +0100 (CET) > > >i need to convert the chars in an array into float and put them onto a >stack... i used atof but i can't change the address of the elements of the >array so i always put the same value into the stack... can anyone help?? > >kind regards... > > > >--------------------------------- >Gesendet von http://mail.yahoo.de. >Bis zu 100 MB Speicher bei http://premiummail.yahoo.de. _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail |
|
From: Daniel G. <sp...@ho...> - 2003-01-19 18:36:50
|
try www.codeproject.com >From: Duncan McQueen <mcq...@um...> >To: dev...@li... >CC: Duncan McQueen <mcq...@um...> >Subject: [Dev-C++] Creating a .DLL >Date: Sat, 18 Jan 2003 15:13:04 -0600 > >I've searched thru the mailing list, and online. Downloaded the dlltools >(where none of the examples work), and still can't figure out how to build >a simple DLL. > >Has anyone created a tutorial to use Dev-C++ and the dll template to create >a DLL? > >I keep on getting errors about creating a .def file. Every tutorial I see >says to create the .def file from the .dll, but if the .dll can't compile, >then how do you create the .def file? > >Thanks, >Duncan McQueen > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will >allow you to extend the highest allowed 128 bit encryption to all your >clients even if they use browsers that are limited to 40 bit encryption. >Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en >_______________________________________________ >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 _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
|
From: Per W. <pw...@ia...> - 2003-01-19 15:29:07
|
It's a bit hard to help if you don't include the failing code in your mail... /Per W On Sun, 19 Jan 2003, j b wrote: > > i need to convert the chars in an array into float and put them onto a stack... i used atof but i can't change the address of the elements of the array so i always put the same value into the stack... can anyone help?? > > kind regards... > > > > --------------------------------- > Gesendet von http://mail.yahoo.de. > Bis zu 100 MB Speicher bei http://premiummail.yahoo.de. |
|
From: <com...@ya...> - 2003-01-19 13:48:51
|
i need to convert the chars in an array into float and put them onto a stack... i used atof but i can't change the address of the elements of the array so i always put the same value into the stack... can anyone help?? kind regards... --------------------------------- Gesendet von http://mail.yahoo.de. Bis zu 100 MB Speicher bei http://premiummail.yahoo.de. |
|
From: Samuel K. <big...@ya...> - 2003-01-19 03:59:13
|
It is: MyClass* Array_or_variable_name = new MyClass; or MyClass* Array_name = new MyClass[some_number]; __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: Eric E. <eng...@ya...> - 2003-01-19 01:55:20
|
I noticed some unusual embedded characters in CVS in some of the filenames. These are all in the folder: /dev-cpp/V5/source/images/blue Here's an example: /dev-cpp/V5/source/images/blue/Arrange%2520Icons.bmp Maybe this isn't noticable when using WinCVS, but I wrote my own program to download source form the CVS browser at SourceForge, and this became a problem for me until I figured it out. If you want to see how this works, you can see this bitmap by entering this URL in a browser (of course it has to be on one line): http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/dev-cpp/V5/source/images/blue/Arrange%2520Icons.bmp?rev=HEAD&content-type=text/plain Eric __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: Duncan M. <mcq...@um...> - 2003-01-18 22:44:49
|
I've managed to type in a .def file. However, I cannot get a DLL to compile fully within Dev-C++ (I am using the latest Beta w/ 2.95). I need to drop to the command line and enter the commands to compile there. Thanks, Duncan On Saturday, January 18, 2003, at 03:13 PM, Duncan McQueen wrote: > I've searched thru the mailing list, and online. Downloaded the > dlltools (where none of the examples work), and still can't figure out > how to build a simple DLL. > > Has anyone created a tutorial to use Dev-C++ and the dll template to > create a DLL? > > I keep on getting errors about creating a .def file. Every tutorial I > see says to create the .def file from the .dll, but if the .dll can't > compile, then how do you create the .def file? > > Thanks, > Duncan McQueen > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts > will > allow you to extend the highest allowed 128 bit encryption to all your > clients even if they use browsers that are limited to 40 bit > encryption. Get a guide > here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > _______________________________________________ > 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: Duncan M. <mcq...@um...> - 2003-01-18 21:13:10
|
I've searched thru the mailing list, and online. Downloaded the dlltools (where none of the examples work), and still can't figure out how to build a simple DLL. Has anyone created a tutorial to use Dev-C++ and the dll template to create a DLL? I keep on getting errors about creating a .def file. Every tutorial I see says to create the .def file from the .dll, but if the .dll can't compile, then how do you create the .def file? Thanks, Duncan McQueen |
|
From: <hor...@te...> - 2003-01-18 14:54:43
|
Hi Everybody,
I have a small problem when initzialising winsock 1.1
Th code I have wrote is as follows:
WSADATA wsaData;
LPHOSTENT lpHostEntry;
LPSERVENT lpServEnt;
SOCKADDR_IN saServer;
lpHostEntry =3D gethostbyname("w1.184.telia.com/~u18414535");
SOCKET Socket;=20
Socket =3D socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (Socket =3D=3D INVALID_SOCKET)
{
MessageBox(NULL,"Unable to create socket","Error", =
MB_OK|MB_ICONEXCLAMATION);=20
=20
}
lpServEnt =3D getservbyname("http", "tcp");
if (lpServEnt =3D=3D NULL)
saServer.sin_port =3D htons(80);
else
saServer.sin_port =3D lpServEnt->s_port;
=20
saServer.sin_family =3D AF_INET;
saServer.sin_addr =3D *((LPIN_ADDR)*lpHostEntry->h_addr_list);
=20
int nRet;
nRet =3D connect(Socket, (LPSOCKADDR)&saServer, =
sizeof(SOCKADDR_IN));
if (nRet =3D=3D SOCKET_ERROR)
{
MessageBox(NULL,"Unable to connect the socket","Error", =
MB_OK|MB_ICONEXCLAMATION);=20
closesocket(Socket);
=20
}
Everything compiles well, but when this code comes in use, I get one og =
these famaus messages "The program has executed an illigeal operation =
and must be terminated".
Why?
Please help me!!!
Thanks in advance!
=20
//Johan H=F6rnell |