Click here to Skip to main content
15,899,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I remove a function in ATL ? Pin
Tim Smith15-Sep-01 13:34
Tim Smith15-Sep-01 13:34 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 13:39
protectorChristian Graus15-Sep-01 13:39 
GeneralRe: How do I remove a function in ATL ? Pin
Tim Smith15-Sep-01 13:46
Tim Smith15-Sep-01 13:46 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 14:23
protectorChristian Graus15-Sep-01 14:23 
GeneralRe: How do I remove a function in ATL ? Pin
Tim Smith16-Sep-01 1:27
Tim Smith16-Sep-01 1:27 
AnswerRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:18
Derek Waters16-Sep-01 14:18 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:23
protectorChristian Graus16-Sep-01 14:23 
GeneralRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:30
Derek Waters16-Sep-01 14:30 
Yeah, the IDL is contained in the <interface name="">.dil file in your interface definition. Having a quick look at the example project I was using, the only line I would have removed from the <interface name="">.h file was:

STDMETHOD(ExecuteDml)(/*[in]*/ VARIANT avCommand, /*[out]*/ VARIANT *apvResponse);


and also the corresponding implementation in <interface name="">.cpp. I think that's about it. You will, though, have to make sure that the MIDL compiler regenerates the main project .h file which contains the stubs that wrap around the COM calls. If you've screwed around with this file, I'd try deleting it, modifying your IDL so the MIDL compiler fires off again and regenerating.

The id numbers in the IDL specify the function offsets in the COM object. These definitely have to be sequentially increasing. Any missing or mis-ordered numbers cause things to go very askew (as I've found out from experience).



------------------------
Derek Waters
derek@lj-oz.com
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:43
protectorChristian Graus16-Sep-01 14:43 
GeneralRe: How do I remove a function in ATL ? Pin
Derek Waters16-Sep-01 14:45
Derek Waters16-Sep-01 14:45 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus16-Sep-01 14:56
protectorChristian Graus16-Sep-01 14:56 
AnswerRe: How do I remove a function in ATL ? Pin
asfas16-Sep-01 23:33
asfas16-Sep-01 23:33 
GeneralScrolling CEdit Pin
Jake Palmer15-Sep-01 11:57
Jake Palmer15-Sep-01 11:57 
GeneralRe: Scrolling CEdit Pin
Paolo Messina15-Sep-01 12:47
professionalPaolo Messina15-Sep-01 12:47 
GeneralCDialog are real time log Pin
15-Sep-01 11:29
suss15-Sep-01 11:29 
GeneralRe: CDialog are real time log Pin
Paolo Messina15-Sep-01 12:58
professionalPaolo Messina15-Sep-01 12:58 
GeneralIEEE 754 to string Pin
Erik Hammar15-Sep-01 10:50
Erik Hammar15-Sep-01 10:50 
GeneralRe: IEEE 754 to string Pin
Anders Molin15-Sep-01 13:22
professionalAnders Molin15-Sep-01 13:22 
GeneralOffice 2000 Style Report Control Pin
Giles15-Sep-01 8:42
Giles15-Sep-01 8:42 
GeneralDeveloping an NT Service with MFC Pin
mantrashrim14-Sep-01 14:01
mantrashrim14-Sep-01 14:01 
GeneralRe: Developing an NT Service with MFC Pin
Tim Deveaux14-Sep-01 14:14
Tim Deveaux14-Sep-01 14:14 
GeneralRe: Developing an NT Service with MFC Pin
Giles15-Sep-01 8:29
Giles15-Sep-01 8:29 
GeneralRe: Developing an NT Service with MFC Pin
Anders Molin15-Sep-01 9:01
professionalAnders Molin15-Sep-01 9:01 
GeneralRe: Developing an NT Service with MFC Pin
Giles16-Sep-01 11:45
Giles16-Sep-01 11:45 
GeneralRe: Developing an NT Service with MFC Pin
User 988515-Sep-01 11:50
User 988515-Sep-01 11:50 

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.