Re: Managed c++ DLL call from C#

From: TheGurr (gurra_green.nospam_at_hotmail.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 10:22:15 +0100


"Ola Sprauten" <osprauten@osiris.no_NO_SPAM> wrote in message
news:OSNYS13#DHA.2432@TK2MSFTNGP09.phx.gbl...
> The reason Intellisense finds it, is that nonmanaged c++ classes are all
> public by default. Where as a managed c++ class in by default private(or
> protected), so in you above example you need to add public before the
__gc.

Aaaaah! That did the trick! Thank you!

Strange that this is not mentioned in any of the "how to wrap your C++
code"-tutorials I've seen on the net (and I've done some surfing&searching).
Or I've been blind.

>
> You have to write a managed wrapper, I am pretty sure of that. Just have
to
> remember that manged c++ needs access modifiers(public, private and
> protected)
>
> Since all articles I've read have all said that you have to wrap unmanaged
> c++, I'd stick to that. There are probably some implications that I do not
> know of.

Exactly, better do it the safe way since that seems to be the general
advice. Will do some more experiments with calling code right away though
and see what happens.



Relevant Pages

  • Re: Windows Pfadnamen mit Leerstelle
    ... Also den Pfad quoten? ... Der Trick ist diese besondere Syntax von system: ... Aaaaah, okay, verstanden, ich hab auf die falsche Zeile gesehen. ...
    (de.comp.lang.perl.misc)
  • Re: Adele Marcus: her only CD
    ... You mean as opposed to a dastardly attempt to trick the public? ... You seem so forgiving all of a sudden. ... How strange? ... C'est la vie, ...
    (rec.music.classical.recordings)
  • Re: Techniques to Pass
    ... little trick that helps alot of people pass is to tape a penny to their ... Am strange in this group!.In February 2008 I expect to seat for MSCE. ... For those who has passed this may you give a trick or technique so dat i ...
    (microsoft.public.cert.exam.mcse)
  • Re: PPPoE configuration
    ... I just chatted with my colleague and it looks like CHAP really did the trick. ... Strange, I would have expected a different error message and not such an early failure. ...
    (comp.dcom.sys.cisco)
  • Re: Why does Windows Explorer try to dial up?
    ... >done the trick. ... Strange thing is, the problem of Windows Explorer ... >dialing up by itself only appeared a few days ago, ...
    (microsoft.public.security)