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

    Can I export Com function?

    Hi,
    I have created a project with some classes and frequently used functions.
    Can I export these functions in my custom class to create a lib?
    I did it like this but got an error

    Code:
     class __declspec(dllexport) Range : public ComPtrT<Excel::RangePtr>
    	  {
    }
    Name:  app.jpg
Views: 275
Size:  13.8 KB

    How to fix this error?
    Thanks you!
    Last edited by Dang.D.Khanh; July 9th, 2021 at 03:32 PM.

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

    Re: Can I export Com function?

    You have to create a COM dll to export COM functions.
    Victor Nijegorodov

  3. #3
    Join Date
    Jun 2021
    Posts
    51

    Re: Can I export Com function?

    Quote Originally Posted by VictorN View Post
    You have to create a COM dll to export COM functions.
    Thanks Sir.
    I will investigate further on your suggestion .

Tags for this Thread

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