Click here to Skip to main content
15,889,383 members
Home / Discussions / COM
   

COM

 
GeneralFileSystemObject in VB doesn't work when the COM object is called from C# Pin
RickardB11-Jan-04 16:47
RickardB11-Jan-04 16:47 
GeneralRecommend some Good book on COM Pin
Omar Alvi10-Jan-04 5:55
Omar Alvi10-Jan-04 5:55 
GeneralRe: Recommend some Good book on COM Pin
Stefan Pedersen10-Jan-04 6:30
Stefan Pedersen10-Jan-04 6:30 
GeneralRe: Recommend some Good book on COM Pin
Steve Schaneville15-Jan-04 19:06
professionalSteve Schaneville15-Jan-04 19:06 
GeneralRe: Recommend some Good book on COM Pin
valikac12-Jan-04 7:09
valikac12-Jan-04 7:09 
GeneralRe: Recommend some Good book on COM Pin
Juan Miguel Venturello21-Jan-04 4:18
Juan Miguel Venturello21-Jan-04 4:18 
GeneralHelp please ...COM client Pin
Omar Alvi9-Jan-04 8:04
Omar Alvi9-Jan-04 8:04 
GeneralRe: Help please ...COM client Pin
Michael P Butler9-Jan-04 8:15
Michael P Butler9-Jan-04 8:15 
Omar Alvi wrote:
well my server implemets IClassFactory and my custom interface IAdd which adds two numbers.... but my client is not working , i debuged the application
and found that pAdd after the CoCreateInstance is NULL ..... and that is the problem how to correct it ?????


CoCreateInstance will return you an error number as an HRESULT, what error number do you get This will help you track down the problem.


Omar Alvi wrote:
Secondly i dont understand one concept, Once i have made the server and it registers itself automatically. How should my client know the CLSID, u must have seen this at the top of main() :

If you use

#import "mycom.dll" named_guids

then the guids will automatically be imported. If you are using #import you might want to use the smartpointers rather than using CoCreateInstance. You can also use __uuidof(IAdd) to get the UUID too.



Michael

But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you?
- "The Stranger," Billy Joel
GeneralRe: Help please ...COM client Pin
Omar Alvi9-Jan-04 9:47
Omar Alvi9-Jan-04 9:47 
GeneralRe: Help please ...COM client Pin
Michael P Butler9-Jan-04 10:25
Michael P Butler9-Jan-04 10:25 
GeneralRe: Help please ...COM client Pin
Omar Alvi9-Jan-04 10:47
Omar Alvi9-Jan-04 10:47 
GeneralRe: Help please ...COM client Pin
Jörgen Sigvardsson9-Jan-04 11:14
Jörgen Sigvardsson9-Jan-04 11:14 
GeneralRe: Help please ...COM client Pin
Jörgen Sigvardsson9-Jan-04 11:13
Jörgen Sigvardsson9-Jan-04 11:13 
GeneralDCOM Pin
rajusnair9-Jan-04 4:50
rajusnair9-Jan-04 4:50 
GeneralMemory Leakage. Pin
JigarThakkar8-Jan-04 22:49
JigarThakkar8-Jan-04 22:49 
GeneralRe: Memory Leakage. Pin
Jörgen Sigvardsson9-Jan-04 9:41
Jörgen Sigvardsson9-Jan-04 9:41 
GeneralCOM client in VB Pin
Member 8040808-Jan-04 18:24
Member 8040808-Jan-04 18:24 
GeneralRe: COM client in VB Pin
Jörgen Sigvardsson9-Jan-04 9:50
Jörgen Sigvardsson9-Jan-04 9:50 
QuestionC++ unable to access COM object, but VB can? Pin
Nathan Brown8-Jan-04 11:27
Nathan Brown8-Jan-04 11:27 
AnswerRe: C++ unable to access COM object, but VB can? Pin
Vi28-Jan-04 21:24
Vi28-Jan-04 21:24 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Nathan Brown9-Jan-04 13:12
Nathan Brown9-Jan-04 13:12 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Vi211-Jan-04 21:02
Vi211-Jan-04 21:02 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Nathan Brown27-Jan-04 13:37
Nathan Brown27-Jan-04 13:37 
AnswerRe: C++ unable to access COM object, but VB can? Pin
Jörgen Sigvardsson9-Jan-04 9:57
Jörgen Sigvardsson9-Jan-04 9:57 
GeneralRe: C++ unable to access COM object, but VB can? Pin
Nathan Brown9-Jan-04 13:22
Nathan Brown9-Jan-04 13:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.