468,766 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,766 developers. It's quick & easy.

static library wrapping problem

Hi,

I am getting quite frustrated while trying to wrap a C++ static library
using managed C++ to a dll.

Here are what I tried
first, try to wrap it is a normal dll with some functions. seems everything
ok.

second, tried to wrap it use VS2003->C++ .NET dll project, implement the
same functions, disabled the precompiled header. Cannot compile.

third, for project created in the first step, I set Use Managed Extensions
as yes and recompile. Recompiled and the new dll can be referenced by my C#
test code.

I use same headers for both projects. The difference is some standard
library automatically generated with .NET dll project and extra using
namespace System statement, which comes with the project. (remove this using
statement still generate compiling error).

Can someone tell me the difference between 2 and 3 to generate a managed C++
dll project?

I tried to play with project settings in approach 2, not successful, until I
give up and go with method 3.

Thanks

Chris
Jul 25 '07 #1
0 971

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Roy Smith | last post: by
14 posts views Thread by Jeroen | last post: by
reply views Thread by abarun22 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.