Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ebExecuteLine 4

Status
Not open for further replies.

danjevans

Programmer
Jun 22, 2001
2
GB
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
 
Thanks NipsMG for taking the time to write up an example like you did. That is what makes Tek-Tips my favorite technical forum by far.


Have a great day!

j2consulting@yahoo.com
 
strongm,

You accidentally helped me.
Stay arround, will you?

regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top