.NET

Reply
Active Contributor
Gdiael
Posts: 26
Registered: ‎06-09-2012
Message 1 of 5 (418 Views)
Accepted Solution

JavaScript and WebBrowser control on Autocad

418 Views, 4 Replies
06-09-2012 09:57 AM

I have a form with a WebBrowser Control that is loaded by the Application.ShowModalDialog function. In the load event of the form I set the WebBrowser to navigate to a html file. And that html file has a JavaScript that creates a instance of Google Earth Plug-In. The point is that the JavaScript can't find the Google Earth Plug-In and says it is not instaled, but it is. So I built a Windows Aplication with the "Windows Forms Aplication" template and replaced the form1 of the template with the form I created in my autocad plugin. And it works very fine! I think it is a security permission issue, but I don't know what kind of permission autocad gives to the .net.
Someone can help me?

 

*Sorry for the english.

 

Hi,

 

>> Is there any way to run the dll in compatibility mode?

I don't think so.

IPC could be the approach how I would continue, but only as long as the amount of datatransfer is not to havy.

 

- alfred -

*Expert Elite*
Alfred.NESWADBA
Posts: 9,380
Registered: ‎06-29-2007
Message 2 of 5 (417 Views)

Re: JavaScript and WebBrowser control on Autocad

06-09-2012 09:59 AM in reply to: Gdiael

Hi,

 

My first thought to your description was:

  • your EXE runs in 32bit mode
  • your DLL from within AutoCAD runs at 64bit

...?

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Active Contributor
Gdiael
Posts: 26
Registered: ‎06-09-2012
Message 3 of 5 (415 Views)

Re: JavaScript and WebBrowser control on Autocad

06-09-2012 10:30 AM in reply to: Gdiael

Exactly, you're right.

The problem is that the plugin is only for 32bit system.

I had not looked at it this way. Thank you.

 

Is there any way to run the dll in compatibility mode?

*Expert Elite*
Alfred.NESWADBA
Posts: 9,380
Registered: ‎06-29-2007
Message 4 of 5 (409 Views)

Re: JavaScript and WebBrowser control on Autocad

06-09-2012 10:49 AM in reply to: Gdiael

Hi,

 

>> Is there any way to run the dll in compatibility mode?

I don't think so.

IPC could be the approach how I would continue, but only as long as the amount of datatransfer is not to havy.

 

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Active Contributor
Gdiael
Posts: 26
Registered: ‎06-09-2012
Message 5 of 5 (381 Views)

Re: JavaScript and WebBrowser control on Autocad

06-11-2012 08:28 PM in reply to: Alfred.NESWADBA

Thank you so much for the help. I was trying to solve it in a completely different way.
I don't think IPC is a good idea, but i guess it will work. Thank you!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!