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: email@hidden
- Date: Tue, 28 Jun 2005 23:52:13 +0200
Jürgen Jäger
Mob. +33625081663
mail: email@hidden
Tommy Nordgren <email@hidden> wrote
on 06/28/2005 08:33:22 PM:
> Some applications expect their plugins to use the suffix .bundle for
> their shared library plugins.
> (Not to be confused with .bundle Directories)
>
>
> Jun 28, 2005 kl. 7:47 PM skrev Chris Espinosa:
>
> >
> > On Jun 28, 2005, at 7:37 AM, email@hidden wrote:
> >
> >> I have set up some tool in C++ under Windows that I have
ported to
> >> Mac OS
> >> X.
> >>
> >> I have problems to use the code under Excel 11.1.1 .
> >>
> >> Under windows I created xxx.dll and xxx.tlb. I used the reference
> >> menu to
> >> integrate these type libraries into vba.
> >>
> >> Under Mac I created libxxx.dylib files and tried to reuse
the xxx.tlb
> >> compiled under windows.
> >>
> >> The compile is OK, but when I run the vba, the error xxx.dll
not
> >> found is
> >> raised.
> >>
> >> What should I do?
> >>
> >> I tried rename libxxx.dylib to xxx.dll under Mac.
> >>
> >> Is there a mktyplib.exe for Mac ?
> >>
> >> Thanks in advance for your help
> >
> > .dll and .exe file types are not supported in Mac OS X and cannot
> > be built with Xcode. You probably cannot reuse executable
files
> > from a different operating system (.tlb) on Mac OS X. Changing
the
> > suffix of a .dll file to be .dylib does not change its contents
or
> > internal format; it's like taking a text file written in French
and
> > claiming it's now Russian. It doesn't translate it.
> >
> > Depending on what you are trying to do, you probably need to
start
> > with the Microsoft developer documentation for creating 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:
> > 40chello.se
> >
> > This email sent to email@hidden
>
>
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 ?
_______________________________________________
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