[Openroad-users] OpenROAD and .net COM

Jonathan Barton Jonathan.Barton at uwe.ac.uk
Thu Nov 22 23:45:17 EST 2007


Hi Colin

We had vb6 classes that are built into a dll and used by OpenROAD.  I
have now produced a dll using vb.net which can also be used by OpenROAD.
Be advised I have only gone as far as prototype, and it is not
production tested.

It was not straightforward (not for me anyway!) but I did finally get
there.  I had help;

The attached document was kindly provided by Neil Warnock.
The links below provided by Bodo Bergmann;
http://www.dnzone.com/ShowDetail.asp?NewsId=126
http://www.dotnet4all.com/dotnet-code/2004/12/com-wrapper-around-net-ass
embly.html
http://msdn.microsoft.com/msdnmag/issues/01/08/interop/  

I also used these links;
http://www.codeproject.com/dotnet/nettocom.asp
http://www.codeproject.com/vb/net/MusaExposingCOM.asp

The attached document provides all you need although I did use Visual
Studio .net to generate the dll and tlb and once I copied the 2 files
onto the destination PC I then ran the following commands;

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>gacutil /i
c:\windows\system32\BusinessSystemsNET.dll
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322>regasm
BusinessSystemsNET.dll /tlb: BusinessSystemsNet.tlb

If you would like a copy of some code let me know, but the links above
do show some simple examples.

HTH.

Jonathan

-----Original Message-----
From: Colin Hay [mailto:colin.hay at Fintechnix.com] 
Sent: 22 November 2007 03:05
To: Jonathan Barton
Subject: RE: [Openroad-users] OpenROAD and .net COM


What was the solution you used in the end - because I'm struggling with
the same problem .... 


Colin Hay
Database Administrator
Fintechnix
Level 3,
55 Clarence Street,
Sydney

colin.hay at fintechnix.com
Phone: +61 2 8234 8276


 

-----Original Message-----
From: openroad-users-bounces at peerlessit.com
[mailto:openroad-users-bounces at peerlessit.com] On Behalf Of Jonathan
Barton
Sent: Tuesday, 9 October 2007 12:33 AM
To: International OpenROAD Users
Subject: [Openroad-users] OpenROAD and .net COM

Hi all,
 
We have been using COM objects written in VB6 in our OpenROAD apps for
quite a while, but I wanted to start taking advantage of some .net
functionality (plus most of us here develop using vb.net now not VB6).
 
I replicated some of our VB6 classes in .net and deployed the project -
trying both exe and msi.  Either way OpenROAD can see the classes that
are within the .net COM component but not the methods/functions within
them.  The Registry and Type Library look ok.
 
Does anyone have any experience with this?
 
Many thanks.

JONATHAN

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"University of the West of England"
Work Email:         jonathan.barton at uwe.ac.uk
Work No:            0117 3281075


This email was independently scanned for viruses by McAfee anti-virus
software and none were found

________________________________________________________________
OpenROAD-Users mailing list

You can maintain your subscription here:
http://www.peerlessit.com/mailman/listinfo/openroad-users

To unsubscribe click on this link
mailto:openroad-users-unsubscribe at peerlessit.com&subject=unsubscribe

To subscribe click on this link
mailto:openroad-users-subscribe at peerlessit.com&subject=subscribe 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Specialist providers of back and front office systems for the financial
services industry.
Featuring:  Fintechnix(r)
Disclaimer: 
Notice: This message contains privileged and confidential information
intended only for the use of the addressee named above. If you are not
the intended recipient of this message you are hereby notified that you
must not disseminate, copy or take any action in reliance on it.
Any views expressed in this message are those of the individual
sender,except where the sender specifically states them to be the views
of Fintechnix Pty Ltd.


This incoming email to UWE has been independently scanned for viruses by
McAfee anti-virus software and none were detected


This email was independently scanned for viruses by McAfee anti-virus software and none were found
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Exposing DOTNET Types as External Class Library -	to_ORList.doc
Type: application/msword
Size: 57856 bytes
Desc: Exposing DOTNET Types as External Class Library -
	to_ORList.doc
Url : http://www.peerlessit.com/pipermail/openroad-users/attachments/20071122/b744e7b1/attachment-0001.doc 


More information about the Openroad-users mailing list