View Single Post
  #1  
Old 08-10-2003, 04:59
Nad Af
 
Posts: n/a
Unhappy Vb 6.0 __vbaVarTstEq in SoftIce??

Hi:
Can you help me with the following:
I have a VB6 project, it contains one Form, Text Box and Command button pasted on the form, the button click event is:

Private Sub Command1_Click()
Dim A As Variant
A = "Here is my code"
If Text1 = A Then MsgBox "OK"
End Sub


When I debug the program using SoftIce:
bpx __vbaVarTstEq!


push eax
push ecx
mov [ebp - 28], edi
mov dword ptr [ebp -3c], 008008
call [msvbvm60!__vbaVarTstEq]


I suppose eax, ecx are the arguments (variables) though i am not sure,
but the problem is when I dereference eax, I get "???????" invalid memory; ecx, too.
How to calculate the variables of type Variant in Visual Basic 6.0?
Reply With Quote