Share via

How to see COM function return value

Bhabesh Patel 6 Reputation points
2021-07-12T17:10:13.163+00:00

I have created a COM project and generated tli file for the same,now i am using api of the project in different machine by importing the tli file.I want to see the return value of all the functions(COM),but in tli file return value is not present and I have only tli file of that project.

Windows development | Windows API - Win32
0 comments No comments

2 answers

Sort by: Most helpful
  1. Bhabesh Patel 6 Reputation points
    2021-07-13T03:37:57.763+00:00

    Let's say I am using any COM function fun(),how I will get all the details of that function as I will not have the cpp file.

    Was this answer helpful?

    1 person found this answer helpful.

  2. Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
    2021-07-13T02:21:46.333+00:00

    According to The Answer Of The SO Question, You need to split implementation and declaration by using the "no_implementation" and "implementation_only" parameters to #import. These generate .tlh (type library header) and .tli (type library implementation) files.

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.