Different method of accessing ATL COM
Posted on 2004-09-14
If you want to use ATL COM in your client application ( VC++ ) Then you can use it through following 2 methods:
1. "Import 'path of dll' "
2. "include .h and i.c files" right .
there is method with following signature in ATL COM.
GetUserName(out,retval BSTR )
In my client application code will look like this
BSTR bstrUserName= ptrToComServer->GetUserName();
I think till now everything is clear.
Problem is that If I use Import dll (method one) then I can use above line
in case of Include files( method 2 ) I can't use all those methods with above signature.
If my question is not clear pls do tell me so that I can provide some more details.
Can you tell me why I am unable to use [ out,retval ] in case of method 2.