Skip to content

File Mapping

Filip Rosco

Asked Jun 13, 2008, 4:21 PM EDT1 answer
Share
LinkedInX
Hello Everyone
I am trying to create a Shared Memory between applications written in C and VB.NET. Interface variables are defined in "SharedMemory.h" file. C-application is accessing the memory  via pointer to the structure which holds the data. I want to include this header into my VB.net application and create shared memory using data type defined in the header. Now couple of questions: is shared memory possible between C and VB.NET applications, if yes give me please a hint how to do that? Is that possible to include a .h file into VB.net application?

Thanks a lot for any help,

Filip

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Bechir Bejaoui
    0
    The way that I only know to import unmanaged code is:

    include the
    System.Interop.Services;

    [DllImport("The name of dll ")]
    public static extrern  TheMethodName(Parameters)


    0