Click here to Skip to main content
15,920,956 members
Home / Discussions / COM
   

COM

 
GeneralRe: com programming Pin
LacrimaMosa20-Aug-04 0:23
LacrimaMosa20-Aug-04 0:23 
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 
Ok, i´ve tested this and it works
Private Declare Function ReturnValue Lib "vbdll.dll" (ByVal lValue As Long) As Long
Private Declare Function ChangeValue Lib "vbdll.dll" (ByVal pValue As Long) As Long

Private Sub Command1_Click()

Dim lSendVal As Long
Dim lGetVal As Long

lSendVal = 100
lGetVal = 0

lGetVal = ReturnValue(lSendVal)
lSendVal = ChangeValue(lSendVal)

End Sub

-------------------------------------------------------

dll:
//nimmt einen wert und gibt ihn zurück
long __stdcall ReturnValue ( long lValue )
{
return lValue;
}

//erhöht den übergebenen wert um 100
void __stdcall ChangeValue ( long pValue )
{
(pValue) +=100;
}

-----------
now the problem are strings...i know, there ist a type mismatch between strings in c++ and strings in vb. but i don´t know the solution for this...something with BSTR. but in the way i´ve make my dll (look up) BSTR don´t work. somebody have a hint?

btw: @jerry: poor girlfriend-for her your surely too fast...so, bring her to me, you know how slow i am Wink | ;)
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 
GeneralPerformance testing of COM dll Pin
Anonymous15-Aug-04 20:24
Anonymous15-Aug-04 20:24 
GeneralLink Problem VS6.0 to VS.NET Pin
Jnewg515-Aug-04 4:44
Jnewg515-Aug-04 4:44 
GeneralRe: Link Problem VS6.0 to VS.NET Pin
darkbyte19-Aug-04 6:43
darkbyte19-Aug-04 6:43 
GeneralText from MS Word / AccessibleObjectFromWindow Pin
Anonymous14-Aug-04 15:03
Anonymous14-Aug-04 15:03 
GeneralRe: Text from MS Word / AccessibleObjectFromWindow Pin
Anonymous18-Aug-04 20:55
Anonymous18-Aug-04 20:55 
GeneralRe: shameless bump Pin
Anonymous18-Aug-04 20:55
Anonymous18-Aug-04 20:55 
GeneralRe: shameless bump Pin
darkbyte19-Aug-04 14:45
darkbyte19-Aug-04 14:45 

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.