Hello,
I was using th statement below to run my app in autocad for several years, when i run it in design mode in vb6 it still works fine but when i compile to dll it doesn't show in autocad. How can i solve this problem.
The system is windows7 (64 bit) and Autocad 2011 (64 bit)
Thanks,
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
.....
AcadHwnd = FindWindow(vbNullString, Acad.Caption)
or
AcadHwnd = Acad.HWND32
SetParent Me.hwnd, AcadHwnd