Hello

This is a discussion on Hello within the C# Programming forums, part of the General Programming Boards category; hello, I need to create a function for managed dll in c++, the function should return an array of structs. ...

  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21