I want to return a double or string as dword like this
PB:
The Double part is not working (Not with the example above of course but i tried it with MKD$ etc.. )
???
Or can use VB variants somehow?
VB6<>PB6
------------------
[email protected]
PB:
Code:
Function ReadIt( ByVal what as Long ) Export As Dword Dim T As String Dim DBL As Double Dim Temp As Dword Select Case What Case 0 T = "1234" ! MOV EAX, T ! MOV TEMP, EAX ! MOV DWORD T, 0 FUNCTION = Temp Case 1 'Example from PB but i need to set a double instead.. DBL = 1234567 ! mov AL, Byte Ptr rgb_value[0] ! xor AH, AH ! mov FUNCTION[0], AX End Select End Function VB: Declare Function ReadItSTRING Lib "MY.DLL" Alias "ReadIt" (ByVal What As Long ) As String Declare Function ReadItDouble Lib "MY.DLL" Alias "ReadIt" (ByVal What As Long ) As Double
The Double part is not working (Not with the example above of course but i tried it with MKD$ etc.. )
???
Or can use VB variants somehow?
VB6<>PB6
------------------
[email protected]
Comment