Managed C++ Wrapper for DLL 
Author Message
 Managed C++ Wrapper for DLL

I have a regular DLL that in Beta 2 I created a Managed C++ wrapper so I
could get to it from C#.  I am migrating from Beta 2 to the release Visual
Studio .NET, but am having a problem.  I can still compile the wrapper, but
when I include it in my C# web project, it gives me an error on adding
assemblies (at run time) that says "The dll routine failed for file 'XXXX'".
I haven't changed anything in the code since Beta 2, so I assume something
has changed in the way I need to set up the wrapper.

One thing of note is that I can compile the C++ managed app as a console
application, and it runs fine, i can access the DLL without problem.  I
wonder if it is a path problem, and when run under the web server, it can't
find the DLL it is wrapping, even though it's in the System32 directory.
Although in Beta 2 having it in System32 seemed to be sufficient (since its
in the system path).

If anybody has tried to migrate their wrapper classes to RTM I'd appreciate
hearing about it..

FYI, I have one more wrapper class that doesn't seem to have the same

Mark E. Scott Jr.

Mon, 19 Jul 2004 05:55:48 GMT  
 [ 1 post ] 

 Relevant Pages 

1. managed C++ wrapper around unmanaged C++ classes: causing StackOverflow exception

2. Managed C++ wrappers for unmanaged C++ classes

3. Unmanaged Application with Managed Wrapper Dll won't run on Windows XP

4. Interface of Managed C++ wrappers

5. Referencing data from unmanaged code to managed code in C++ Wrapper class

6. Managed C++ Wrapper

7. Managed C++ "wrapper classes" deployment problem

8. Tutorial wanted for using a managed C++ class wrapper

9. Creating a managed C++ class wrapper

10. Extended MAPI in c++ managed code wrapper

11. using Managed dlls from Managed C++

12. How to call managed C++ DLL from unmanaged C++ EXE


Powered by phpBB® Forum Software