Hi, I'm using ebExecuteLine in a program:
Private Declare Function EbExecuteLine Lib "vba6.dll" _
(ByVal pStringToExec As Long, ByVal Foo1 As Long, _
ByVal Foo2 As Long, ByVal fCheckOnly As Long) As Long
...
EbExecuteLine StrPtr("Msgbox ""TEST"""
, 0&, 0&, Abs(false)
...
This works fine when interpreted and messages TEST as expected. However when the program is compiled the line causes the program to crash out with...
"The instruction at "0x0fa916c8" referenced memory at "0x000002b0". The memory could not be read."
..the application is then terminated. Anyone have any advice on this? Why would it only fail when compiled?
Thanks,
-Dan Evans
Private Declare Function EbExecuteLine Lib "vba6.dll" _
(ByVal pStringToExec As Long, ByVal Foo1 As Long, _
ByVal Foo2 As Long, ByVal fCheckOnly As Long) As Long
...
EbExecuteLine StrPtr("Msgbox ""TEST"""
...
This works fine when interpreted and messages TEST as expected. However when the program is compiled the line causes the program to crash out with...
"The instruction at "0x0fa916c8" referenced memory at "0x000002b0". The memory could not be read."
..the application is then terminated. Anyone have any advice on this? Why would it only fail when compiled?
Thanks,
-Dan Evans