Click here to Skip to main content
16,009,343 members
Home / Discussions / COM
   

COM

 
QuestionHow to expose objects of my application as OLE Pin
Cmania9-Jan-07 19:08
Cmania9-Jan-07 19:08 
AnswerRe: How to expose objects of my application as OLE Pin
CPallini10-Jan-07 21:11
mveCPallini10-Jan-07 21:11 
QuestionCOM/ACTIVE X/OLE Pin
Cmania9-Jan-07 18:51
Cmania9-Jan-07 18:51 
AnswerRe: COM/ACTIVE X/OLE Pin
CPallini10-Jan-07 20:20
mveCPallini10-Jan-07 20:20 
AnswerRe: COM/ACTIVE X/OLE Pin
User 21559711-Jan-07 0:08
User 21559711-Jan-07 0:08 
QuestionVARIANT_BOOL return value in Automation class Pin
User 2155979-Jan-07 5:07
User 2155979-Jan-07 5:07 
AnswerRe: VARIANT_BOOL return value in Automation class Pin
Roger Stoltz9-Jan-07 5:45
Roger Stoltz9-Jan-07 5:45 
QuestionRe: VARIANT_BOOL return value in Automation class [modified] Pin
User 2155979-Jan-07 5:52
User 2155979-Jan-07 5:52 
Thanks for your answer.

Roger Stoltz wrote:
Do you explicitly use the VARIANT_BOOL type in the .IDL file as well?
Anyway, you should if you're not.

Yes, I am explicitly using VARIANT_BOOL and not any other boolean type since I read about VARIANT_BOOL usage. FYI, the app i am working on is an old app and has an ODL file and not IDL. MIDL config uses "/mktyplib203" - MKTypLib compatible option.


Roger Stoltz wrote:
It could be a mixup between the use of boolean which is defined as an unsigned char and BOOL which is defined as a long for MIDL.


I doubt about the mixup because all method and interface and wrapper classes decalarations were generated using MFC wizard and has no modifications

Roger Stoltz wrote:
You need to delete the wizard generated files when you change the interface and run the wizard again.


Yes, I deleted and re-generated everytime.


-- modified at 13:02 Tuesday 9th January, 2007

Further information - the return value "pvarResult" changes to (True, VT_BOOL) after this call (MFC source, File: oledisp2.cpp, Line# 373) -
// make the call<br />
SCODE sc = m_lpDispatch->Invoke(dwDispID, IID_NULL, 0, wFlags,<br />
		&dispparams, pvarResult, &excepInfo, &nArgErr);

Though, now I have hard coded the return value in the function to return VARIANT_FALSE everytime!


S o h a i l K a d i w a l a

To Err Is Human; to Debug, Divine


modified 21-Apr-21 21:01pm.

AnswerRe: VARIANT_BOOL return value in Automation class Pin
Roger Stoltz9-Jan-07 21:18
Roger Stoltz9-Jan-07 21:18 
QuestionRe: VARIANT_BOOL return value in Automation class Pin
User 21559710-Jan-07 0:26
User 21559710-Jan-07 0:26 
AnswerRe: VARIANT_BOOL return value in Automation class Pin
Roger Stoltz10-Jan-07 2:42
Roger Stoltz10-Jan-07 2:42 
GeneralRe: VARIANT_BOOL return value in Automation class Pin
User 21559711-Jan-07 0:03
User 21559711-Jan-07 0:03 
GeneralRe: VARIANT_BOOL return value in Automation class Pin
Roger Stoltz11-Jan-07 0:46
Roger Stoltz11-Jan-07 0:46 
GeneralRe: VARIANT_BOOL return value in Automation class [modified] Pin
User 21559711-Jan-07 5:03
User 21559711-Jan-07 5:03 
AnswerRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
User 21559711-Jan-07 6:07
User 21559711-Jan-07 6:07 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
Roger Stoltz11-Jan-07 22:45
Roger Stoltz11-Jan-07 22:45 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
User 21559712-Jan-07 0:50
User 21559712-Jan-07 0:50 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
Roger Stoltz12-Jan-07 1:50
Roger Stoltz12-Jan-07 1:50 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
User 21559712-Jan-07 4:11
User 21559712-Jan-07 4:11 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
Roger Stoltz12-Jan-07 4:40
Roger Stoltz12-Jan-07 4:40 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
User 21559712-Jan-07 5:24
User 21559712-Jan-07 5:24 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
Roger Stoltz12-Jan-07 5:37
Roger Stoltz12-Jan-07 5:37 
GeneralRe: [SOLVED] VARIANT_BOOL return value in Automation class Pin
User 21559714-Jan-07 7:50
User 21559714-Jan-07 7:50 
QuestionCOM and windows service application ... Pin
Sakthiu9-Jan-07 0:31
Sakthiu9-Jan-07 0:31 
QuestionHow can get information from web page ? Pin
ankprasanna9-Jan-07 0:22
ankprasanna9-Jan-07 0: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.