Visual Basic Customization

Visual Basic Customization

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

Setparent works in design but not in compiled dll in windows7

159 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 (143 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)
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.