Re: Why is this code working only in 32 bit?
"emile.a.schwarz" <[email protected]>
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <1357927730.3394.1501838705273.JavaMail.www@wwinf1k19> |
Is Carbon 64Bits ? > Message du 04/08/17 10:58 > De : "Marnaud" > A : "Nug" > Copie à : > Objet : Re: Why is this code working only in 32 bit? > > Le 3 août 2017 à 21:46 du soir, Christian Schmitz 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] > > To unsubscribe, email [email protected]