471,090 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,090 software developers and data experts.

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 1018

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.