Help with connection points
From: Arshad Tanveer (public_at_atanveer.com)
Date: 08/17/04
- Next message: Eduardo A. Morcillo [MS MVP VB]: "Re: Help with connection points"
- Previous message: Sincere: "RE: (HELPLESS CASE) How dynamically add Controls from other-not refere"
- Next in thread: Eduardo A. Morcillo [MS MVP VB]: "Re: Help with connection points"
- Reply: Eduardo A. Morcillo [MS MVP VB]: "Re: Help with connection points"
- Reply: Adelle Hartley: "Re: Help with connection points"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Aug 2004 22:09:33 GMT
Hi,
I have developed a COM component using VC++/ATL, which is to be used in a
Visual Basic client. The difficulty I am facing is with a connection point.
The following is the entry in the idl file for this:
interface _IOpmsInterfaceEvents : IUnknown
{
[id(1), helpstring("Method to ask questions and get answers")] HRESULT
Askquestion([in] LPOLESTR question, [out,retval] int *answer);
};
The server will need answers to a few questions during processing, and this
it should get through a dialog based user input from the VB client program.
I am implementing this in visual basic as follows:
Private Sub obj_Askquestion(ByVal strQ As String, answer as long)
'code for bringing up the questions dialog box
End Sub
However, when I try to run this, visual basic gives me the following
message:
Compile error:
Procedure declaration does not match description of event or procedure
having the same name
Any idea what is wrong with the above code or declaration of the procedure?
I am using Visual Studio 6 for this, and being a C++ programmer am quite new
to advanced VB programming.
Thanks in advance for your help.
Regards,
Arshad Tanveer
- Next message: Eduardo A. Morcillo [MS MVP VB]: "Re: Help with connection points"
- Previous message: Sincere: "RE: (HELPLESS CASE) How dynamically add Controls from other-not refere"
- Next in thread: Eduardo A. Morcillo [MS MVP VB]: "Re: Help with connection points"
- Reply: Eduardo A. Morcillo [MS MVP VB]: "Re: Help with connection points"
- Reply: Adelle Hartley: "Re: Help with connection points"
- Messages sorted by: [ date ] [ thread ]