473,320 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Hosting the CLR and IJW

We have a native VC++ server application I'm planning on adding support to
allow our customers to write synchronous event handlers using .NET. From my
research it appears hosting the CLR using the new hosting interface will give
me the most flexablitity in configuring and controling the CLR. Although this
will require some limited use of COM to get running I'd like to avoid using
COM, if possible, for communicating between the server and event handlers, so
I thought IJW might be a good alternative. So, is it possible to use the
hosting API to load the CLR, but use IJW to make calls and send data between
the server and the handlers written in managed code? Are there any examples
you could point me to?

Thanks,
Steve
May 10 '06 #1
2 1770
"SteveW" <St****@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
We have a native VC++ server application I'm planning on adding support to
allow our customers to write synchronous event handlers using .NET. From
my
research it appears hosting the CLR using the new hosting interface will
give
me the most flexablitity in configuring and controling the CLR.
Yup.
Although this will require some limited use of COM to get running I'd like
to
avoid using COM, if possible, for communicating between the server and
event
handlers, so I thought IJW might be a good alternative.
My sentiments, exactly.
So, is it possible to use the hosting API to load the CLR, but use IJW to
make
calls and send data between the server and the handlers written in managed
code?
That's pretty much what I do. I have a native application that uses
CorBindToRuntimeEx() to start the CLR and then a smidgen of COM to gain
access to the deafult domain, load an assembly or two, stuff like that.
Later, it's IJW (now renamed "C++ interop") that allows me to create managed
objects and invoke methods on them.

I don't use .Net events per-se but I don't know why you could not.
Are there any examples you could point me to?


I don't know of any. I started my project in the VS2003 timeframe, and when
I did, I found the book "Essential Guide to Managed Extensions for C++"
ISBN:1-893115-28-3 by Challa and Laksberg of the VC++ team to be my best
friend. :-)

I'm not sure what the best reference for VS2005 is. Someone here may pop-in
with a suggestion.

Regards,
Will
May 10 '06 #2
So, I'm back to working on this again and I have another question. If I load
the CLR using CorBindToRuntimeEx and I decide to use IJW (C++ Interop) I
assume the CLR will not try and load again when the C++/CLI code is loaded
correct? Also, I assume once the managed class is loaded the C++/CLI code
will not require any use of COM interfaces that were used to create the CLR,
default domain, or manged host interface correct?

I'm not that familiar with what's required in this scenario.

Thanks

"William DePalo [MVP VC++]" wrote:
"SteveW" <St****@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
We have a native VC++ server application I'm planning on adding support to
allow our customers to write synchronous event handlers using .NET. From
my
research it appears hosting the CLR using the new hosting interface will
give
me the most flexablitity in configuring and controling the CLR.


Yup.
Although this will require some limited use of COM to get running I'd like
to
avoid using COM, if possible, for communicating between the server and
event
handlers, so I thought IJW might be a good alternative.


My sentiments, exactly.
So, is it possible to use the hosting API to load the CLR, but use IJW to
make
calls and send data between the server and the handlers written in managed
code?


That's pretty much what I do. I have a native application that uses
CorBindToRuntimeEx() to start the CLR and then a smidgen of COM to gain
access to the deafult domain, load an assembly or two, stuff like that.
Later, it's IJW (now renamed "C++ interop") that allows me to create managed
objects and invoke methods on them.

I don't use .Net events per-se but I don't know why you could not.
Are there any examples you could point me to?


I don't know of any. I started my project in the VS2003 timeframe, and when
I did, I found the book "Essential Guide to Managed Extensions for C++"
ISBN:1-893115-28-3 by Challa and Laksberg of the VC++ team to be my best
friend. :-)

I'm not sure what the best reference for VS2005 is. Someone here may pop-in
with a suggestion.

Regards,
Will

May 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tom Locke | last post by:
Hi, Anyone know of a good hosting company that offers both server-side Python and a subversion repository? I know of one: www.textdrive.com - they're a bit pricey, but I s'pose you gets what...
7
by: John | last post by:
Do you guys have any idea if web hosting companies usually give access to SQL Server databases through Enterprise Manager? I used to have have access to my DB through EE with my previous provider...
0
by: Kunal Pandya | last post by:
Windows Web Hosting @ $ 14.95 / Year! with FREE Domain Registration!!! + Web Control Panel + MIn. 5 Email Boxes + Packages starting from as low as 10 MB upto 50 GB dedicated hosting + Extra...
5
by: Scott | last post by:
Can anyone refer me to a good hosting provider? I'm looking for a reseller plan with PHP 5, MySql 5, 24 x 7 support, and most importantly, a solid uptime record. Customer referrals only,...
3
by: mpar612 | last post by:
Hi everyone, I am new to PHP and I am trying to learn about using PHP to connect to a MySQL database using PEAR modules. My current web hosting provider compiles the PEAR modules into PHP so the...
2
by: Carl Gilbert | last post by:
Hi I feel as if I'm fighting a loosing battle with shared hosting at the moment. I have an account with 1&1. For a whopping £16.99 a month I get 6GB of shared Microsoft hosting. I also get...
11
by: Marko | last post by:
I need some good hosting. I found www.webhost4life.com and I was been very happy because they give a lot of features very cheap. But I have read many bad things about this hosting, so I need some...
21
by: Herb | last post by:
Why do so many hosting services only offer PHP4? That's even true for Yahoo.
15
by: Cirene | last post by:
I am looking for a new ASP.NET hosting company. I prefer... UPTIME, RELIABILITY and SPEED!!!! ASP.NET 3.5 support SQL Server support Good, proactive customer support Any thoughts? What are...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.