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

Managed C++/CLI

 
Generalaccessing from/writing to an outside file Pin
tiptep16-Jul-05 18:08
tiptep16-Jul-05 18:08 
GeneralRe: accessing from/writing to an outside file Pin
Saksida Bojan18-Jul-05 4:39
Saksida Bojan18-Jul-05 4:39 
GeneralSolution: Invalid ResX when using ImageList (resgen.exe error) Pin
darkzangel15-Jul-05 14:42
darkzangel15-Jul-05 14:42 
GeneralVisual C++ Different Icons for Release and Debug Pin
14-Jul-05 22:17
suss14-Jul-05 22:17 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
Neelesh K J Jain16-Jul-05 8:59
Neelesh K J Jain16-Jul-05 8:59 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
20-Jul-05 17:20
suss20-Jul-05 17:20 
GeneralRe: Visual C++ Different Icons for Release and Debug Pin
Neelesh K J Jain20-Jul-05 19:31
Neelesh K J Jain20-Jul-05 19:31 
Generalgcroot constructor crash Pin
Xen3h14-Jul-05 9:51
Xen3h14-Jul-05 9:51 
Hey there!

I'm writing a DLL as a plugin for an unmanaged piece of software, the DLL exports a struct with basic information such as name etc. There is no problem with this, it works well, other than a couple of compiler warnings that I wont go into just yet.

In my plugin, I want to use a managed class (__gc). I declare it as global like this:

<code>gcroot<COmg __gc*> Omg;</code>

Here is the class definition:

<code>public __gc class COmg
{
public:

COmg( void ) {}
~COmg( void ) {}
};</code>

This still compiles and loads fine, until I try and use my gcroot'ed class:

<code>Omg = new COmg;</code>

It dies at this line, as far as I know im linking with the .NET framework fine, because everything compiles and runs, and i've done similar projects to this in the past. I tried calling this in try/catch braces but it doesn't help.

I'd appreciate any help! Thanks.

P.S. Here are the compiler warnings that may be contributing to this?

<code>MSVCRT.lib(checkclr.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
MSVCRT.lib(secchk.obj) : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators
Core.obj : warning LNK4210: .CRT section exists; there may be unhandled static initializers or terminators</code>
General.net dialog boxes Pin
istrasci14-Jul-05 7:45
istrasci14-Jul-05 7:45 
GeneralRe: .net dialog boxes Pin
Christian Graus14-Jul-05 11:15
protectorChristian Graus14-Jul-05 11:15 
QuestionHow to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger13-Jul-05 7:41
Florian Albrechtskirchinger13-Jul-05 7:41 
AnswerRe: How to prevent a delegate from relocating on the CLR heap Pin
Sheng Jiang 蒋晟15-Jul-05 18:17
Sheng Jiang 蒋晟15-Jul-05 18:17 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 5:14
Florian Albrechtskirchinger16-Jul-05 5:14 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Sheng Jiang 蒋晟16-Jul-05 5:54
Sheng Jiang 蒋晟16-Jul-05 5:54 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 8:01
Florian Albrechtskirchinger16-Jul-05 8:01 
GeneralRe: How to prevent a delegate from relocating on the CLR heap Pin
Florian Albrechtskirchinger16-Jul-05 22:51
Florian Albrechtskirchinger16-Jul-05 22:51 
GeneralMultible Instances. Pin
Saksida Bojan13-Jul-05 4:11
Saksida Bojan13-Jul-05 4:11 
GeneralRe: Multible Instances. Pin
toxcct13-Jul-05 5:57
toxcct13-Jul-05 5:57 
GeneralRe: Multible Instances. Pin
Tom Archer13-Jul-05 10:14
Tom Archer13-Jul-05 10:14 
GeneralDetect if .NET Framework is installed Pin
Saksida Bojan13-Jul-05 4:09
Saksida Bojan13-Jul-05 4:09 
GeneralRe: Detect if .NET Framework is installed Pin
Christian Graus13-Jul-05 12:37
protectorChristian Graus13-Jul-05 12:37 
GeneralRe: Detect if .NET Framework is installed Pin
Saksida Bojan14-Jul-05 0:14
Saksida Bojan14-Jul-05 0:14 
GeneralRe: Detect if .NET Framework is installed Pin
Christian Graus14-Jul-05 11:07
protectorChristian Graus14-Jul-05 11:07 
GeneralRe: Detect if .NET Framework is installed Pin
Saksida Bojan14-Jul-05 19:10
Saksida Bojan14-Jul-05 19:10 
GeneralRe: Detect if .NET Framework is installed Pin
Nish Nishant18-Jul-05 1:19
sitebuilderNish Nishant18-Jul-05 1:19 

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.