Click here to Skip to main content
15,912,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do I remove a function in ATL ? Pin
Anders Molin15-Sep-01 13:26
professionalAnders Molin15-Sep-01 13:26 
GeneralRe: How do I remove a function in ATL ? Pin
Christian Graus15-Sep-01 13:27
protectorChristian Graus15-Sep-01 13:27 
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 
Hi Christian,

Sorry if this sounds like a really stupid question, but do you mean exported COM methods? Have you deleted them from the IDL and renumbered all of your IDL functions? For example:

[id(1), helpstring("method ExecuteSql")] HRESULT ExecuteSql([in] VARIANT avCommand, [out] VARIANT *apvResponse);
[id(2), helpstring("method ExecuteDml")] HRESULT ExecuteDml([in] VARIANT avCommand, [out] VARIANT *apvResponse);
[id(3), helpstring("method GetStatus")] HRESULT GetStatus([out] long *aplStatus);


Then, trying to delete ExecuteDML, you would need:

[id(1), helpstring("method ExecuteSql")] HRESULT ExecuteSql([in] VARIANT avCommand, [out] VARIANT *apvResponse);
[id(2), helpstring("method GetStatus")] HRESULT GetStatus([out] long *aplStatus);


remembering to renumber the method to 2. All of this is in addition to removing the functions from the .h and .cpp files associated with the IDL.

Again, sorry if this seems obvious, but my experience has always shown that it's the obvious things you miss... Hope this helps.

------------------------
Derek Waters
derek@lj-oz.com
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 
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 

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.