dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
(7) |
|
2
(8) |
3
(7) |
4
(7) |
5
(18) |
6
(8) |
7
(8) |
8
(12) |
|
9
(8) |
10
(5) |
11
(8) |
12
(5) |
13
(5) |
14
(27) |
15
(9) |
|
16
(21) |
17
(13) |
18
(34) |
19
(13) |
20
(17) |
21
(11) |
22
(21) |
|
23
(14) |
24
(29) |
25
(29) |
26
(22) |
27
(20) |
28
(11) |
|
|
From: Lucas K. T. <lk...@bo...> - 2003-02-03 18:29:57
|
Steven, thanks for all your help, I solved my issues already, and I = couldn't load that site you gave.. .well, it did load, but then the = screen would go blank, I dunno what's going on... thanks for your help = though... lkt153 |
|
From: Lucas K. T. <lk...@bo...> - 2003-02-03 11:52:27
|
I looked at your code, and I didn't notice anything wrong with it, well, = that despite the fact, that you dont need to tell the compiler explicit = to sue ANSI APIs, so I'd kill those last A's, although I really don't = know what's going on, you should try it, simply change GetOpenFileNameA = to GetOpenFileName... PS: sorry about changing the title, but I hardly think "DEV-CPP Digest = Vol 1 #1260" was an appropriate one for you question lkt153 |
|
From: <qa...@ho...> - 2003-02-03 10:54:51
|
Hi Michel. On 2003-02-03 at 07:43 Michel Weinachter wrote: >J=F6rgen wrote: > >>Hi >> >>This is what I did today in order to make wxWindows work and compile from >inside Dev-Cpp 4.9.7.4 with MinGW 3.2 >> >>1. Go to http://michel.weinachter.free.fr/ and download the three= packages >>2. Install them with the package manager. >>3. Open the 'WxWindows.template' file in your 'Dev-cpp\Templates' >directory. >>4. Change the line 'Compiler=3D...' to 'CppCompiler=3D...' >> >strange I don't need to change that. I will look that as soon as possible. >Do you use gcc provided by Dev-c++ ? Yes I have the gcc (MinGW) provided by Dev-Cpp If I don't change the line 'Compiler...' to 'CppCompiler...' i get the= following errors -- ERROR --> In file included from D:/Programmering/IDE/Dev-Cpp/include/wx/wxprec.h:13, from main.cpp:21: D:/Programmering/IDE/Dev-Cpp/include/wx/defs.h:174: redeclaration of C++= built-in type `bool' In file included from D:/Programmering/IDE/Dev-Cpp/include/wx/memory.h:20, from D:/Programmering/IDE/Dev-Cpp/include/wx/object.h:25, from D:/Programmering/IDE/Dev-Cpp/include/wx/wx.h:16, from main.cpp:30: D:/Programmering/IDE/Dev-Cpp/include/wx/string.h:164:4: #error "Please= define string case-insensitive compare for your OS/compiler" make.exe: *** [main.o] Error 1 Execution terminated <-- ERROR -- > >>5. Start Dev-Cpp and create a new wxWindow project >(File->New->Project->GUI->WxWindow) >> >>6. The template should now compile without a problem (it did for me) >> >>If you try to compile another sample and get the following resource error >> >>[Resource Error] can't open cursor file `wx/msw/hand.cur': No such file >or directory >> >> >There is no ressource directory file in the template. I should add a >comment in main.cpp for example. This problem frequently appears with >projects imported from VC++. Please do so. >>Get rid of it by setting the path to Dev-Cpp\include directory as a >resource directory (Project->Project Options->Directories->Resource >Directories) >> >>Hope this helps you. >> >>/J=F6rgen >> >> >>*********** REPLY SEPARATOR *********** >> >>On 2003-02-02 at 23:22 sa...@li... wrote: >> >> >> >>>I've tried the template of wxWindows devpack in DevCpp 4.9.7.4 with gcc >>>v2.95 and doesnt work. Also with gcc 3 the same. i've tried an old= devcpp >>>4.9.5.0 updated to 4.9.7.4 but it continues to warn about the debug.h >>>header in the wx include folder. someone has make this template works? >>>with an old version of the ide months ago i've compiled succefully but >now >>>i'm not able to do it again. Why there's such a beautiful feature like >>>vUpdate and it's not updated to working devpacks? >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld =3D 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 >>> >>> >> >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld =3Domething 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 >> >> >> h |
|
From: Michel W. <mic...@fr...> - 2003-02-03 06:43:45
|
Jörgen wrote: >Hi > >This is what I did today in order to make wxWindows work and compile from inside Dev-Cpp 4.9.7.4 with MinGW 3.2 > >1. Go to http://michel.weinachter.free.fr/ and download the three packages >2. Install them with the package manager. >3. Open the 'WxWindows.template' file in your 'Dev-cpp\Templates' directory. >4. Change the line 'Compiler=...' to 'CppCompiler=...' > strange I don't need to change that. I will look that as soon as possible. Do you use gcc provided by Dev-c++ ? >5. Start Dev-Cpp and create a new wxWindow project (File->New->Project->GUI->WxWindow) > >6. The template should now compile without a problem (it did for me) > >If you try to compile another sample and get the following resource error > >[Resource Error] can't open cursor file `wx/msw/hand.cur': No such file or directory > > There is no ressource directory file in the template. I should add a comment in main.cpp for example. This problem frequently appears with projects imported from VC++. >Get rid of it by setting the path to Dev-Cpp\include directory as a resource directory (Project->Project Options->Directories->Resource Directories) > >Hope this helps you. > >/Jörgen > > >*********** REPLY SEPARATOR *********** > >On 2003-02-02 at 23:22 sa...@li... wrote: > > > >>I've tried the template of wxWindows devpack in DevCpp 4.9.7.4 with gcc >>v2.95 and doesnt work. Also with gcc 3 the same. i've tried an old devcpp >>4.9.5.0 updated to 4.9.7.4 but it continues to warn about the debug.h >>header in the wx include folder. someone has make this template works? >>with an old version of the ide months ago i've compiled succefully but now >>i'm not able to do it again. Why there's such a beautiful feature like >>vUpdate and it's not updated to working devpacks? >> >> >> >>------------------------------------------------------- >>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 >> >> > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 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 > > > |
|
From: Ioannis V. <no...@ho...> - 2003-02-03 05:35:50
|
-------Original Message-------=0D =0D From: Daniel Glenfield=0D Date: =CA=F5=F1=E9=E1=EA=DE, 2 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 7:5= 1:28 =EC=EC=0D To: no...@ho...; dev...@li...=0D Subject: Re: [Dev-C++] Hoax=0D =0D What is this file for anyway? The teddy logo and filename make it appear suspicious from first appearances.=0D =0D =0D =3D=3D> MS Java Debugger something.=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |
|
From: <nmp...@ya...> - 2003-02-03 02:41:20
|
Hello to all people how reading these mail please .I
write a programm for Database management and i use
DevCpp the latest version .When i want to create a
dialog box for openingn a file i get a linker error
saying that Undefined reffernce to GetOpenFileName?
The sample code of my application is bellow.
Also i get an error that the struct for the printer
has unknown storage even i have set it with sizeof
please feel free to point out any solutions to my
problem :
LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM
wParam,LPARAM lParam){
switch(msg){
case WM_CREATE:{
HMENU hMenu,hSubMenu;
HICON hIcon,hIconSm;
hMenu = CreateMenu();
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Open,"&Open
Database");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Save,"&Save
Database");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_ReOpen,"&ReOpen
Database");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Print,"&Print
Results");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Exit,"&Exit
Application");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Database");
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Create,"&Create
New Table");
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Insert,"&Insert
New Data");
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Delete,"&Delete
Data from Table");
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Update,"&Update
Data in Table");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Table");
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_New,"&New
Query");
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_Show,"&Show
Query");
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_Sort,"&Short
Query");
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_History,"&History");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Query");
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_HELP_Help,"&Help");
AppendMenuA(hSubMenu,MF_STRING,ID_HELP_About,"&About");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Help");
SetMenu(hwnd,hMenu);
hIcon =
LoadImageA(NULL,"menu_two.ico",IMAGE_ICON,32,32,LR_LOADFROMFILE);
if(hIcon){
SendMessageA(hwnd,WM_SETICON,ICON_BIG,(LPARAM)hIcon);
}
else{
MessageBoxA(hwnd,"Couldn't load the
icon","Error",MB_OK | MB_ICONERROR);
}
hIconSm =
LoadImageA(NULL,"menu_two.ico",IMAGE_ICON,16,16,LR_LOADFROMFILE);
if(hIconSm){
SendMessageA(hwnd,WM_SETICON,ICON_SMALL,(LPARAM)hIconSm);
}
else{
MessageBoxA(hwnd,"Couln't load the icon","Error",MB_OK
| MB_ICONERROR);
}
}
break;
case WM_COMMAND:
switch(LOWORD(wParam)){
case
ID_DATABASE_Open:{
OPENFILENAME ofn;
char szFileName[MAX_PATH] = "";
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.lpstrFilter = "Text Files
(*.txt)\0*.txt\0All Files (*.*)\0*.*\0";
ofn.lpstrFile = szFileName;
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST
| OFN_HIDEREADONLY;
ofn.lpstrDefExt = "txt";
GetOpenFileNameA(&ofn);
if( GetOpenFileNameA(&ofn)){
}
break;
case
ID_DATABASE_Save:{
}
break;
case
ID_DATABASE_ReOpen:
break;
/*case
ID_DATABASE_Print:{
struct PRINTDLGA Printer;
Printer.lStructSize = sizeof(PRINTDLGA);
Printer.hwndOwner = hwnd;
Printer.hDevMode = NULL;
Printer.hDevNames = NULL;
Printer.hDC = NULL;
Printer.Flags = PD_ENABLESETUPTEMPLATE |
PD_ENABLESETUPTEMPLATEHANDLE | PD_NOWARNING |
PD_SELECTION | PD_SHOWHELP;
Printer.nToPage = NULL;
Printer.nMinPage = (UINT) 1;
Printer.nMaxPage = (UINT) 100;
Printer.nCopies = NULL;
Printer.hInstance = NULL;
Printer.lCustData = lParam;
Printer.lpfnPrintHook = NULL;
Printer.lpfnSetupHook = NULL;
PrintDlgA(&(Printer));
}
break;*/
case ID_DATABASE_Exit:
MessageBox(hwnd,"Exit N.M.FoxBase and save
changes to the database?","Information",MB_OK |
MB_ICONINFORMATION);
PostMessageA(hwnd,WM_CLOSE,lParam,wParam);
break;
}
break;
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return
DefWindowProc(hwnd,msg,wParam,lParam);
}
return 0;
}
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|
|
From: <nmp...@ya...> - 2003-02-03 02:38:34
|
Hello to all people how reading these mail please .I
write a programm for Database management and i use
DevCpp the latest version .When i want to create a
dialog box for openingn a file i get a linker error
saying that Undefined reffernce to GetOpenFileName?
The sample code of my application is bellow.please
feel free to point out any solutions to my problem :
LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM
wParam,LPARAM lParam){
switch(msg){
case WM_CREATE:{
HMENU hMenu,hSubMenu;
HICON hIcon,hIconSm;
hMenu = CreateMenu();
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Open,"&Open
Database");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Save,"&Save
Database");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_ReOpen,"&ReOpen
Database");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Print,"&Print
Results");
AppendMenuA(hSubMenu,MF_STRING,ID_DATABASE_Exit,"&Exit
Application");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Database");
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Create,"&Create
New Table");
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Insert,"&Insert
New Data");
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Delete,"&Delete
Data from Table");
AppendMenuA(hSubMenu,MF_STRING,ID_TABLE_Update,"&Update
Data in Table");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Table");
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_New,"&New
Query");
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_Show,"&Show
Query");
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_Sort,"&Short
Query");
AppendMenuA(hSubMenu,MF_STRING,ID_QUERY_History,"&History");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Query");
hSubMenu = CreatePopupMenu();
AppendMenuA(hSubMenu,MF_STRING,ID_HELP_Help,"&Help");
AppendMenuA(hSubMenu,MF_STRING,ID_HELP_About,"&About");
AppendMenuA(hMenu,MF_STRING |
MF_POPUP,(UINT)hSubMenu,"&Help");
SetMenu(hwnd,hMenu);
hIcon =
LoadImageA(NULL,"menu_two.ico",IMAGE_ICON,32,32,LR_LOADFROMFILE);
if(hIcon){
SendMessageA(hwnd,WM_SETICON,ICON_BIG,(LPARAM)hIcon);
}
else{
MessageBoxA(hwnd,"Couldn't load the
icon","Error",MB_OK | MB_ICONERROR);
}
hIconSm =
LoadImageA(NULL,"menu_two.ico",IMAGE_ICON,16,16,LR_LOADFROMFILE);
if(hIconSm){
SendMessageA(hwnd,WM_SETICON,ICON_SMALL,(LPARAM)hIconSm);
}
else{
MessageBoxA(hwnd,"Couln't load the icon","Error",MB_OK
| MB_ICONERROR);
}
}
break;
case WM_COMMAND:
switch(LOWORD(wParam)){
case
ID_DATABASE_Open:{
OPENFILENAME ofn;
char szFileName[MAX_PATH] = "";
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.lpstrFilter = "Text Files
(*.txt)\0*.txt\0All Files (*.*)\0*.*\0";
ofn.lpstrFile = szFileName;
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST
| OFN_HIDEREADONLY;
ofn.lpstrDefExt = "txt";
GetOpenFileNameA(&ofn);
if( GetOpenFileNameA(&ofn)){
}
break;
case
ID_DATABASE_Save:{
}
break;
case
ID_DATABASE_ReOpen:
break;
/*case
ID_DATABASE_Print:{
struct PRINTDLGA Printer;
Printer.lStructSize = sizeof(PRINTDLGA);
Printer.hwndOwner = hwnd;
Printer.hDevMode = NULL;
Printer.hDevNames = NULL;
Printer.hDC = NULL;
Printer.Flags = PD_ENABLESETUPTEMPLATE |
PD_ENABLESETUPTEMPLATEHANDLE | PD_NOWARNING |
PD_SELECTION | PD_SHOWHELP;
Printer.nToPage = NULL;
Printer.nMinPage = (UINT) 1;
Printer.nMaxPage = (UINT) 100;
Printer.nCopies = NULL;
Printer.hInstance = NULL;
Printer.lCustData = lParam;
Printer.lpfnPrintHook = NULL;
Printer.lpfnSetupHook = NULL;
PrintDlgA(&(Printer));
}
break;*/
case ID_DATABASE_Exit:
MessageBox(hwnd,"Exit N.M.FoxBase and save
changes to the database?","Information",MB_OK |
MB_ICONINFORMATION);
PostMessageA(hwnd,WM_CLOSE,lParam,wParam);
break;
}
break;
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
return
DefWindowProc(hwnd,msg,wParam,lParam);
}
return 0;
}
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|