
Originally Posted by
jsvenu
Dear Trick,
For knowing values of lModulesCount and lSizeOfHeaders
I used msgbox in CreateVBHeaderCopy for displaying the values.But I did not get the msgbox displayed but application worked fine.So to help xiaoyao I changed the msgbox to trace using outputdebugstring and could get the values thru
other debug tools when the app was running.Can you clarify me why the app works fine but msgbox is not displayed if I use them.
regards,
JSVenu
you can use the api "messageboxa" replace for "msgbox"
you must run "VBDllGetClassObject" ok,then you can use "msgbox"
if not load "msgvbvm60.dll" ok in thread,you can't use vb6 object like "msgbox"
Code:
Public Declare Function MessageBox Lib "user32" Alias "MessageBoxA" (ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long) As Long
Function Msg(Info As String, Optional Title As String = "MyTip")
Msg = MessageBox(0, Info, Title, 0)
End Function