Click here to Skip to main content
15,906,106 members
Home / Discussions / COM
   

COM

 
AnswerRe: com and threading models,and a question about dlls? Pin
Nathan Holt at EMOM18-Sep-07 7:52
Nathan Holt at EMOM18-Sep-07 7:52 
QuestionCOM List over Network Pin
Fatbuddha 117-Sep-07 21:22
Fatbuddha 117-Sep-07 21:22 
Questionusing void ** in Interface Pin
tictactoer17-Sep-07 3:26
tictactoer17-Sep-07 3:26 
AnswerRe: using void ** in Interface Pin
Nathan Holt at EMOM17-Sep-07 9:59
Nathan Holt at EMOM17-Sep-07 9:59 
GeneralRe: using void ** in Interface Pin
tictactoer19-Sep-07 0:00
tictactoer19-Sep-07 0:00 
GeneralRe: using void ** in Interface Pin
Nathan Holt at EMOM19-Sep-07 11:22
Nathan Holt at EMOM19-Sep-07 11:22 
QuestionProblem in adding a new function in existing Interface Pin
Ravikr0716-Sep-07 22:57
Ravikr0716-Sep-07 22:57 
AnswerRe: Problem in adding a new function in existing Interface Pin
Nathan Holt at EMOM17-Sep-07 10:07
Nathan Holt at EMOM17-Sep-07 10:07 
Slumberger wrote:
I have dll which exposes 3-4 Interfaces(COM) . In one of the Interfaces I have added a new function say foo. I have modified the .odl file (for type library) , the .hpp file (which has the composition of the interface) and the .cpp file (for the definition of the function). I am able to build my dll and its working fine if I replace the new dll and .tlb file in the installation. But its not recognizing the new function when I am calling that function from a VB application. The old function( pre existing) are working properly. My new function takes 1 parameter. When I try to pass 2 parameters to this from the VB App the IDE tells that the function prototype doen't allow 2 parameters. This means the VB App is able to recognize the function (new one) 's prototype but it doesn't do the work the function is suppose to do. The control is not at all going to the new function.
It gives an telling the new function is an "Invalid Callee" (when I make a proper call with 1 parameter).
The registry entries are made when the product is installed. So I am not able to modify the registry entry for this particulat Interface. I am a beginner in COM and automation.


I think that what you're supposed to do here is create a new interface with the extra function. If you are implementing the object in C++, you can make the new interface a subclass of the old one, and make QueryInterface return the appropriate interface for both IIDs. Then to acces the new method in VB6, you will want to specify the new interface as the object type. If you are implementing the object in Visual Basic 6, things get more dificult.

Nathan
GeneralRe: Problem in adding a new function in existing Interface Pin
Ravikr0717-Sep-07 10:25
Ravikr0717-Sep-07 10:25 
GeneralRe: Problem in adding a new function in existing Interface Pin
Nathan Holt at EMOM17-Sep-07 11:08
Nathan Holt at EMOM17-Sep-07 11:08 
GeneralRe: Problem in adding a new function in existing Interface Pin
Ravikr0717-Sep-07 19:37
Ravikr0717-Sep-07 19:37 
GeneralRe: Problem in adding a new function in existing Interface Pin
Nathan Holt at EMOM18-Sep-07 7:24
Nathan Holt at EMOM18-Sep-07 7:24 
GeneralRe: Problem in adding a new function in existing Interface Pin
paresh_joe26-Sep-07 2:50
paresh_joe26-Sep-07 2:50 
QuestionGetting a ('support_error_info' : attribute not found) error Pin
monsieur_jj16-Sep-07 21:15
monsieur_jj16-Sep-07 21:15 
AnswerRe: Getting a ('support_error_info' : attribute not found) error Pin
Nathan Holt at EMOM17-Sep-07 10:13
Nathan Holt at EMOM17-Sep-07 10:13 
QuestionAxtiveX, this pointer [modified] Pin
m1m216-Sep-07 10:38
m1m216-Sep-07 10:38 
QuestionCan i use a dll in an activeX component? Pin
just3ala215-Sep-07 10:04
just3ala215-Sep-07 10:04 
AnswerRe: Can i use a dll in an activeX component? Pin
Nathan Holt at EMOM17-Sep-07 10:17
Nathan Holt at EMOM17-Sep-07 10:17 
GeneralRe: Can i use a dll in an activeX component? Pin
just3ala217-Sep-07 12:26
just3ala217-Sep-07 12:26 
QuestionDifference between .idl and .h file? Pin
Ash2014-Sep-07 0:23
Ash2014-Sep-07 0:23 
AnswerRe: Difference between .idl and .h file? Pin
Hubert Mayer14-Sep-07 4:58
Hubert Mayer14-Sep-07 4:58 
QuestionBeginner In COM facing problem Pin
GauranG Shah13-Sep-07 23:21
GauranG Shah13-Sep-07 23:21 
AnswerRe: Beginner In COM facing problem Pin
DevMentor.org16-Sep-07 22:34
DevMentor.org16-Sep-07 22:34 
QuestionFrom where to Start......... ??? Pin
GauranG Shah13-Sep-07 2:36
GauranG Shah13-Sep-07 2:36 
AnswerRe: From where to Start......... ??? Pin
Michael Dunn13-Sep-07 10:08
sitebuilderMichael Dunn13-Sep-07 10:08 

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.