Click here to Skip to main content
15,896,522 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Where can I find WTL reference? Pin
palbano23-Jun-04 5:30
palbano23-Jun-04 5:30 
AnswerRe: Where can I find WTL reference? Pin
Michael Dunn23-Jun-04 14:16
sitebuilderMichael Dunn23-Jun-04 14:16 
GeneralRe: Can't get C++ ATL example to work...help? Pin
*Dreamz23-Jun-04 5:03
*Dreamz23-Jun-04 5:03 
GeneralDebugging CoTaskMemAlloc Pin
LasVegasGuy22-Jun-04 10:10
LasVegasGuy22-Jun-04 10:10 
GeneralRe: Debugging CoTaskMemAlloc Pin
Michael Dunn23-Jun-04 14:03
sitebuilderMichael Dunn23-Jun-04 14:03 
Generalvariably multidimensional arrays Pin
mickelliot22-Jun-04 6:43
mickelliot22-Jun-04 6:43 
GeneralRe: variably multidimensional arrays Pin
valikac22-Jun-04 19:12
valikac22-Jun-04 19:12 
GeneralCan't seem to compile a SAFEARRAY member for my interface Pin
Todd Jeffreys21-Jun-04 9:25
Todd Jeffreys21-Jun-04 9:25 
I am creating a COM interface to some library I have and I am trying to make an Initialize function that takes as it argument a SAFEARRAY of BSTR's.

I am using VS .NET 2000 and the ATL wizard. I added an object and am manually adding the entry for the function since SAFEARRAY is not an option for the auto-add member wizard. Here is what I have so far:

<br />
__interface IiidApplication : IDispatch<br />
{<br />
  [id(1),helpstring("method Initialize")] HRESULT Initialize([in] SAFEARRAY(BSTR) *par); <br />
}<br />


Then later I have the function defined as STDMETHOD(Initialize)(LPSAFEARRAY pvar);

The IDL will not compile however. I get errors on the Initialize line complaining about an extra ) and missing ) and ; before *. If I remove the (BSTR) and just leave it as SAFEARRAY *par, it will not link because it complains about not knowing the size of the array or similar.

All the MS doc's seem to have the format as SAFEARRAY(your datatype) but it doesn't seem to be working for me. Any suggestions?
GeneralRe: Can't seem to compile a SAFEARRAY member for my interface Pin
pain21-Jun-04 15:02
pain21-Jun-04 15:02 
Generalsatype attribute Pin
Vi230-Jun-04 0:13
Vi230-Jun-04 0:13 
GeneralRe: Can't seem to compile a SAFEARRAY member for my interface Pin
vprashu1-Jul-04 9:17
vprashu1-Jul-04 9:17 
Generalwhy toolbar flicker when resizing Pin
lysh_top21-Jun-04 3:57
lysh_top21-Jun-04 3:57 
GeneralRe: why toolbar flicker when resizing Pin
ThatsAlok29-Oct-04 21:38
ThatsAlok29-Oct-04 21:38 
GeneralType library without coclass Pin
pain21-Jun-04 0:33
pain21-Jun-04 0:33 
GeneralRe: Type library without coclass Pin
darkbyte27-Jun-04 4:51
darkbyte27-Jun-04 4:51 
GeneralRe: Type library without coclass Pin
pain27-Jun-04 19:45
pain27-Jun-04 19:45 
GeneralRe: Type library without coclass Pin
vprashu1-Jul-04 9:21
vprashu1-Jul-04 9:21 
Questionhow to find dll for active x control cab Pin
Anonymous19-Jun-04 3:21
Anonymous19-Jun-04 3:21 
AnswerRe: how to find dll for active x control cab Pin
Anonymous19-Jun-04 4:49
Anonymous19-Jun-04 4:49 
Generalgetting http post data Pin
smrani18-Jun-04 23:41
smrani18-Jun-04 23:41 
Generalattributed atl implementing multiple interfaces Pin
Chris Korzeniowski18-Jun-04 7:10
Chris Korzeniowski18-Jun-04 7:10 
GeneralRe: attributed atl implementing multiple interfaces Pin
Chris Korzeniowski18-Jun-04 9:12
Chris Korzeniowski18-Jun-04 9:12 
GeneralRe: attributed atl implementing multiple interfaces Pin
Michael Dunn18-Jun-04 10:10
sitebuilderMichael Dunn18-Jun-04 10:10 
GeneralRe: attributed atl implementing multiple interfaces Pin
Chris Korzeniowski19-Jun-04 14:38
Chris Korzeniowski19-Jun-04 14:38 
GeneralRe: attributed atl implementing multiple interfaces Pin
Michael Dunn20-Jun-04 12:21
sitebuilderMichael Dunn20-Jun-04 12:21 

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.