Re: Why is this code working only in 32 bit?
Marnaud <[email protected]>
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <[email protected]> |
Le 3 août 2017 à 21:46 du soir, Christian Schmitz <[email protected]> a écrit: >> Hello, >> >> replyEvent.Long(0)=theEvent.ReplyPtr >> replyEvent=replyEvent.Ptr(0) > > Ptr size in 64-bit is 64-bit, so this won’t work well! That’s somehow what I thought. No way to force it to be a 32 bit Ptr? > In general I would recommend using some high level API like NSAppleEvent* classes. > > e.g. via MBS Plugin: > http://www.monkeybreadsoftware.net/pluginpart-nsapplescript.shtml > > The plugins should work fine for 64-bit. I have a lot of functions that send AppleEvents, and a function that gets the returned error code. I don’t want to rewrite all the functions that work fine. Can I use NSAppleEvent classes from an existing, passed as parameter, AppleEvent? Thank you. To unsubscribe, email [email protected]