dev-cpp-users Mailing List for Dev-C++ (Page 285)
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...> - 2003-12-04 13:05:17
|
To my knowledge it is possible to implement fifo files in NT too. However, you would then need the IFS SDK (I think that was the correct name), and M$ charges a lot for this SDK. The SDK is targeted at implementation of own file systems, file reparse points etc. In theory, you can do these things with the normal DDK - Device Driver ToolKit - but you will miss sample code and needed include files so you would then need to google around for PD code. The simplest solution is to implement a tail program that prenumerates to changes. Then you don't have to constantly poll the size of the file to detect new alarms. /Per W On Thu, 4 Dec 2003, Igor Pierscinski wrote: > Hi, > > Answer to your question depends on how the aplication > you mentioned sends alarms to the file. If it sends > them to standart output and they are redirected to the file > then you can write a program that reads standart input > and for each line of input it does what you want to do > (something like: <program_that_sends_alarms> | <your_alarm_filter> ). > But most probably the situation is as follows: the program > writes alarms directly to the file - then your easiest option > is to write a program that opens this file for reading and > periodically checks if something has changed in that file. > If you know unix then command "tail -f" may give you an > idea what i am talking about. It is the easiest solution and > you can write an ordinary program that does that. > As far as I know there is no such thing on windows as fifo > special files that you know from unix. > But if you want to do it the hard way you can search for > infromation on how to write a filesystem filter driver - then > you can intercept all the write operations to a file, but that > is totally different story. > > Regards > > Igor Pierscinski > > > -----Original Message----- > > From: Christian Sch=E4fer [mailto:ca...@kr...] > > Sent: Thursday, December 04, 2003 8:42 AM > > To: Dev...@li... > > Subject: [Dev-C++] pipe to a file? > > > > > > hi Dev-cpp-users, > > > > I have a difficult problem here and an idea how to solve it, which I > > am not really sure of if it would be possible.. > > > > I have an application running that sends out alarmings. these alarms > > are appended to a plain-text-file. one alarm =3D=3D one line. > > > > I want to write an application that puts itself where the file is, and > > recieves the appendings, writes them to another file and several other > > things. > > > > I think this can maybe done by pipes, but I do not know how to do it. > > an alarm should be treated like an event, when it occures something > > has to be done about it (ring a bell :). > > > > of course this application would need to run as a service. > > I also need some hints or tutorials here, to write a service. > > (I usually program for unix systems but that's really different..) > > > > but first I need to get this append-problem solved. > > > > thanks in advance! > > > > > > gruss > > /Christian mailto:ca...@kr... > > > > -- > > I propose that the following character sequence for joke markers: > > > > :-) > > 19-Sep-82 11:44 Scott E Fahlman > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by OSDN's Audience Survey. > > Help shape OSDN's sites and tell us what you think. Take this > > five minute survey and you could win a $250 Gift Certificate. > > http://www.wrgsurveys.com/2003/osdntech03.php?site=3D8 > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > ------------------------------------------------------- > This S |
|
From: Reid T. <Rei...@at...> - 2003-12-04 13:03:48
|
http://www.winprog.org/tutorial/ can be downloaded for local use reid > -----Original Message----- > From: Yeoh HS [mailto:ye...@ye...]=20 > Sent: Thursday, December 04, 2003 3:01 AM > To: dev...@li...; P.T. Waugh MA > Subject: Re: [Dev-C++] offline C++ winhelp >=20 >=20 > > I'd like to find some downloadable C++ help that I can reference=20 > > offline, preferably something I can integrate into the Dev-C++ help=20 > > menu like a windows help file, so that I have a function reference=20 > > available. >=20 > Hello Patrick, >=20 > You might want to check out this site:=20 > http://htmlhelp.berlios.de/books/chm> .php >=20 > Documentation of=20 > common GNU/Unix utilities converted=20 > in Windows' Compiled HTML Help (CHM) format. It has=20 > documentation for gcc, libc, libstd++ and many other goodies. :-) >=20 > Best Regards, > Yeoh > -- > FREE downloads: tips, tutorials, source codes and sample=20 > eBooks from http://www.yeohhs.com >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by OSDN's Audience Survey. > Help shape OSDN's sites and tell us what you think. Take this=20 > five minute survey and you could win a $250 Gift Certificate.=20 > http://www.wrgsurveys.com/2003/osdnt> ech03.php?site=3D8 >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Frank W. <F.W...@wi...> - 2003-12-04 11:57:00
|
Hello, I just try to learn to use the wxWindows GUI toolkit and therefore I use the tutorial at: http://www.bzzt.net/~wxwindows/icpp_wx1.html Before I installed the wxWindow DEVPACK and the imagelib-1 DEVPACK. After that I started creating a wxWindows project and tried to compile the files generated form the templates. A lot of compiler errors did occur. After that I replaced these files by the files including the code of this tutorial and tried to compile the basic window app. Nearly the same compiler errors were the result. In both cases I used the project options that were set from the wxwindow template. For further information I attach the compile log to this mal the code I tried to compile can be found at http://www.bzzt.net/~wxwindows/icpp_wx1.html. I hope someone can help me Thanks in advance Frank |
|
From: Igor P. <igo...@po...> - 2003-12-04 10:23:45
|
Hi, Answer to your question depends on how the aplication you mentioned sends alarms to the file. If it sends them to standart output and they are redirected to the file then you can write a program that reads standart input and for each line of input it does what you want to do (something like: <program_that_sends_alarms> | <your_alarm_filter> ). But most probably the situation is as follows: the program writes alarms directly to the file - then your easiest option is to write a program that opens this file for reading and periodically checks if something has changed in that file. If you know unix then command "tail -f" may give you an idea what i am talking about. It is the easiest solution and you can write an ordinary program that does that. As far as I know there is no such thing on windows as fifo special files that you know from unix. But if you want to do it the hard way you can search for infromation on how to write a filesystem filter driver - then you can intercept all the write operations to a file, but that is totally different story. Regards Igor Pierscinski > -----Original Message----- > From: Christian Sch=E4fer [mailto:ca...@kr...] > Sent: Thursday, December 04, 2003 8:42 AM > To: Dev...@li... > Subject: [Dev-C++] pipe to a file? >=20 >=20 > hi Dev-cpp-users, >=20 > I have a difficult problem here and an idea how to solve it, which I > am not really sure of if it would be possible.. >=20 > I have an application running that sends out alarmings. these alarms > are appended to a plain-text-file. one alarm =3D=3D one line. >=20 > I want to write an application that puts itself where the file is, and > recieves the appendings, writes them to another file and several other > things. >=20 > I think this can maybe done by pipes, but I do not know how to do it. > an alarm should be treated like an event, when it occures something > has to be done about it (ring a bell :). >=20 > of course this application would need to run as a service. > I also need some hints or tutorials here, to write a service. > (I usually program for unix systems but that's really different..) >=20 > but first I need to get this append-problem solved. >=20 > thanks in advance! >=20 > =20 > gruss > /Christian mailto:ca...@kr... >=20 > --=20 > I propose that the following character sequence for joke markers: >=20 > :-) > 19-Sep-82 11:44 Scott E Fahlman >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by OSDN's Audience Survey. > Help shape OSDN's sites and tell us what you think. Take this > five minute survey and you could win a $250 Gift Certificate. > http://www.wrgsurveys.com/2003/osdntech03.php?site=3D8 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |
|
From: Ferdinando F. <s2...@st...> - 2003-12-04 10:00:50
|
On Wed, 3 Dec 2003, P.T. Waugh MA wrote: > /** @file stack > * This is a Standard C++ Library header. You should @c #include this header > * in your programs, rather than any of the "st[dl]_*.h" implementation > files. > */ This means that you should write: #include <stack> using namespace std; to obtain the same effect of: #include <stack.h> that is deprecated, and in gcc 3.2 (DevC++5 with MinGW full binaries is based on it) you get a warning if you use it. > Patrick Ferdinando |
|
From: Ferdinando F. <s2...@st...> - 2003-12-04 09:48:03
|
On Wed, 3 Dec 2003, James Carlin wrote: > 4.9.8.0 and it did not work. When I uninstalled version 4.9.8.0 and then > re-instal version 4, that no longer works. How did you uninstall 5? If you used the uninstaller, try deleting the installation directory before reinstalling 4, if you deleted that directory try running the uninstaller and then deleting directory. Of course, this would mean reinstall 5 to uninstall it and reinstall 4. Warning: I'm not sure that this will work, but this is what I'd do. IMHO you shouldn't reinstall 4, at least try installing last 5 beta, it's very stable, even if some work has still to be done. Bye, Ferdinando |
|
From: Maya <Esc...@ne...> - 2003-12-04 09:10:01
|
Ok, can someone PLEASE tell me how to go about linking programs against wxWindows. I have tried by I get 'compiler_errors.txt', as you can see in 'Makefile.win' that it includes wxWindows library. FYI: wxWindows directory is 'c:\wx' Thanks -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Yeoh H. <ye...@ye...> - 2003-12-04 07:52:48
|
> I'd like to find some downloadable C++ help that I can reference offline, > preferably something I can integrate into the Dev-C++ help menu like a > windows help file, so that I have a function reference available. Hello Patrick, You might want to check out this site: http://htmlhelp.berlios.de/books/chm.php Documentation of common GNU/Unix utilities converted in Windows' Compiled HTML Help (CHM) format. It has documentation for gcc, libc, libstd++ and many other goodies. :-) Best Regards, Yeoh -- FREE downloads: tips, tutorials, source codes and sample eBooks from http://www.yeohhs.com |
|
From: P.T. W. M. <pt...@ea...> - 2003-12-04 07:40:27
|
Hi, I'd like to find some downloadable C++ help that I can reference offline, preferably something I can integrate into the Dev-C++ help menu like a windows help file, so that I have a function reference available. Not being familiar with what functions are available and their proto types is slowing me down. All I have found so far is online docs, which are no help with a 56K modem that's offline. Thanks, Patrick |
|
From: <ca...@kr...> - 2003-12-04 07:37:09
|
hi Dev-cpp-users,
I have a difficult problem here and an idea how to solve it, which I
am not really sure of if it would be possible..
I have an application running that sends out alarmings. these alarms
are appended to a plain-text-file. one alarm == one line.
I want to write an application that puts itself where the file is, and
recieves the appendings, writes them to another file and several other
things.
I think this can maybe done by pipes, but I do not know how to do it.
an alarm should be treated like an event, when it occures something
has to be done about it (ring a bell :).
of course this application would need to run as a service.
I also need some hints or tutorials here, to write a service.
(I usually program for unix systems but that's really different..)
but first I need to get this append-problem solved.
thanks in advance!
gruss
/Christian mailto:ca...@kr...
--
I propose that the following character sequence for joke markers:
:-)
19-Sep-82 11:44 Scott E Fahlman
|
|
From: Smitha V. B. <smi...@so...> - 2003-12-04 07:19:00
|
Does anybody know abt the documentation abt PCthreads..(A userspace thread library confirming to POSIX standards.) regards smitha > -----Original Message----- > From: P.T. Waugh MA [SMTP:pt...@ea...] > Sent: Thursday, December 04, 2003 12:42 PM > To: dev...@li... > Subject: [Dev-C++] @c #include > > What does this phrase mean? In short, what does this type of include look > > like vs. others? > > /** @file stack > * This is a Standard C++ Library header. You should @c #include this > header > * in your programs, rather than any of the "st[dl]_*.h" implementation > files. > */ > > This was found in the "stack" library. > > Thanks for your assistance. > > Patrick > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN's Audience Survey. > Help shape OSDN's sites and tell us what you think. Take this > five minute survey and you could win a $250 Gift Certificate. > http://www.wrgsurveys.com/2003/osdntech03.php?site=8 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ********************************************************************* 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: P.T. W. M. <pt...@ea...> - 2003-12-04 07:11:55
|
What does this phrase mean? In short, what does this type of include look like vs. others? /** @file stack * This is a Standard C++ Library header. You should @c #include this header * in your programs, rather than any of the "st[dl]_*.h" implementation files. */ This was found in the "stack" library. Thanks for your assistance. Patrick |
|
From: Ray K. <he...@er...> - 2003-12-03 19:12:53
|
That's odd; I'm running 4.9.8.4 on a Win98 box, and it's working just=20 fine. (I don't recall having problems with 4.9.8.0, either.) There's an=20 uninstall.exe file in the main Dev-C++ directory- that should remove Dev=20 if you can't get if working, but I don't see why it isn't already. What=20 exactly isn't working right? "James Carlin" <is...@ho...> wrote: > How do I remove version 4.9.8.0 so I can get back to using version 4. I= =20 > run Windows 98, and with Dev-C++ 4 things were great. I installed=20 > version 4.9.8.0 and it did nor work. When I uninstalled version 4.9.8.0= =20 > and the re-instal version 4 that no longer works. > > Please help, I can not compile any of my course programs. > > Thanks > > Jim Carlinl |
|
From: James C. <is...@ho...> - 2003-12-03 18:40:35
|
I am sending this E-mail again; I need an answer ASAP. How do I remove version 4.9.8.0 so I can get back to using version 4. I run Windows 98, and with Dev-C++ 4 things were great. I installed version 4.9.8.0 and it did not work. When I uninstalled version 4.9.8.0 and then re-instal version 4, that no longer works. Please help, I can not compile any of my course programs. Thanks Jim Carlin _________________________________________________________________ Wonder if the latest virus has gotten to your computer? Find out. Run the FREE McAfee online computer scan! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 |
|
From: Maya <Esc...@ne...> - 2003-12-03 14:41:07
|
I have been using Dev-cpp for small programs, but the more I use it the more I like it! FOX GUI and wxWindows are the tow GUI tool kits I am considering to add GUI to my apps. Now, I want the gui library to be linked to the program being worked on, but not all the programs being developed under Dev-cpp, is there a way in which Dev-cpp might allow me to do this. Please note that Fox is installed in 'c:\fox' and wxWindows in 'c:\wx' in a Win98 machine. Thank in advance -- FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! |
|
From: Paul H. <dra...@ne...> - 2003-12-03 13:18:42
|
I am a beginner to 'Win32 programming' I have also been studying 'the =
forgers-win32-tutorial' and I'm stuck at the dialogs section. The =
program runs but the 'Dialog' does'nt appear, just an error saying =
'Dialog error' which appears when you return the value -1
[code] Win example3.c
#include <windows.h>
#include "Win_example3.h"
#define ID_FILE_EXIT 9001
#define ID_STUFF_GO 9002
#define ID_HELP_ABOUT 9003
const char g_szClassName[] =3D "myWindowClass";
BOOL CALLBACK AboutDlgProc(HWND hwnd, UINT Message, WPARAM wParam, =
LPARAM lParam)
{
switch(Message)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDOK:
EndDialog(hwnd, IDOK);
break;
case IDCANCEL:
EndDialog(hwnd, IDCANCEL);
break;
}
break;
default:
return FALSE;
}
return TRUE;
}
// Step 4: the Window Procedure
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM =
lParam)
{
switch(msg)
{
case WM_CREATE:
{
HMENU hMenu, hSubMenu;
HICON hIcon, hIconSm;
hMenu =3D CreateMenu();
hSubMenu =3D CreatePopupMenu();
AppendMenu(hSubMenu, MF_STRING, ID_FILE_EXIT, "E&xit");
AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&File");
hSubMenu =3D CreatePopupMenu();
AppendMenu(hSubMenu, MF_STRING, ID_STUFF_GO, "&Go");
AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&Stuff");
hSubMenu =3D CreatePopupMenu();
AppendMenu(hSubMenu, MF_STRING, ID_HELP_ABOUT, "&About");
AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&Help");
SetMenu(hwnd, hMenu);
hIcon =3D LoadImage(NULL, "Win_example.ico", IMAGE_ICON, 32, 32, =
LR_LOADFROMFILE);
if(hIcon)
SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
else
MessageBox(hwnd, "Could not load large icon!", "Error", MB_OK | =
MB_ICONERROR);
hIconSm =3D LoadImage(NULL, "Win_example.ico", IMAGE_ICON, 16, 16, =
LR_LOADFROMFILE);
if(hIconSm)
SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIconSm);
else
MessageBox(hwnd, "Could not load small icon!", "Error", MB_OK | =
MB_ICONERROR);
}
break;
case WM_COMMAND:
{
switch(LOWORD(wParam))
{
case ID_HELP_ABOUT:
{
int ret =3D DialogBox(GetModuleHandle(NULL),=20
MAKEINTRESOURCE(IDD_ABOUT), hwnd, AboutDlgProc);
if(ret =3D=3D IDOK){
MessageBox(hwnd, "Dialog exited with IDOK.", "Notice",
MB_OK | MB_ICONINFORMATION);
}
else if(ret =3D=3D IDCANCEL){
MessageBox(hwnd, "Dialog exited with IDCANCEL.", "Notice",
MB_OK | MB_ICONINFORMATION);
}
else if(ret =3D=3D -1){
MessageBox(hwnd, "Dialog failed!", "Error",
MB_OK | MB_ICONINFORMATION);
}
}
break;
case ID_FILE_EXIT:
PostMessage(hwnd, WM_CLOSE, 0, 0);
break;
case ID_STUFF_GO:
MessageBox(hwnd, "It's working", "Go", MB_OK);
break;
}
}
break;
case WM_LBUTTONDOWN:
{
char szFileName[MAX_PATH];
HINSTANCE hInstance =3D GetModuleHandle(NULL);
GetModuleFileName(hInstance, szFileName, MAX_PATH);
MessageBox(hwnd, szFileName, "This program is:", MB_OK | =
MB_ICONINFORMATION);
}
break;
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return DefWindowProc(hwnd, msg, wParam, lParam);
}
return 0;
}
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
WNDCLASSEX wc;
HWND hwnd;
MSG Msg;
//Step 1: Registering the Window Class
wc.cbSize =3D sizeof(WNDCLASSEX);
wc.style =3D 0;
wc.lpfnWndProc =3D WndProc;
wc.cbClsExtra =3D 0;
wc.cbWndExtra =3D 0;
wc.hInstance =3D hInstance;
wc.hIcon =3D LoadIcon(NULL, IDI_APPLICATION);
wc.hCursor =3D LoadCursor(NULL, IDC_ARROW);
wc.hbrBackground =3D (HBRUSH)(COLOR_WINDOW+1);
wc.lpszMenuName =3D NULL;
wc.lpszClassName =3D g_szClassName;
wc.hIconSm =3D LoadIcon(NULL, IDI_APPLICATION);
if(!RegisterClassEx(&wc))
{
MessageBox(NULL, "Window Registration Failed!", "Error!",
MB_ICONEXCLAMATION | MB_OK);
return 0;
}
// Step 2: Creating the Window
hwnd =3D CreateWindowEx(
WS_EX_CLIENTEDGE,
g_szClassName,
"The title of my window",
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, 240, 120,
NULL, NULL, hInstance, NULL);
if(hwnd =3D=3D NULL)
{
MessageBox(NULL, "Window Creation Failed!", "Error!",
MB_ICONEXCLAMATION | MB_OK);
return 0;
}
ShowWindow(hwnd, nCmdShow);
UpdateWindow(hwnd);
// Step 3: The Message Loop
while(GetMessage(&Msg, NULL, 0, 0) > 0)
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
return Msg.wParam;
}
[/code]
[code] Win_example3.rc
#include <windows.h>
#include "Win_example3.h"
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
{
DEFPUSHBUTTON "&OK",IDOK,174,18,50,14
PUSHBUTTON "&Cancel",IDCANCEL,174,35,50,14
GROUPBOX "About this program...",IDC_STATIC,7,7,225,52
CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby =
theForger",
IDC_STATIC,16,18,144,33
}
[/code]
[code] Win_example3.h
#define IDD_ABOUT 1001
[/code]
I have followed what other people have said about it, but they did'nt =
seem to work. If you can clarify this for me or any ideas would be =
appreciated Thank You in advance! |
|
From: Yeoh H. <ye...@ye...> - 2003-12-03 12:32:11
|
----- Original Message ----- From: "vasanthsena x" <vas...@ya...> To: <dev...@li...> Sent: Wednesday, December 03, 2003 6:38 AM Subject: [Dev-C++] game tutorials > hi can anyone tell me about some good game tutorials. > > ty. > S. > The Resource section of GameDev.net is awesome. The URL is: http://www.gamedev.net/ Best Regards, Yeoh -- FREE downloads: tips, tutorials, source codes and sample ebooks on C++ programming from http://www.yeohhs.com |
|
From: Daniel G. <sp...@ho...> - 2003-12-03 10:57:49
|
you might want to look at www.gamedev.net >From: vasanthsena x <vas...@ya...> >To: dev...@li... >Subject: [Dev-C++] game tutorials >Date: Tue, 2 Dec 2003 14:38:26 -0800 (PST) > >hi can anyone tell me about some good game tutorials. > >ty. >S. > >__________________________________ >Do you Yahoo!? >Free Pop-Up Blocker - Get it now >http://companion.yahoo.com/ > > >------------------------------------------------------- >This SF.net email is sponsored by OSDN's Audience Survey. >Help shape OSDN's sites and tell us what you think. Take this >five minute survey and you could win a $250 Gift Certificate. >http://www.wrgsurveys.com/2003/osdntech03.php?site=8 >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: neo <de...@ey...> - 2003-12-03 10:30:51
|
I downloaded the allegro through WebUpdate Module,and installed it,but there
is a problem when i tried compiling the example program named exhello.c.the
code of the example program as below:
/************************************************************************/
#include "allegro.h"
int main()
{
/* you should always do this at the start of Allegro programs */
allegro_init();
/* set up the keyboard handler */
install_keyboard();
/* set a graphics mode sized 320x200 */
if (set_gfx_mode(GFX_SAFE, 320, 200, 0, 0) != 0) {
set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
allegro_message("Unable to set any graphic mode\n%s\n",
allegro_error);
return 1;
}
/* set the color palette */
set_palette(desktop_palette);
/* clear the screen to white */
clear_to_color(screen, makecol(255, 255, 255));
/* you don't need to do this, but on some platforms (eg. Windows) things
* will be drawn more quickly if you always acquire the screen before
* trying to draw onto it.
*/
acquire_screen();
/* set transparent text */
text_mode(-1);
/* write some text to the screen with black letters */
textout_centre(screen, font, "Hello, world!", SCREEN_W/2, SCREEN_H/2,
makecol(0,0,0));
/* you must always release bitmaps before calling any input functions */
release_screen();
/* wait for a keypress */
readkey();
return 0;
}
END_OF_MAIN();
/****************************end*****************************************/
the error information(devcpp):
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\My Documents\Untitled1.c" -o "C:\My Documents\Untitled1.exe"
-I"D:\DEV-CPP\include" -L"D:\DEV-CPP\lib"
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x4f):Untitled1.c: undefined reference to
`install_allegro'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x57):Untitled1.c: undefined reference to
`install_keyboard'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x72):Untitled1.c: undefined reference to
`set_gfx_mode'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x8b):Untitled1.c: undefined reference to
`set_gfx_mode'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x97):Untitled1.c: undefined reference to
`_imp__allegro_error'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xa1):Untitled1.c: undefined reference to
`allegro_message'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xb9):Untitled1.c: undefined reference to
`_imp__desktop_palette'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xbe):Untitled1.c: undefined reference to
`set_palette'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xdb):Untitled1.c: undefined reference to
`makecol'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xe4):Untitled1.c: undefined reference to
`_imp__screen'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xeb):Untitled1.c: undefined reference to
`clear_to_color'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xf3):Untitled1.c: undefined reference to
`acquire_screen'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0xfd):Untitled1.c: undefined reference to
`text_mode'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x111):Untitled1.c: undefined reference to
`makecol'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x11a):Untitled1.c: undefined reference to
`_imp__gfx_driver'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x124):Untitled1.c: undefined reference to
`_imp__gfx_driver'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x14a):Untitled1.c: undefined reference to
`_imp__gfx_driver'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x154):Untitled1.c: undefined reference to
`_imp__gfx_driver'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x17f):Untitled1.c: undefined reference to
`_imp__font'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x186):Untitled1.c: undefined reference to
`_imp__screen'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x18d):Untitled1.c: undefined reference to
`textout_centre'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x195):Untitled1.c: undefined reference to
`release_screen'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x19a):Untitled1.c: undefined reference to
`readkey'
C:\WINDOWS\TEMP/ccqHlhgb.o(.text+0x1c5):Untitled1.c: undefined reference to
`_WinMain'
Execution terminated
who can help me ?thx anyway!
--http://www.eyou.com
--Îȶ¨¿É¿¿µÄµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡
--http://vip.eyou.com
--¿ì¿ìµÇ¼ÒÚÓÊVIPÐÅÏä ×¢²áÄúÖÐÒâµÄÓû§Ãû
|
|
From: vasanthsena x <vas...@ya...> - 2003-12-02 22:38:26
|
hi can anyone tell me about some good game tutorials. ty. S. __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ |
|
From: James C. <is...@ho...> - 2003-12-02 22:28:10
|
How do I remove version 4.9.8.0 so I can get back to using version 4. I run Windows 98, and with Dev-C++ 4 things were great. I installed version 4.9.8.0 and it did nor work. When I uninstalled version 4.9.8.0 and the re-instal version 4 that no longer works. Please help, I can not compile any of my course programs. Thanks Jim Carlinl _________________________________________________________________ Share holiday photos without swamping your Inbox. Get MSN Extra Storage now! http://join.msn.com/?PAGE=features/es |
|
From: <or...@vp...> - 2003-12-02 22:22:05
|
Hi! There are 2 things you can do: 1. Add -D__GNUWIN32__ to C and C++ compiler flags (good choice). 2. ALternatively you can look into include/wx/string.h and comment the #error line, then uncoment the code above it (very inefficient method). -- Greetings, Balázs |
|
From: Oliver B. <the...@gm...> - 2003-12-02 19:49:45
|
Hi :-) perhaps you try to compile a static lib under windows. you need: - latest wxwindows stable release: www.wxwindows.org - GNU Utils: http://www.braindonors.net/products/unxutils.asp - Tutorial: http://upcase.malteser-gl.de/ - A forum: http://sourceforge.net/forum/forum.php?forum_id=48211 and: http://g.yi.org/Forum/list.php?f=13 (normally very slow and actually down but fantastic. Try http://g.yi.org Hope this helps :-) Regards Olli > Hy! > > Exuse me my english (I'm hungarian, and I learn English) > > I installed Dev-cpp. > I downloaded imagelib and wxwindows packages from dev-cpp webssite, after > install, > I try to make a project File-> New ->Projekt-> Gui ->wxwindows > It makes main.cpp and main.h, but when I try compile then make errors: > > 15 C:\DEV-CPP\include\wx\wx.h > In file included from C:/DEV-CPP/include/wx/wx.h > 5 D:\dev-cpp\wx\main.cpp > from main.cpp > 320 C:\DEV-CPP\include\wx\defs.h > redeclaration of C++ built-in type `bool' > 17 C:\DEV-CPP\include\wx\debug.h > In file included from C:/DEV-CPP/include/wx/debug.h > 468 C:\DEV-CPP\include\wx\defs.h > from C:/DEV-CPP/include/wx/defs.h > 15 C:\DEV-CPP\include\wx\wx.h > from C:/DEV-CPP/include/wx/wx.h > 5 D:\dev-cpp\wx\main.cpp > from main.cpp > 6 C:\DEV-CPP\include\wx\wxchar.h:429 > #error "Please define string case-insensitive compare for your OS/compiler" > 20 C:\DEV-CPP\include\wx\memory.h > In file included from C:/DEV-CPP/include/wx/memory.h > 20 C:\DEV-CPP\include\wx\object.h > from C:/DEV-CPP/include/wx/object.h > 16 C:\DEV-CPP\include\wx\wx.h > from C:/DEV-CPP/include/wx/wx.h > 5 D:\dev-cpp\wx\main.cpp > from main.cpp > 4 C:\DEV-CPP\include\wx\string.h:170 > #error "Please define string case-insensitive compare for your OS/compiler" > ...... > > Please help me! > (Very important) > > > Üdv: > interpet > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -- icq: 172670232 homepage: http://www.the-unchallenged.de |
|
From: Daniel G. <sp...@ho...> - 2003-12-02 18:15:46
|
Hey I just thought I'd let you know I have had two lessons in Japanese so far (started last week) and so far it is going well. The second lesson I found myself understanding a lot more. arigato gozimasu, Daniel >From: "P.D. van Zelst" <pa...@my...> >Reply-To: <pd...@xs...> >To: "'Daniel Glenfield'" ><sp...@ho...>,<dev...@li...> >Subject: RE: [Dev-C++] WAAAY off topic - does anyone speak Japanese? >Date: Tue, 28 Oct 2003 13:22:35 +0100 > >Hi, > >I don't speak Japanese that well, but I'm trying to learn it myself too. >It's pretty easy in fact. Intonation doesn't have much to do with what the >words mean (that's in Chinese :P), it's more which sounds you use. You use >"ka" at the end of a sentence to make it a question, for example. You could >try having a look at the Pimsleur "Japanese 1" tapes/CDs/mp3s, they're a >great help to me as well. It does focus on speaking instead of writing, but >that should be ok (considering the extreme amount of characters they have >:|). If you want to learn the character sets, you're probably best off >first >learning hiragana and katakana, both consisting of 46 characters. Hiragana >is the set of basic sounds (don't know a better word for it, English isn't >my native language either :P), with which you can compose a lot of words >(apparently that's what kids in Japan learn first as well). Katakana is a >set of characters used for "loan words"... when they use, for example, >English words, they write them with this character set (which often >produces >funny sounding words as well). >These are the character sets (off some anime site I believe, hence the >girls >next to the characters): http://mystgamedev.xs4all.nl/hiragana.jpg and >http://mystgamedev.xs4all.nl/katakana.jpg . >And anyone who knows I'm wrong or anything, please correct me :) I mostly >learn from what others tell me (a lot of my friends are big anime fans, and >one of them's even studying Japanese at a university, so I pick some things >up every now and then). > >Regards, > > >Paul > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...] On Behalf Of Daniel >Glenfield >Sent: Tuesday, October 28, 2003 11:28 AM >To: dev...@li... >Subject: [Dev-C++] WAAAY off topic - does anyone speak Japanese? > >I was thinking about learning Japanese. I always enjoyed learning european >languages (I'm not great at any of them, French I'm ok at, but I enjoy >learning snippets) but I was wondering if anyone speaks Japanese, how >different is it to european langues (I think the softer you speak the words >mean different things, and there are many types of kanji but I don't know >why!). > >Any good websites that can help me (apart from babel fish on alta vista). > >Thanks, >Daniel > >_________________________________________________________________ >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: The SF.net Donation Program. >Do you like what SourceForge.net is doing for the Open Source Community? >Make a contribution, and help us add new features and functionality. Click >here: http://sourceforge.net/donate/ >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > >------------------------------------------------------- >This SF.net email is sponsored by: The SF.net Donation Program. >Do you like what SourceForge.net is doing for the Open >Source Community? Make a contribution, and help us add new >features and functionality. Click here: http://sourceforge.net/donate/ >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger |
|
From: <int...@ma...> - 2003-12-02 13:19:24
|
Hy!
Exuse me my english (I'm hungarian, and I learn English)
I installed Dev-cpp.
I downloaded imagelib and wxwindows packages from dev-cpp webssite, after
install,
I try to make a project File-> New ->Projekt-> Gui ->wxwindows
It makes main.cpp and main.h, but when I try compile then make errors:
15 C:\DEV-CPP\include\wx\wx.h
In file included from C:/DEV-CPP/include/wx/wx.h
5 D:\dev-cpp\wx\main.cpp
from main.cpp
320 C:\DEV-CPP\include\wx\defs.h
redeclaration of C++ built-in type `bool'
17 C:\DEV-CPP\include\wx\debug.h
In file included from C:/DEV-CPP/include/wx/debug.h
468 C:\DEV-CPP\include\wx\defs.h
from C:/DEV-CPP/include/wx/defs.h
15 C:\DEV-CPP\include\wx\wx.h
from C:/DEV-CPP/include/wx/wx.h
5 D:\dev-cpp\wx\main.cpp
from main.cpp
6 C:\DEV-CPP\include\wx\wxchar.h:429
#error "Please define string case-insensitive compare for your OS/compile=
r"
20 C:\DEV-CPP\include\wx\memory.h
In file included from C:/DEV-CPP/include/wx/memory.h
20 C:\DEV-CPP\include\wx\object.h
from C:/DEV-CPP/include/wx/object.h
16 C:\DEV-CPP\include\wx\wx.h
from C:/DEV-CPP/include/wx/wx.h
5 D:\dev-cpp\wx\main.cpp
from main.cpp
4 C:\DEV-CPP\include\wx\string.h:170
#error "Please define string case-insensitive compare for your OS/compile=
r"
......
Please help me!
(Very important)
=DCdv:
interpet
|