VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Setparent works in design but not in compiled dll in windows7

1 REPLY 1
Reply
Message 1 of 2
tanerpro
360 Views, 1 Reply

Setparent works in design but not in compiled dll in windows7

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

 

1 REPLY 1
Message 2 of 2
tanerpro
in reply to: tanerpro

Can someone please help me?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost