Visual Basic Customization

Visual Basic Customization

Reply
Valued Contributor
tanerpro
Posts: 83
Registered: ‎10-07-2005
Message 1 of 2 (150 Views)

Setparent works in design but not in compiled dll in windows7

150 Views, 1 Replies
10-05-2012 10:52 AM

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

 

Windows 7 (x64)
AutoCAD 2012 (x64)
Valued Contributor
tanerpro
Posts: 83
Registered: ‎10-07-2005
Message 2 of 2 (134 Views)

Re: Setparent works in design but not in compiled dll in windows7

10-10-2012 06:32 AM in reply to: tanerpro

Can someone please help me?

Windows 7 (x64)
AutoCAD 2012 (x64)
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.