new to .net - is this easy?

P

Phil Da Lick!

Hi,

I've been doing a bit of work using a html control as the main interface on
my apps with JS code within the html to call into my application, defining a
COM object to handle this on the app side. Now a brand new project has come
up I was wondering whether the same process can be done easily on .net in
c++?

Basically the JS code within the html would call properties and methods on
the external object.

Can this be done, and if so how?

Cheers,

Phil.
 
B

Bob Powell [MVP]

You can create a DLL with C#, VB (or Visual J# I think, not an expert on
that one) and call into it as though it was a COM object.

In the project properties you'll select "Register DLL for COM interop" and
then call it using the GUID you assign.

--
Bob Powell [MVP]
C#, System.Drawing

The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com
 
P

Phil Da Lick!

Bob Powell said:
You can create a DLL with C#, VB (or Visual J# I think, not an expert on
that one) and call into it as though it was a COM object.

In the project properties you'll select "Register DLL for COM interop" and
then call it using the GUID you assign.

I think you misunderstood what I was asking. Perhaps I didnt phrase it
right - what I want to do is create a project using a html control as the
main interface and provide a mechanism whereby the html file can contain
javascript code to call into my program. Can this be done in .net? If so are
there any good examples online?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top