Click here to Skip to main content
15,910,123 members
Home / Discussions / COM
   

COM

 
GeneralRe: IHTMLWindow2 navigate opening new window Pin
zumichu20-Jul-04 12:50
zumichu20-Jul-04 12:50 
GeneralRe: IHTMLWindow2 navigate opening new window Pin
Alexander Wiseman20-Jul-04 14:25
Alexander Wiseman20-Jul-04 14:25 
GeneralRe: IHTMLWindow2 navigate opening new window Pin
zumichu20-Jul-04 16:22
zumichu20-Jul-04 16:22 
GeneralGUIDs and MIDL.exe Pin
Tropicana20-Jul-04 7:58
Tropicana20-Jul-04 7:58 
Questionhow to marshal interface Pin
yingkou19-Jul-04 18:30
yingkou19-Jul-04 18:30 
GeneralCreateObjrefMoniker - missing Pin
Sara Burns19-Jul-04 12:30
Sara Burns19-Jul-04 12:30 
GeneralAxWebBrowser.ExecWB printing error "Trying to revoke a drop target ..." Pin
alexatn16-Jul-04 12:14
alexatn16-Jul-04 12:14 
Generaldefaultvalue doesn't work with late-binding when using attributed objects Pin
Member 54073115-Jul-04 2:59
Member 54073115-Jul-04 2:59 
Hi All,

It seems when using attributed COM object in VC7, defaultvalue parameters do not work correctly in late-binding environment.

Asseme I have a method:

[id(1), helpstring("method AA")] HRESULT AA([in, defaultvalue("1")] LONG abc);

In VBScript, I can call it as:

Object.AA 1

but can't use shorter syntax:

Object.AA

If the same method is declated in non-attrbited library (i.e. separate IDL and H file), all works fine. Also, all works fine when early-binding is used in VB6.

I tried to add optional attribute to method, oleautomation and nonextensible to class, but all of this does not help.

Of course, it's possible to forget attributes and write old-style separate IDL/H objects, but it does not seem to be graceful solution.

Regards,
Alex
GeneralWord OLE temp document ~wroxxxx.doc Pin
vishalmore14-Jul-04 20:35
vishalmore14-Jul-04 20:35 
GeneralSuggestion for solved problems Pin
darkbyte14-Jul-04 14:04
darkbyte14-Jul-04 14:04 
QuestionHow to integrate out of process server with client Pin
piks14-Jul-04 0:50
piks14-Jul-04 0:50 
AnswerRe: How to integrate out of process server with client Pin
darkbyte14-Jul-04 13:55
darkbyte14-Jul-04 13:55 
Questionhow to use CoMarshalInterThreadInterfaceInStream? Pin
yingkou13-Jul-04 14:05
yingkou13-Jul-04 14:05 
GeneralActiveX and C# Pin
FlamTaps12-Jul-04 8:58
FlamTaps12-Jul-04 8:58 
QuestionCOM+ Task Scheduling? Pin
meierk12-Jul-04 6:00
meierk12-Jul-04 6:00 
AnswerRe: COM+ Task Scheduling? Pin
meierk12-Jul-04 7:41
meierk12-Jul-04 7:41 
GeneralBeginning COM programming Pin
Mekong River12-Jul-04 5:44
Mekong River12-Jul-04 5:44 
GeneralRe: Beginning COM programming Pin
SOCM_FP_CPP29-Jul-04 3:42
SOCM_FP_CPP29-Jul-04 3:42 
GeneralRe: Beginning COM programming Pin
Mekong River29-Jul-04 3:54
Mekong River29-Jul-04 3:54 
GeneralRe: Beginning COM programming Pin
yellowdragon29-Jul-04 3:49
yellowdragon29-Jul-04 3:49 
Questionhow to include a heading "help"? Pin
ffredoux12-Jul-04 3:44
ffredoux12-Jul-04 3:44 
GeneralIStream for files Pin
LasVegasGuy11-Jul-04 8:19
LasVegasGuy11-Jul-04 8:19 
GeneralRe: IStream for files Pin
Jörgen Sigvardsson11-Jul-04 9:47
Jörgen Sigvardsson11-Jul-04 9:47 
GeneralRe: IStream for files Pin
LasVegasGuy11-Jul-04 10:11
LasVegasGuy11-Jul-04 10:11 
GeneralRe: IStream for files Pin
Jörgen Sigvardsson11-Jul-04 10:13
Jörgen Sigvardsson11-Jul-04 10:13 

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.