Click here to Skip to main content
16,011,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dereferencing iterators Pin
Christian Graus6-Nov-02 16:59
protectorChristian Graus6-Nov-02 16:59 
GeneralRe: Dereferencing iterators Pin
Anonymous6-Nov-02 16:59
Anonymous6-Nov-02 16:59 
GeneralThread & Message Parameters Pin
stevenson6-Nov-02 15:35
stevenson6-Nov-02 15:35 
GeneralThis works, but is it the right way to do it Pin
kjessee6-Nov-02 15:33
kjessee6-Nov-02 15:33 
GeneralRe: This works, but is it the right way to do it Pin
Christian Graus6-Nov-02 15:42
protectorChristian Graus6-Nov-02 15:42 
GeneralRe: This works, but is it the right way to do it Pin
kjessee6-Nov-02 15:56
kjessee6-Nov-02 15:56 
Generalsimple ATL-COM question. Pin
devvvy6-Nov-02 15:14
devvvy6-Nov-02 15:14 
GeneralRe: simple ATL-COM question. Pin
Christian Graus6-Nov-02 15:30
protectorChristian Graus6-Nov-02 15:30 
OK. First of all, when you define your COM function, your IDL ( which defines the interface ) can specifify a parameter as IN or OUT. An OUT is a returned value and must be a pointer. The last parameter can also be OUT, RETVAL, which means in script, because the HRESULT is not returned, the parameter is instead.

Secondly, Javascript typically does not require you to specify the return type - that is why a JScript function always has 'function' next to the name, not a return type. The return type is whatever type you put next to the word 'return'.

STDMETHODIMP is a macro that basically just makes the return type a HRESULT, as they are for all COM calls. You are also limited in what you can pass in, basically I think anything you can shove into a VARIANT can be passed into a function. No custom structs or classes, you can pass an enum value though. ( that's just a number anyhow ).



Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
GeneralRe: simple ATL-COM question. Pin
Stefan Pedersen6-Nov-02 15:37
Stefan Pedersen6-Nov-02 15:37 
Generalkeep getting invalid progID Pin
devvvy6-Nov-02 15:57
devvvy6-Nov-02 15:57 
GeneralRe: keep getting invalid progID Pin
Stefan Pedersen6-Nov-02 16:12
Stefan Pedersen6-Nov-02 16:12 
Generalokay, now it's working, BUT.... Pin
devvvy6-Nov-02 17:55
devvvy6-Nov-02 17:55 
GeneralMSDev.exe crashing at startup Pin
Chris Meech6-Nov-02 14:31
Chris Meech6-Nov-02 14:31 
GeneralRe: MSDev.exe crashing at startup Pin
James Spibey7-Nov-02 0:20
James Spibey7-Nov-02 0:20 
GeneralRe: MSDev.exe crashing at startup Pin
Chris Meech7-Nov-02 2:43
Chris Meech7-Nov-02 2:43 
QuestionCan anyone see the problem in this code? Pin
Anonymous6-Nov-02 13:33
Anonymous6-Nov-02 13:33 
AnswerRe: Can anyone see the problem in this code? Pin
moliate6-Nov-02 14:29
moliate6-Nov-02 14:29 
GeneralRe: Can anyone see the problem in this code? Pin
Anonymous7-Nov-02 6:48
Anonymous7-Nov-02 6:48 
GeneralRe: Can anyone see the problem in this code? Pin
moliate7-Nov-02 12:15
moliate7-Nov-02 12:15 
GeneralApplication hiding and inactive at startup Pin
Anonymous6-Nov-02 13:10
Anonymous6-Nov-02 13:10 
GeneralDeleting objects created with the new operator Pin
Daniel Jurnove6-Nov-02 12:59
sussDaniel Jurnove6-Nov-02 12:59 
GeneralRe: Deleting objects created with the new operator Pin
Christian Graus6-Nov-02 13:15
protectorChristian Graus6-Nov-02 13:15 
GeneralRe: Deleting objects created with the new operator Pin
Maximilien6-Nov-02 13:17
Maximilien6-Nov-02 13:17 
GeneralVisual studio installer, shortcut question Pin
Anonymous6-Nov-02 12:58
Anonymous6-Nov-02 12:58 
Generalpoppin controls in win32 api Pin
stephen.hazel6-Nov-02 12:42
stephen.hazel6-Nov-02 12:42 

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.