I am using the following code to get my application version.
I get compile errors because 'uaecptr' is undeclared. What header
is required? I can't find uaecptr anywhere. Also, where is verRsc
declared and what are other values for this parameter? I assume
that strH is a VoidHandle type and appVersion is a char ptr type.
This brings up another question that I will post in another post.
But it would be nice if all there was some documentation somewhere
that listed all functions and what header files are required. I'm
using a Window Help file that does not have that info. Maybe there is
some documentation somewhere that I am missing. I do not use Code
Warrior.
static void GetAppVersion(void) {
// Get the version from the 'tver' resource, using ID's 1 and 1000
VoidHand strH;
char * appVersion;
strH = DmGet1Resource (verRsc, VersionID);
if (strH) {
uaecptr strP = (uaecptr) MemHandleLock (strH);
uae_strcpy (appVersion, strP);
MemHandleUnlock (strH);
DmReleaseResource (strH);
}
}
--
-----------------------------------------------------------------
Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------