Re: how to use .dylib with typelibs under Excel mac - how to build under Xcode ?
Re: how to use .dylib with typelibs under Excel mac - how to build under Xcode ?
- Subject: Re: how to use .dylib with typelibs under Excel mac - how to build under Xcode ?
- From: Chris Espinosa <email@hidden>
- Date: Tue, 28 Jun 2005 15:55:36 -0700
Thanks for your prompt reply,
To answer to the porting issue. I did not just rename the windows .dll file. I rebuild it from the c++ source code and I replaced system winapi calls with carbon framework calls. I tested this with a c++ test program, it works fine.
But I have difficulties to call it from Excel vba. I had a look at the declare statement in the vba for Excel help, they are telling, that you can call a shared library. So I tried with a libxxx.dylib and xxx.dll for the names. I will also try xxx.bundles. I do not think this will solve the issue.
I had a look at the "solver library" that comes with excel. It consists of a solver library.tlb and a "solver library". The file name has no extension. When I opened the file with a text editor the first bytes were JOY!PEF so I thought this is a MachO PEF file format.
So far I tried a build style static, bundle and dynamic, but never the compiled library had the first bytes like JOY!PEF. Do you know to what XCode template and library style this corresponds ?
JOY!PEF is the signature of a CFM PEF file. Xcode can't generate this shared library format, but CodeWarrior 9.5 can. Unless/until Microsoft supports Mach-O based plugins you may need to use CodeWarrior to create them.
If the .tlb is actually structured and invoked as an CFBundle or CFPlugin (using the CoreFoundation APIs) then you can use either PEF or Mach-O executables. The "anatomy of a bundle" document describes how to structure such a bundle:
You would probably use the "Loadable Bundle" target type in Xcode to create this (if that's what Excel/VBA supports).
Again, there is no substitute for getting the specific instructions from Microsoft on how to create Excel VBA plugins for Mac OS X.
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden