Jens Thiel's IDL example

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jens Thiel's IDL example

Zhuang, Deming
Hi:

After reading the posts from this group yesterday, I tried Jens Thiel's step-by-step instructions on using libXLL to build excel add-in. However, I ran into a problem with the code in xlw\config.msvc.h. The errors messages are attached. I am wondering if any of you have seen this before and have any idea how to fix it.

thanks very much for your time.

Deming

--------------------Configuration: myExample - Win32 Debug--------------------
Creating Type Library...
Processing D:\libXLL\myExample\myExample.idl
myExample.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\objidl.idl
objidl.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\wtypes.idl
wtypes.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ocidl.idl
ocidl.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oleidl.idl
oleidl.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\servprov.idl
servprov.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
msxml.idl
Compiling...
myExample.cpp
d:\program files\xlw\xlw\config.msvc.h(36) : fatal error C1189: #error :  Set 'Debug Multithreaded DLL' under C/C++ | Code Generation
Error executing cl.exe.

myExample.dll - 1 error(s), 0 warning(s)



Reply | Threaded
Open this post in threaded view
|

Re: Jens Thiel's IDL example

Ferdinando M. Ametrano-2
At 10:08 AM 2/6/2003 -0500, Zhuang, Deming wrote:
>After reading the posts from this group yesterday, I tried Jens Thiel's
>step-by-step instructions on using libXLL to build excel add-in. However,
>I ran into a problem with the code in xlw\config.msvc.h.
mmm .... you mention libXLL and then you have a problem with
xlw\config.msvc.h that seems to be a file from the xlw project .... maybe
I'm missing something, but it doesn't make sense to me.

>  The errors messages are attached. I am wondering if any of you have seen
> this before and have any idea how to fix it.
>[...]
>Compiling...
>myExample.cpp
>d:\program files\xlw\xlw\config.msvc.h(36) : fatal error C1189: #error
>:  Set 'Debug Multithreaded DLL' under C/C++ | Code Generation
Oh well, when I wrote that code I hoped the message would have been clear
enough: you should set 'Debug Multithreaded DLL' in project settings under
the C/C++ | Code Generation tab

Not sure I got everything right, but it's worth a try. Hope it helps


------------
ciao -- Nando



Reply | Threaded
Open this post in threaded view
|

AW: Jens Thiel's IDL example

Jens Thiel
In reply to this post by Zhuang, Deming
Hi Deming,

> d:\program files\xlw\xlw\config.msvc.h(36) : fatal error C1189:
> #error :  Set 'Debug Multithreaded DLL' under C/C++ | Code Generation

this really doesn't belong here, but you were trapped by Nando's liking ;-)
for "Multithreaded DLL" setting. Either you comment out the #ifdef queries
in config.msvc.h, or you change your project settings to "[Debug|Release]
Multithreaded DLL". The difference is in how MSVC builds the final DLL:

"Multithreaded DLL" tells the linker to use the shared DLLs; this means that
you you have to deploy them to the users with your add-in. This setting
allows multiple programs to share some code if they use exaclty the same
DLLs in the same locations.

"Multithreded" alone means that the MSVC library code is compiled into your
add-in, and you can use it without shipping any additional DLLs. The add-in
will be slightly larger though.

You can see the difference if you look at the shared library dependencies of
the resulting DLL.

Follow-ups to the xlw mailing list or private, please.


Jens.


> -----Ursprüngliche Nachricht-----
> Von: [hidden email]
> [mailto:[hidden email]]Im Auftrag von
> Zhuang, Deming
> Gesendet: Donnerstag, 6. Februar 2003 16:08
> An: [hidden email]
> Betreff: [Quantlib-users] Jens Thiel's IDL example
>
>
> Hi:
>
> After reading the posts from this group yesterday, I tried Jens
> Thiel's step-by-step instructions on using libXLL to build excel
> add-in. However, I ran into a problem with the code in
> xlw\config.msvc.h. The errors messages are attached. I am
> wondering if any of you have seen this before and have any idea
> how to fix it.
>
> thanks very much for your time.
>
> Deming
>
> --------------------Configuration: myExample - Win32
> Debug--------------------
> Creating Type Library...
> Processing D:\libXLL\myExample\myExample.idl
> myExample.idl
> Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\oaidl.idl
> oaidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\objidl.idl
> objidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\unknwn.idl
> unknwn.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\wtypes.idl
> wtypes.idl
> Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ocidl.idl
> ocidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\oleidl.idl
> oleidl.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\servprov.idl
> servprov.idl
> Processing d:\Program Files\Microsoft Visual
> Studio\VC98\INCLUDE\urlmon.idl
> urlmon.idl
> Processing d:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\msxml.idl
> msxml.idl
> Compiling...
> myExample.cpp
> d:\program files\xlw\xlw\config.msvc.h(36) : fatal error C1189:
> #error :  Set 'Debug Multithreaded DLL' under C/C++ | Code Generation
> Error executing cl.exe.
>
> myExample.dll - 1 error(s), 0 warning(s)
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Quantlib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>
>