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

    exporting Library functions to some Apps

    In VS MFC DLL, for exporting functions with arguments returning values, etc., which is the most compatible in general?, Includes exporting to some other C/C++ Apps using different IDEs, .Net, etc.?.
    __declspec(dllexport) void __cdecl Function1(int &val); // return val
    __declspec(dllexport) void __cdecl Function1(int *val); // return val
    Last edited by @EE@; July 7th, 2021 at 06:43 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: exporting Library functions to some Apps

    I never did/needed it, so can only guess.
    Have a look at https://www.py4u.net/discuss/758045
    Victor Nijegorodov

  3. #3
    Join Date
    Aug 2019
    Posts
    72

    Re: exporting Library functions to some Apps

    How about if DLL is exporting functions with such arguments, going to be used in all other non .Nets?. like in C++ non VS IDEs, etc. Apps. Pass by reference arguments works better or pass by pointer?. like to add to my own real experiences.

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