Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: DllImport Question Pin
Dave Kreskowiak24-Nov-08 3:58
mveDave Kreskowiak24-Nov-08 3:58 
GeneralRe: DllImport Question Pin
Pedram Behroozi24-Nov-08 7:45
Pedram Behroozi24-Nov-08 7:45 
QuestionAccess local registry through web browser Pin
Haim Nachum24-Nov-08 2:03
Haim Nachum24-Nov-08 2:03 
AnswerRe: Access local registry through web browser Pin
SeMartens24-Nov-08 2:11
SeMartens24-Nov-08 2:11 
GeneralRe: Access local registry through web browser Pin
Haim Nachum24-Nov-08 3:06
Haim Nachum24-Nov-08 3:06 
GeneralRe: Access local registry through web browser Pin
SeMartens24-Nov-08 4:13
SeMartens24-Nov-08 4:13 
GeneralRe: Access local registry through web browser Pin
Haim Nachum24-Nov-08 5:39
Haim Nachum24-Nov-08 5:39 
GeneralRe: Access local registry through web browser Pin
SeMartens24-Nov-08 21:09
SeMartens24-Nov-08 21:09 
Well, wrap the user control within another assembly. Mark this assembly as COM-Interop (in Visual Studio, go to the settings-dialog of your project and check the "Register for COM-Interop" box). Then you have created an assembly than allows COM-Interop. This assembly has to be registered on your clients PC. You could build a cab file, or a msi that the user has to download and install on his pc (this will register the assembly on your clients PC). There is some kind of automated install, but for this you have to search, because I don't know exactly how this works.

But while developing the app you can test it on your own pc, just build the project on your PC (this will register the assembly for COM-Interop) and then call the assembly with javascript from your website.

This will looks similar to this:

<br />
<script language="javascript"><br />
function CallMyCom() {<br />
   var myCom = new ActiveXObject("MyNamespace.MyClass");<br />
   alert(myCom.SayHello());<br />
}<br />
</script><br />


SayHello is a method from your assembly containing a class MyNamespace.MyClass.

Hope this helps you,
Regards
Sebastian

It's not a bug, it's a feature!

Me in Softwareland.

AnswerRe: Access local registry through web browser Pin
#realJSOP24-Nov-08 2:30
professional#realJSOP24-Nov-08 2:30 
GeneralRe: Access local registry through web browser Pin
Ashfield24-Nov-08 2:46
Ashfield24-Nov-08 2:46 
Questionlink in textrenderer Pin
Christof Höll24-Nov-08 1:54
Christof Höll24-Nov-08 1:54 
AnswerRe: link in textrenderer Pin
Ashfield24-Nov-08 2:45
Ashfield24-Nov-08 2:45 
GeneralRe: link in textrenderer Pin
Christof Höll24-Nov-08 5:26
Christof Höll24-Nov-08 5:26 
GeneralRe: link in textrenderer Pin
Ashfield24-Nov-08 8:43
Ashfield24-Nov-08 8:43 
Questionshare Pin
ellllllllie24-Nov-08 1:21
ellllllllie24-Nov-08 1:21 
AnswerRe: share Pin
Le centriste24-Nov-08 2:10
Le centriste24-Nov-08 2:10 
QuestionRemove instance Pin
RishiKasnia24-Nov-08 1:00
RishiKasnia24-Nov-08 1:00 
AnswerRe: Remove instance Pin
Pedram Behroozi24-Nov-08 1:15
Pedram Behroozi24-Nov-08 1:15 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 1:41
RishiKasnia24-Nov-08 1:41 
GeneralRe: Remove instance Pin
Pedram Behroozi24-Nov-08 1:54
Pedram Behroozi24-Nov-08 1:54 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 1:58
RishiKasnia24-Nov-08 1:58 
GeneralRe: Remove instance Pin
Bijesh24-Nov-08 3:02
Bijesh24-Nov-08 3:02 
AnswerRe: Remove instance Pin
Simon P Stevens24-Nov-08 3:05
Simon P Stevens24-Nov-08 3:05 
GeneralRe: Remove instance Pin
RishiKasnia24-Nov-08 16:43
RishiKasnia24-Nov-08 16:43 
QuestionSetting Socket.ReceiveBufferSize Pin
HosamAly24-Nov-08 0:40
HosamAly24-Nov-08 0:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.