Re: DLL Troubles
From: Tommy Vercetti (vercetti953_at_hotmail.com)
Date: 02/24/05
- Previous message: Jan de Vaan: "RE: I am so frusterated with how slow MSVC is"
- In reply to: Tom Andrecht: "DLL Troubles"
- Next in thread: Troy: "Re: DLL Troubles"
- Reply: Troy: "Re: DLL Troubles"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 24 Feb 2005 15:33:40 -0600
Short answer: Managed C++ DLLs don't work yet (as of Visual Studio 2003).
You probably don't believe this but, really, it's true.
Apparently, some people have done this but you have to:
1) Not link in any Managed libraries including the standard .NET
runtime which is basically impossible
2) Not link in any unmanaged libraries uncluding the standard C/C++
ryntime which is also basically impossible.
3) Deal with all kinds of bizarre errors since no static/global
variables work correctly. Even those used internally by unmanaged
libraries (including the runtime).
Visual Studio 2005 hopefully will have a better solution.
Tom Andrecht wrote:
> I'm trying to write two managed C++ .DLL files for use in a project, and am
> running into some trouble that I'm not sure if it's something I'm doing
> wrong (this is my first time trying this) or if it's something VS .NET 2k3
> is doing to me. My problems are this:
>
> 1. The projects will not find standard functions like strcpy and new.
> doesn't seem to even know what they are despite my having added the header
> files for everything plus.
>
> 2. When I try to use these in my main project file (built in C#), it tells
> me that my classes in the DLL's do not exist in my namespace and asks if I'm
> missing an assembly reference. I know I have them referenced in the project
> file, and the build order is such that both are compiled at the appropriate
> times to ensure (theoretically) that everything that is depended on gets
> compiled first, and in the case of my C# DLL projects, everything works
> fine. Any ideas from anyone? Thanks
>
> Tom
>
>
- Previous message: Jan de Vaan: "RE: I am so frusterated with how slow MSVC is"
- In reply to: Tom Andrecht: "DLL Troubles"
- Next in thread: Troy: "Re: DLL Troubles"
- Reply: Troy: "Re: DLL Troubles"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|