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

C / C++ / MFC

 
GeneralRe: how to capture the ouput of console and rediect to a window. Pin
maxdavid13-Feb-04 15:06
maxdavid13-Feb-04 15:06 
GeneralRe: how to capture the ouput of console and rediect to a window. Pin
Michael Dunn13-Feb-04 19:29
sitebuilderMichael Dunn13-Feb-04 19:29 
GeneralCView OnDraw Pin
Frank Deo13-Feb-04 13:34
Frank Deo13-Feb-04 13:34 
GeneralRe: CView OnDraw Pin
cadinfo13-Feb-04 14:35
cadinfo13-Feb-04 14:35 
GeneralRe: CView OnDraw Pin
Frank Deo13-Feb-04 14:43
Frank Deo13-Feb-04 14:43 
GeneralGet mouse coordinates Pin
alex.barylski13-Feb-04 12:25
alex.barylski13-Feb-04 12:25 
GeneralRe: Get mouse coordinates Pin
Jörgen Sigvardsson13-Feb-04 13:21
Jörgen Sigvardsson13-Feb-04 13:21 
GeneralQuick Question Pin
Nick Parker13-Feb-04 11:13
protectorNick Parker13-Feb-04 11:13 
Ok, I am stumped here. I have an ActiveX COM dll written in VB6 that is returning an array of doubles. I am using the Class Wizard to import the typelib. so I can call a series of methods one of which returns array of doubles. The class wizard writes out both the .h and .cpp files for me, however it comments out the one method that is returning the array doubles saying:

// method 'GetNum' not emitted because of invalid return type or parameter type


I found a kb article telling me to use the ITypeLib viewer so I can manually write the method into the header and cpp files. This is where I am stuck. The ITypeLib viewer shows the method as such:

[id(0x60030004)]<br />
HRESULT GetNum([out, retval] SAFEARRAY(double)* );


Any help for writing the guts to make the InvokeHelper call would be much appreciated.

This is what I was initially trying:

SAFEARRAY* _Moses::GetNum()
{
	SAFEARRAY* result;
	InvokeHelper(0x60030004, DISPATCH_METHOD, VT_R8, (void*)&result, NULL);
	return result;
}

TIA.

- Nick Parker
  My Blog

GeneralRe: Quick Question Pin
Monty214-Feb-04 0:16
Monty214-Feb-04 0:16 
GeneralReadProcessMemory Pin
__Cerb13-Feb-04 10:10
__Cerb13-Feb-04 10:10 
GeneralListbox Frustration Pin
C++NewBe13-Feb-04 9:53
C++NewBe13-Feb-04 9:53 
GeneralRe: Listbox Frustration Pin
alex.barylski13-Feb-04 10:02
alex.barylski13-Feb-04 10:02 
General64-bit compatibility Pin
Freon13-Feb-04 9:48
Freon13-Feb-04 9:48 
GeneralCannot attach debugger to a remote process Pin
Anonymous13-Feb-04 9:13
Anonymous13-Feb-04 9:13 
QuestionHow do I know if I have MAPI installed for Lotus Notes mail client? Pin
ElizabethC13-Feb-04 9:10
ElizabethC13-Feb-04 9:10 
GeneralNeed help sending email out from MFC application using Lotus Notes mail server Pin
ElizabethC13-Feb-04 8:44
ElizabethC13-Feb-04 8:44 
GeneralRe: Need help sending email out from MFC application using Lotus Notes mail server Pin
valikac14-Feb-04 5:34
valikac14-Feb-04 5:34 
GeneralDial-up Networking &amp; Dialing Rules Pin
Russell Morris13-Feb-04 8:16
Russell Morris13-Feb-04 8:16 
GeneralRe: Dial-up Networking &amp; Dialing Rules Pin
valikac14-Feb-04 5:35
valikac14-Feb-04 5:35 
GeneralSQL compare time part of datetime field Pin
asdf175313-Feb-04 7:29
asdf175313-Feb-04 7:29 
GeneralRe: SQL compare time part of datetime field Pin
David Crow13-Feb-04 8:11
David Crow13-Feb-04 8:11 
GeneralMDI Document Sample Pin
vancouver77713-Feb-04 7:23
vancouver77713-Feb-04 7:23 
GeneralRe: MDI Document Sample Pin
David Crow13-Feb-04 8:13
David Crow13-Feb-04 8:13 
QuestionHow to get Drag data from IE Pin
Vistac13-Feb-04 6:46
Vistac13-Feb-04 6:46 
GeneralVisual Studio .NET Wizard(s) Pin
ExtraLean13-Feb-04 5:58
ExtraLean13-Feb-04 5:58 

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.