Thread: Hello

  1. #1
    Registered User khdani's Avatar
    Join Date
    Oct 2007
    Posts
    42

    Hello

    hello,
    I need to create a function for managed dll in c++, the function should
    return an array of structs. what would be the proper declaration ?
    thank you

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    If you mean C++/CLI, then (if I recall correctly):
    Code:
    System::Array<MyStruct> MyFunc();
    If you mean C# (since you're posting in a C# forum):
    Code:
    public MyStruct[] MyFunc();
    If you mean a managed call from unamanged C++ you're out of luck.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User khdani's Avatar
    Join Date
    Oct 2007
    Posts
    42
    thanks

Popular pages Recent additions subscribe to a feed