:
This message was edited by chintan.desai at 2007-2-7 21:32:21
:
This message was edited by chintan.desai at 2007-2-7 21:27:9
: : : : : Hi All Pals,
: : : : : I m only 2 days older in javascript. Really frm 2 days i m seeking for :
: : : : : How to Call C#.net Dll in Java Script ???
: : : : : I need to call one method frm Class called Class1 and method call Fun() wich return one integer say 100.This val i need to catch in javascript variable just like
: : : : :
: : : : : var val=Class1.Fun();
: : : : : alert(val);
: : : : :
: : : : : but i cud not do so.Pls help me
: : : : :
: : : : : Help wud be appreciated
: : : : :
: : : : : Regards
: : : : : Chintan
: : : : :
: : : : That's only possible if the dll is a registered COM server. For more info see this thread:
http://p2p.wrox.com/topic.asp?TOPIC_ID=18052 and msdn.microsoft.com
: : : :
: : : -------------------------------------------------------------
: : : Reply :
: : :
: : : thank u friend.
: : : It is working.But Can i call .net dll in javascript or vbscript.My project been cease due to this problem.Is ther no other solution Pls reply soon.thx again.
: : :
: : No, since as said it in the other forum, that would be a huge security hole. It would even be possible to run
any and all programs on someone else's computer
without his knowledge.
: :
: ----------------------------------------------------
: Reply:
: Ok,thaxs for all replies.
: Ok then can u tell me How to make .net dll as COM assembly?
: I have done the following steps in .net visual studio 2005 IDE to register my .net dll as COM.
: 1)Project->Project property>build>and checking "Register for com interop" box
: 2)even use regasm and regsvr32 and tried to register.but cud not register
:
: my idea is to make this com register and by using javascript i can call this com assembly.Again i can call javascript file in my flash.
:
: pls reply if u know .net
: but thax again
:
Have you defined and implemented the interfaces correctly? I know very little about COM or .NET, but I do know that it often requires a rewrite of the type definitions to add the COM-interfaces instead of the exported functions. Perhaps people in the C#-board can help you better.