1 | #define INCL_WIN
|
---|
2 |
|
---|
3 | #include <os2.h>
|
---|
4 | #include <stdio.h>
|
---|
5 |
|
---|
6 | void errorResource(void);
|
---|
7 |
|
---|
8 | void errorResource()
|
---|
9 | {
|
---|
10 |
|
---|
11 | WinMessageBox(HWND_DESKTOP,0,
|
---|
12 | "The resource DLL which contains all the dialogs, graphics and messages cannot be loaded. \
|
---|
13 | Please check your installation. There must be a file CDFLDxxx.DLL in the installation directory of the \
|
---|
14 | CD-Creator package. xxx is the country code of your system e.g. 049 for Germany. If there is no \
|
---|
15 | support for your language there must be at least the file CDFLD001.DLL. The CD creation features \
|
---|
16 | are not avaiable!",
|
---|
17 | "Problem with Audio/Data-CD-Creator installation",12345,
|
---|
18 | MB_OK|MB_MOVEABLE|MB_ERROR);
|
---|
19 |
|
---|
20 | }
|
---|
21 |
|
---|
22 | ULONG 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 |
|
---|
38 | void 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 |
|
---|
45 | void pmUsage()
|
---|
46 | {
|
---|
47 | WinMessageBox(HWND_DESKTOP,0,
|
---|
48 | "This helper shouldn't be started by hand. It is called by the CD-Creator classes. \
|
---|
49 | If 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 |
|
---|