CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    15

    Thumbs up calling methods of already loaded C# Exe from VC++ dll

    Hi,

    How do I call the functions of C# Exe which is already there in the memory ( meaning alaredy loaded ).
    from VC++ dll

    Urgent work please help me.

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: calling methods of already loaded C# Exe from VC++ dll

    I'm pretty sure you can't.

    You'll have to devise a protocol so that other applications can talk to your C# application. Then implement using something like TCP/IP.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  3. #3
    Join Date
    Dec 2003
    Location
    Montreal
    Posts
    58

    Re: calling methods of already loaded C# Exe from VC++ dll

    Quote Originally Posted by Suyambu2002
    How do I call the functions of C# Exe which is already there in the memory ( meaning alaredy loaded ).
    from VC++ dll
    From your question I assume you are developing this VC++ DLL, in which case you will need to use the managed VC++ extensions to talk to C# using reflection.

    I suggest you read the migration_guide.doc in your VC++ Directory (e.g. C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7).

    All .NET assemblies can talk to each other regardless of the language they were written in (within the limits imposed by CLR and MSIL).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured