Click here to Skip to main content
15,924,193 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Visual Studio 2005 step into does not work Pin
Christian Graus12-Apr-07 13:45
protectorChristian Graus12-Apr-07 13:45 
AnswerRe: Visual Studio 2005 step into does not work Pin
User 58385212-Apr-07 14:12
User 58385212-Apr-07 14:12 
Questiondoubt Pin
Sebastian T Xavier11-Apr-07 20:25
Sebastian T Xavier11-Apr-07 20:25 
AnswerRe: doubt Pin
Nish Nishant12-Apr-07 4:11
sitebuilderNish Nishant12-Apr-07 4:11 
GeneralRe: doubt Pin
George L. Jackson12-Apr-07 9:26
George L. Jackson12-Apr-07 9:26 
AnswerRe: doubt Pin
sthotakura12-Apr-07 13:13
sthotakura12-Apr-07 13:13 
GeneralRe: doubt Pin
Sebastian T Xavier12-Apr-07 20:36
Sebastian T Xavier12-Apr-07 20:36 
QuestionUnmanaged/Managed C++ bridge help? Pin
David Knechtges10-Apr-07 7:21
David Knechtges10-Apr-07 7:21 
I have written a DLL in C# that I need to call from regular old C code. I have written a managed C++ bridge that successfully calls it from a test unmanaged C++ app.

My C application is able to call the C# DLL through the managed C++ bridge DLL if I use LoadLibrary and GetProcAddress. However, when I change the C application to use static linking of the C++ bridge DLL the C application then crashes before it even gets to the first line of WinMain.

The C++ bridge DLL has a managed class declared globally as:

ref class GlobalObjects {
GlobalObjects()
{
}
public:
static MyCsharpClass ^CsharpClass = gcnew MyCsharpClass();
};

The exported functions from the DLL all refer to the CsharpClass object.

I need to keep the CsharpClass object around permanently, so this is why I declared it as static.

Any ideas?

Thanks,

David

AnswerRe: Unmanaged/Managed C++ bridge help? Pin
led mike10-Apr-07 7:37
led mike10-Apr-07 7:37 
GeneralRe: Unmanaged/Managed C++ bridge help? Pin
David Knechtges10-Apr-07 7:43
David Knechtges10-Apr-07 7:43 
GeneralRe: Unmanaged/Managed C++ bridge help? Pin
led mike10-Apr-07 8:50
led mike10-Apr-07 8:50 
QuestionSocket Programming Help Pin
himuskanhere9-Apr-07 18:45
himuskanhere9-Apr-07 18:45 
AnswerRe: Socket Programming Help Pin
morzetta9-Apr-07 22:05
morzetta9-Apr-07 22:05 
AnswerRe: Socket Programming Help Pin
led mike10-Apr-07 4:35
led mike10-Apr-07 4:35 
QuestionHelp Pin
El'Cachubrey9-Apr-07 1:31
El'Cachubrey9-Apr-07 1:31 
AnswerRe: Help Pin
Nish Nishant9-Apr-07 3:22
sitebuilderNish Nishant9-Apr-07 3:22 
GeneralRe: Help Pin
El'Cachubrey9-Apr-07 21:49
El'Cachubrey9-Apr-07 21:49 
QuestionC++ connection Pin
p_8-Apr-07 20:04
p_8-Apr-07 20:04 
AnswerRe: C++ connection Pin
Jun Du9-Apr-07 3:00
Jun Du9-Apr-07 3:00 
QuestionIs delete useful ? Pin
aljodav8-Apr-07 18:43
aljodav8-Apr-07 18:43 
AnswerRe: Is delete useful ? Pin
Nish Nishant9-Apr-07 3:20
sitebuilderNish Nishant9-Apr-07 3:20 
GeneralRe: Is delete useful ? Pin
aljodav9-Apr-07 18:34
aljodav9-Apr-07 18:34 
QuestionCould please anybody help me with writing a simple program Pin
Khodadad Pakdamans8-Apr-07 8:28
Khodadad Pakdamans8-Apr-07 8:28 
AnswerRe: Could please anybody help me with writing a simple program Pin
Nish Nishant8-Apr-07 13:02
sitebuilderNish Nishant8-Apr-07 13:02 
GeneralRe: Could please anybody help me with writing a simple program Pin
Khodadad Pakdamans8-Apr-07 20:04
Khodadad Pakdamans8-Apr-07 20:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.