Click here to Skip to main content
15,907,906 members
Home / Discussions / COM
   

COM

 
GeneralRe: Design Question Pin
Len Holgate6-Nov-02 0:09
Len Holgate6-Nov-02 0:09 
GeneralFinding COM objects Pin
thowra24-Oct-02 10:29
thowra24-Oct-02 10:29 
GeneralRe: Finding COM objects Pin
Daniel Turini25-Oct-02 0:22
Daniel Turini25-Oct-02 0:22 
GeneralRe: Finding COM objects Pin
thowra31-Oct-02 4:33
thowra31-Oct-02 4:33 
Generalerror when doing invokehelper.. Pin
BK Pradeep24-Oct-02 1:15
BK Pradeep24-Oct-02 1:15 
Questionhow to pass a struct to com Pin
zwzcode23-Oct-02 22:22
zwzcode23-Oct-02 22:22 
AnswerRe: how to pass a struct to com Pin
Simon.W24-Oct-02 1:30
Simon.W24-Oct-02 1:30 
GeneralBSTR string as output parameter Pin
Huu Pham23-Oct-02 16:41
Huu Pham23-Oct-02 16:41 
hi all,
My problem is that I created a ATL COM named "Controller". The com has one method, "CheckOnline" as below:

//IDL
interface IController : IDispatch
{
[id(1), helpstring("method CheckOnline")] HRESULT CheckOnline([out] BSTR* mdln, [out] BSTR* softrev);
};


//C++ implementation
STDMETHODIMP CController::CheckOnline(BSTR* mdln, BSTR* softrev)

{

// TODO: Add your implementation code here

*mdln = ::SysAllocString(L"testing");

*softrev = ::SysAllocString(L"1.2");

return S_OK;

}

and then I compliled and deploy the com sucessfully. Now I create a VB client as below:
Dim eq As New EQCONTROLLERLib.Controller

'Set EQController = CreateObject("EQPController")
Dim param1, param2 As String

Call eq.CheckOnline(param1, param2)
txtParam1.Text = param1
txtParam2.Text = param2


when compling VB Client, I get the error: "Byref Argument Type Mismactch"
oh, Why's that ! Is my way is correct??? Is there another way to get out parameter as BSTR string in VB client???
thanks for your help !
Huu Pham
GeneralRe: BSTR string as output parameter Pin
Steve S24-Oct-02 2:56
Steve S24-Oct-02 2:56 
GeneralMax Length of BSTR Pin
nativespirits23-Oct-02 10:43
nativespirits23-Oct-02 10:43 
GeneralRe: Max Length of BSTR Pin
Daniel Turini23-Oct-02 12:00
Daniel Turini23-Oct-02 12:00 
GeneralRe: Max Length of BSTR Pin
Todd Smith23-Oct-02 12:03
Todd Smith23-Oct-02 12:03 
GeneralRe: Max Length of BSTR Pin
Michael Dunn23-Oct-02 13:39
sitebuilderMichael Dunn23-Oct-02 13:39 
GeneralRe: Max Length of BSTR Pin
ian mariano28-Oct-02 4:16
ian mariano28-Oct-02 4:16 
GeneralActiveX Tutorial Pin
Daniel Strigl22-Oct-02 19:51
Daniel Strigl22-Oct-02 19:51 
GeneralRe: ActiveX Tutorial Pin
Mazdak23-Oct-02 9:16
Mazdak23-Oct-02 9:16 
GeneralSetting the Cursor Shape with an Out-of-Process COM Server Pin
Anonymous22-Oct-02 11:12
Anonymous22-Oct-02 11:12 
GeneralDCOM Server - Memory keeps growing Pin
almirx10122-Oct-02 8:29
almirx10122-Oct-02 8:29 
GeneralErrors From COM Object Pin
Ryan B.21-Oct-02 4:58
Ryan B.21-Oct-02 4:58 
GeneralRe: Errors From COM Object Pin
Steve S21-Oct-02 5:23
Steve S21-Oct-02 5:23 
GeneralRecommended Book on COM :: C++ Pin
valikac19-Oct-02 11:39
valikac19-Oct-02 11:39 
GeneralRe: Recommended Book on COM :: C++ Pin
Renjith Ramachandran19-Oct-02 20:38
Renjith Ramachandran19-Oct-02 20:38 
GeneralRe: Recommended Book on COM :: C++ Pin
Stephane Rodriguez.19-Oct-02 21:05
Stephane Rodriguez.19-Oct-02 21:05 
GeneralRe: Recommended Book on COM :: C++ Pin
valikac20-Oct-02 5:51
valikac20-Oct-02 5:51 
GeneralRe: Recommended Book on COM :: C++ Pin
valikac22-Oct-02 13:38
valikac22-Oct-02 13:38 

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.