source: trunk/mediafolder/c/cddb/message.c@ 127

Last change on this file since 127 was 127, checked in by gyoung, 22 months ago

Changes to build pmcddb.exe with VAC 3.08. This builds but doesn't run no error returned

File size: 1.8 KB
Line 
1#define INCL_WIN
2
3#include <os2.h>
4#include <stdio.h>
5
6void errorResource(void);
7
8void errorResource()
9{
10
11 WinMessageBox(HWND_DESKTOP,0,
12 "The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \
13Please check your installation. There must be a file CDFLDxxx.DLL in the installation directory of the \
14CD-Creator package. xxx is the country code of your system e.g. 049 for Germany. If there is no \
15support for your language there must be at least the file CDFLD001.DLL. The CD creation features \
16are not avaiable!",
17"Problem with Audio/Data-CD-Creator installation",12345,
18 MB_OK|MB_MOVEABLE|MB_ERROR);
19
20}
21
22ULONG messageBox( char* text, ULONG ulTextID , LONG lSizeText,
23 char* title, ULONG ulTitleID, LONG lSizeTitle,
24 HMODULE hResource, HWND hwnd, ULONG ulFlags)
25{
26
27 if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulTextID,lSizeText,text)) {
28 errorResource();
29 return MBID_ERROR;
30 }
31 if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulTitleID,lSizeTitle,title)) {
32 errorResource();
33 return MBID_ERROR;
34 }
35 return WinMessageBox( hwnd, hwnd, text, title, 0UL, ulFlags );
36}
37
38void getMessage(char* text,ULONG ulID, LONG lSizeText, HMODULE hResource,HWND hwnd)
39{
40 if(!WinLoadString(WinQueryAnchorBlock(hwnd),hResource,ulID,lSizeText,text)) {
41 sprintf(text,"");
42 }
43}
44
45void pmUsage()
46{
47 WinMessageBox(HWND_DESKTOP,0,
48 "This helper shouldn't be started by hand. It is called by the CD-Creator classes. \
49If you didn't launch the helper by hand you may have found a bug. Please contact the author.",
50 "Problem with Audio/Data-CD-Creator",12345,
51 MB_OK|MB_MOVEABLE|MB_ERROR);
52
53}
54
Note: See TracBrowser for help on using the repository browser.