キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Comment utiliser le bouton grisé ? dans l'editeur ActiveX/COM?

解決済み
解決策を見る

bonjour,

 

je souhaiterais associer une aide à chacun de mes "steps" dans l'éditeur d'ActiveX/COM. Il y a un bouton "?" grisé et je veux le rendre actif.

 

Comment créer le lien entre ce bouton, le fichier d'aide et ma "Method"?

 

J'ai cherché sur le forum et j'ai trouvé un seul cas identique et sans réponse pour l'instant "Add Documentation to custom DLL-Teststeps".

 

merci pour votre aide.

P.F

 

 

0 件の賞賛
メッセージ1/5
3,822件の閲覧回数

I do not know French that well, but I know the answer to your question so hopefully someone can translate this for you if needed.

 

Basically what you need to do is add a helpfile tag and helpcontext and/or helpstring tags to the library, methods, and interfaces in your COM object's type library. If you are using C++ and an .idl file it looks something like this:

 

At the top of your idl file:

 

[
    uuid(LibraryGUID),
    version(1.0),
    helpstring("Help string"),
    helpfile("..\\Doc\\Help\\TSAPIRef.chm")
]
library libraryName

 

For each interface:

 

    [helpcontext(HlpIDConstant) ,helpstring(HelpString) ,
        uuid(InterfaceGUID),
        dual,
        pointer_default(unique)
    ]
    interface MyInterface : IDispatch
 

For each method:

 

        [helpcontext(HlpIDConstant) ,helpstring(HelpString), id(642)] HRESULT                MyMethod();


 Hope this helps,

-Doug

Message Edited by dug9000 on 06-19-2009 11:49 AM
0 件の賞賛
メッセージ2/5
3,800件の閲覧回数

Hi dug9000,

thanks for your answer.

This solution looks good, and I'll try to adapt it to my ActiveX because it has been developped using Visual Basic 6.0 (nobody's perfect I guess スマイリー ウインク )

 

Have you examples in VB of how to link a specific chm page to a VB function used in a step ?

 

PFo

0 件の賞賛
メッセージ3/5
3,770件の閲覧回数
解決策
トピック作成者philfourが受理

I've never done this in VB 6.0, but I found a Microsoft help page which explains how to do it.

 

http://msdn.microsoft.com/en-us/library/aa716313(VS.60).aspx

 

Let us know if this works for you,

-Doug

Message Edited by dug9000 on 06-22-2009 10:22 AM
0 件の賞賛
メッセージ4/5
3,764件の閲覧回数

Doug, that's the point ! !

The documentation clearly shows how to  do, and it works.

 

thanks for your help

 

Phil. 

0 件の賞賛
メッセージ5/5
3,742件の閲覧回数