Click here to Skip to main content
16,005,290 members
Home / Discussions / COM
   

COM

 
GeneralSemi-Newbie on IDL file Pin
RChin18-Aug-04 0:54
RChin18-Aug-04 0:54 
GeneralRe: Semi-Newbie on IDL file Pin
RChin18-Aug-04 2:10
RChin18-Aug-04 2:10 
GeneralRe: Semi-Newbie on IDL file Pin
BadJerry19-Aug-04 1:07
BadJerry19-Aug-04 1:07 
GeneralRe: Semi-Newbie on IDL file Pin
RChin19-Aug-04 1:27
RChin19-Aug-04 1:27 
Generalcom programming Pin
LacrimaMosa18-Aug-04 0:33
LacrimaMosa18-Aug-04 0:33 
GeneralRe: com programming Pin
BadJerry18-Aug-04 8:02
BadJerry18-Aug-04 8:02 
GeneralRe: com programming Pin
LacrimaMosa19-Aug-04 2:29
LacrimaMosa19-Aug-04 2:29 
GeneralRe: com programming Pin
LacrimaMosa20-Aug-04 0:23
LacrimaMosa20-Aug-04 0:23 
ok, i have a test dll...just returning a integer. in c++ it works, but what i have to do in vb?

these are 2 methods of the dll:
[cpp]
STDMETHODIMP CTesteMal::getInteger(int* i)
{
*i=666; //working
return S_OK;
}

STDMETHODIMP CTesteMal::getIntergerDieZweite()
{
int i=666; //working
return i;
return S_OK;
}
[/cpp]

in vb i´ve tried this:
[vb]
Private Sub TRY_Click()
Dim Zahl As TESTMITINTLib.TesteMal
Zahl.getInteger () 'here is an error
End Sub
[/vb]

it doesn´t work Frown | :( whats my failure?
GeneralRe: com programming Pin
BadJerry20-Aug-04 0:31
BadJerry20-Aug-04 0:31 
GeneralRe: com programming Pin
LacrimaMosa20-Aug-04 0:41
LacrimaMosa20-Aug-04 0:41 
GeneralRe: com programming Pin
BadJerry20-Aug-04 0:45
BadJerry20-Aug-04 0:45 
GeneralRe: com programming Pin
LacrimaMosa20-Aug-04 0:52
LacrimaMosa20-Aug-04 0:52 
GeneralRe: com programming Pin
BadJerry20-Aug-04 1:19
BadJerry20-Aug-04 1:19 
GeneralRe: com programming Pin
Milton Karimbekallil20-Aug-04 3:59
Milton Karimbekallil20-Aug-04 3:59 
GeneralRe: com programming Pin
LacrimaMosa23-Aug-04 2:43
LacrimaMosa23-Aug-04 2:43 
GeneralProgram Interface (API) Pin
sergeyv200217-Aug-04 7:58
sergeyv200217-Aug-04 7:58 
GeneralRe: Program Interface (API) Pin
darkbyte17-Aug-04 15:47
darkbyte17-Aug-04 15:47 
GeneralRe: Program Interface (API) Pin
Milton Karimbekallil17-Aug-04 18:36
Milton Karimbekallil17-Aug-04 18:36 
Generaloperator = Pin
BadJerry17-Aug-04 6:51
BadJerry17-Aug-04 6:51 
GeneralRe: operator = Pin
darkbyte17-Aug-04 16:08
darkbyte17-Aug-04 16:08 
GeneralRe: operator = Pin
BadJerry18-Aug-04 0:14
BadJerry18-Aug-04 0:14 
GeneralRe: operator = Pin
darkbyte19-Aug-04 6:04
darkbyte19-Aug-04 6:04 
GeneralRe: operator = Pin
BadJerry19-Aug-04 6:28
BadJerry19-Aug-04 6:28 
GeneralRe: operator = Pin
Milton Karimbekallil19-Aug-04 21:04
Milton Karimbekallil19-Aug-04 21:04 
GeneralRe: operator = Pin
BadJerry20-Aug-04 0:11
BadJerry20-Aug-04 0:11 

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.