GSDH and API10

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-06-22
11:51 PM
- last edited on
2023-08-07
11:09 AM
by
Doreena Deng
2006-06-22
11:51 PM
Just tried the API for AC10 and I was extremely surprised, that it seems the GRC compiler now does not compile 'GSDH' resource.
If I have correctly understood, instead of it was introduced 'DLGH'. I do not understand why it was impossible to keep 'GSDH' for compatibility.
It is now a lot of work and difficulties, especially at localization
May be I have missing something.
Well, then may be somebody knows any trick, how now possible to have single grc file compatible for 9 and 10 API ?
May be GRC compiler has some preprocessing features something like "if/endif" or like "define" ?
Or may be somebody know - will resources compiled by old GRC compiler from API 6.1 compatible with new DG module of API 10 ?
If I have correctly understood, instead of it was introduced 'DLGH'. I do not understand why it was impossible to keep 'GSDH' for compatibility.
It is now a lot of work and difficulties, especially at localization

May be I have missing something.
Well, then may be somebody knows any trick, how now possible to have single grc file compatible for 9 and 10 API ?
May be GRC compiler has some preprocessing features something like "if/endif" or like "define" ?
Or may be somebody know - will resources compiled by old GRC compiler from API 6.1 compatible with new DG module of API 10 ?
Labels:
- Labels:
-
Add-On (C++)
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-07-03 06:36 PM
2006-07-03
06:36 PM
Oleg wrote:
May be GRC compiler has some preprocessing features
something like "if/endif" or like "define" ?
Yes, GRC allows #defines like this for example:
#if defined (DOPALETTE) 'GDLG' 32500 Palette | noCaption 0 0 300 200 "About" { #else 'GDLG' 32500 Modal | noCaption 0 0 300 200 "About" { #endif
Of course you need to supply the defines to ResConv like this:
-d DOPALETTE
Oleg wrote:
Or may be somebody know - will resources compiled by old GRC compiler from API 6.1 compatible with new DG module of API 10 ?
Nope, the two resource files are completely incompatible. Sorry.
Andras.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2006-07-03 08:14 PM
2006-07-03
08:14 PM
Thank for the answer and the help. I tried #if, but I have not guessed to define it in the command line of ResConv.
It is not a perfect solution for the 'GSDH', but anyway mach better than nothing.
Thank again.
It is not a perfect solution for the 'GSDH', but anyway mach better than nothing.
Thank again.