On Oct 14, 2006, at 11:54 AM, Joe Huber wrote:

Is there a clever way to call a Declare that expects one of its parameters to be a a pointer to an OSType, and wind up with the resulting OSType in either a string or an integer?

void GetMediaHandlerDescription (
   Media     theMedia,
   OSType    *mediaType,
   Str255    creatorName,
   OSType    *creatorManufacturer );

Or do I have to pass it a memory block and handle everything myself?

I'm converting a PPC app to UB and the OSType now winds up in the memory block in little endian order. Seems like there ought to be a straight forward way to get an OSType back directly.

An OSType is a 32 bit integer
Pass an integer byref

Not sure if they are always big endian

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to