Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVC ++ desktop service based on SOAP Pin
ashutosh_tripathi15-Mar-05 3:15
ashutosh_tripathi15-Mar-05 3:15 
GeneralCDHtmlDialog problem Pin
ewanb15-Mar-05 2:34
ewanb15-Mar-05 2:34 
GeneralRe: CDHtmlDialog problem Pin
Blake Miller15-Mar-05 12:51
Blake Miller15-Mar-05 12:51 
GeneralRe: CDHtmlDialog problem Pin
ewanb16-Mar-05 2:05
ewanb16-Mar-05 2:05 
GeneralRe: CDHtmlDialog problem Pin
Blake Miller16-Mar-05 11:35
Blake Miller16-Mar-05 11:35 
GeneralRe: CDHtmlDialog problem Pin
Ed K6-Sep-05 10:28
Ed K6-Sep-05 10:28 
GeneralDirect X & DVD Pin
AJ12315-Mar-05 2:23
AJ12315-Mar-05 2:23 
GeneralCOM Events: reference values Pin
peterchen15-Mar-05 1:48
peterchen15-Mar-05 1:48 
Hi,
I'm trying to fire an even from an C++ ActiveX that has a "by reference" parameter:

dispinterface _IMyEvents
[id(4)] void ButtonClicked(IMyProperty * prop, [in, out, ref] VARIANT_BOOL * bDataChanged);


However, the Fire_Event proxy code generated by the wizard complains about the byref value:

pvars[0] = bDataChanged;  // pvars[0] is a CComVariant

it's just a warning (short * truncated to bool), but it clearly indicates it doesn#t work as intended (CComVariant does not support reference values).

So - anything I can do?
The only alternatives I see are:
- write the fire_xxx wrapper myself (yuck!!!)
- provide a COM object with a "SetModified" flag instead (seems overkill)
- hack CComVariant into accepting a VARIANT_BOOL * as BYREF value (yuck yuck)


(The mechanism I need is similar to IPropertyNotifySink, but I want to support VB clients, so I can't work with S_OK / S_FALSE return value)


Pandoras Gift #44: Hope. The one that keeps you on suffering.
aber.. "Wie gesagt, der Scheiss is' Therapie"
boost your code || Fold With Us! || sighist | doxygen

GeneralBSTR TO STRING Pin
sunit515-Mar-05 1:45
sunit515-Mar-05 1:45 
GeneralRe: BSTR TO STRING Pin
ThatsAlok15-Mar-05 2:14
ThatsAlok15-Mar-05 2:14 
GeneralRe: BSTR TO STRING Pin
sunit515-Mar-05 2:41
sunit515-Mar-05 2:41 
GeneralRe: BSTR TO STRING Pin
ThatsAlok15-Mar-05 2:59
ThatsAlok15-Mar-05 2:59 
GeneralRe: BSTR TO STRING Pin
Ravi Bhavnani15-Mar-05 3:34
professionalRavi Bhavnani15-Mar-05 3:34 
GeneralRe: BSTR TO STRING Pin
includeh1015-Mar-05 8:25
includeh1015-Mar-05 8:25 
GeneralProblem in Copying a data / image to a ClipBoard Pin
zahid_ash15-Mar-05 1:44
zahid_ash15-Mar-05 1:44 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
David Crow15-Mar-05 2:33
David Crow15-Mar-05 2:33 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
zahid_ash15-Mar-05 2:49
zahid_ash15-Mar-05 2:49 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
David Crow15-Mar-05 2:58
David Crow15-Mar-05 2:58 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
zahid_ash15-Mar-05 3:06
zahid_ash15-Mar-05 3:06 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
David Crow15-Mar-05 3:29
David Crow15-Mar-05 3:29 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
zahid_ash15-Mar-05 18:28
zahid_ash15-Mar-05 18:28 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
David Crow16-Mar-05 2:47
David Crow16-Mar-05 2:47 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
zahid_ash16-Mar-05 2:57
zahid_ash16-Mar-05 2:57 
GeneralRe: Problem in Copying a data / image to a ClipBoard Pin
David Crow16-Mar-05 3:44
David Crow16-Mar-05 3:44 
GeneralRemoving Tool Settings Pin
Franz Klein15-Mar-05 1:02
Franz Klein15-Mar-05 1:02 

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.