Click here to Skip to main content
15,897,968 members
Home / Discussions / COM
   

COM

 
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 
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 
Slumberger wrote:
Nathan thanks for your response. But my dll is part of an existing product. Over the years according to new requirements new functions have been added to existing Interfaces. From the change history I did the same changes for a new function but got the error.


By adding a new interface, I don't mean remove the old one. The idea is to not break existing clients. It's interesting that you were able to get away with this sort of thing before. (Perhaps I misunderstand what you were doing.) However, I know from experience that VB6 is not reliable about handling changes. I've often had trouble getting VB to use new objects and interfaces instead of old ones.


Slumberger wrote:
MSDN says that Interfaces are immutable, but we can modify them if version of ur dll doenst change.


Do you mean the server dll, or the client dll? It's certainly not too bad if existing client dlls don't need to be changed, but VB6 is particularly bad about adapting to these changes. The main danger of modifying an interface that way is that someone might try to run a new client dll with an older server, in which the first sign that something is wrong could be when the nonexistant function is called, (and possibly not even then).


Slumberger wrote:
I wrote an MFC COM server(an exe) which registers it self when invoked. I was able to add new functions to existing Interface.


I'd expect things to work better with a .exe because of the self registering behavior. Dlls are a bit harder in that it's easy to miss registering them, and Tlbs are even worse, since it's so difficult to register them. VB6 can register a type library provided that the type library isn't already registered. This could have something to do with your problem.

Nathan
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 
GeneralRe: From where to Start......... ??? Pin
GauranG Shah13-Sep-07 20:23
GauranG Shah13-Sep-07 20:23 
GeneralRe: From where to Start......... ??? Pin
Michael Dunn13-Sep-07 22:15
sitebuilderMichael Dunn13-Sep-07 22:15 

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.