On Oct 25, 2006, at 3:16 AM, Michael Gerbes wrote:

I have the same problem and I'm not quite sure, what to do.

Should I delete all the QT calls ? (Unfortunately I need all of them...)

Or isolate them with #if target 's, like this ?
  #if TargetMachO then
declare function SetMediaTimeScale Lib "QuickTime" (media as integer, timescale as integer) as integer
  #elseif TargetX86 then
declare function SetMediaTimeScale Lib "QuickTime" (media as integer, timescale as integer) as integer
  #endif

Is QuickTime the correct Lib Name for TargetX86 ?

I'm trying to compile my project to a UB. Thanks for your answers.

Targetx86 MachO uses the same framework as TargetPPC MachO, which is located in the same place on both systems. There is no need to isolate the calls, nor is there any need for the "Soft" declare. I would recommend the following:

(1) Create a global constant, name it QuickTimeLib (name can be anything really; this is just what I use; notice, NO quotes on QuickTimeLib)

(2) To the constant add targets for everything you care about (which could be everything except Linux)

Mac Mach-O : /System/Library/Frameworks/QuickTime.framework/QuickTime
Mac Carbon PEF : Apple;Carbon;Multimedia
Windows : qtmlClient.dll
Mac Classic : QuickTimeLib

(3) Use one declare and have it work on all platforms. :-)

Declare Function SetMediaTimeScale Lib QuickTimeLib (media and integer, timescale as integer) as integer

(again, notice, NO quotes on QuickTimeLib)

HTH,
Erick
_______________________________________________
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