[U2] Unidata 7.1.9 and .Net DLL

2010-07-20 Thread Don
Does anyone know if you can hook/link a .NET dll (Managed code) into Unidata
7.1.9 (Windows).  

I know you can with COM .DLL by creating an E type voc entry. 
Sample COM DLL Voc entry
1 E
2 E:\Vertex\VertexUtils\VertexDriver.DLL
3 v_LocConnect
4 POINTER
5 CHAR_PTR
6 CHAR_PTR
7 CHAR_PTR
8 CHAR_PTR
9 INT

I was hoping to update the VertexDriver.DLL (Currently COM/_cdecl) to a .Net
dll. I really hate writing c code.


David Wolverton, you out there? I know you have some experience writing c -
Vertex utils. 

I may just end up writing a webservice to handle this and have Unidata call
the webservice.

Just want to check before I start writing this.


Thanks for any assistance.

Donald Verhagen
u2-usersrem...@thissoutheast-florida.com






___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unidata 7.1.9 and .Net DLL

2010-07-20 Thread David Wolverton
Vertex's new code for passing XML is pretty sweet -- it's a different
interface, but worth checking out.  It's called their 'Enhanced Interface'
version.

DW

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Don
Sent: Tuesday, July 20, 2010 9:21 PM
To: 'U2 Users List'
Subject: [U2] Unidata 7.1.9 and .Net DLL

Does anyone know if you can hook/link a .NET dll (Managed code) into Unidata
7.1.9 (Windows).  

I know you can with COM .DLL by creating an E type voc entry. 
Sample COM DLL Voc entry
1 E
2 E:\Vertex\VertexUtils\VertexDriver.DLL
3 v_LocConnect
4 POINTER
5 CHAR_PTR
6 CHAR_PTR
7 CHAR_PTR
8 CHAR_PTR
9 INT

I was hoping to update the VertexDriver.DLL (Currently COM/_cdecl) to a .Net
dll. I really hate writing c code.


David Wolverton, you out there? I know you have some experience writing c -
Vertex utils. 

I may just end up writing a webservice to handle this and have Unidata call
the webservice.

Just want to check before I start writing this.


Thanks for any assistance.

Donald Verhagen
u2-usersrem...@thissoutheast-florida.com






___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unidata 7.1.9 and .Net DLL

2010-07-20 Thread Robert Houben
Check out regasm.exe (part of the .NET SDK).  You can use it to create a COM 
Interop interface to an assembly.  Note that on a x64 system there is one 
version for 32 bit, and another one for 64 bit access.

You can add these lines to a PostBuildEvent:

%25Windir%25\Microsoft.NET\Framework\v2.0.50727\regasm $(TargetPath)
%25Windir%25\Microsoft.NET\Framework64\v2.0.50727\regasm $(TargetPath)

I haven't tried it myself, so your mileage may vary. Void where prohibited... 
etc...
-Original Message-
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Don
Sent: Tuesday, July 20, 2010 7:21 PM
To: 'U2 Users List'
Subject: [U2] Unidata 7.1.9 and .Net DLL

Does anyone know if you can hook/link a .NET dll (Managed code) into Unidata
7.1.9 (Windows).

I know you can with COM .DLL by creating an E type voc entry.
Sample COM DLL Voc entry
1 E
2 E:\Vertex\VertexUtils\VertexDriver.DLL
3 v_LocConnect
4 POINTER
5 CHAR_PTR
6 CHAR_PTR
7 CHAR_PTR
8 CHAR_PTR
9 INT

I was hoping to update the VertexDriver.DLL (Currently COM/_cdecl) to a .Net
dll. I really hate writing c code.


David Wolverton, you out there? I know you have some experience writing c -
Vertex utils.

I may just end up writing a webservice to handle this and have Unidata call
the webservice.

Just want to check before I start writing this.


Thanks for any assistance.

Donald Verhagen
u2-usersrem...@thissoutheast-florida.com






___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] Unidata 7.1.9 and .Net DLL

2010-07-20 Thread Tony Gravagno
 From: Donald Verhagen
 Does anyone know if you can hook/link a .NET dll (Managed 
 code) into Unidata 7.1.9 (Windows).  
 
 I was hoping to update the VertexDriver.DLL (Currently 
 COM/_cdecl) to a .Net dll. I really hate writing c code.

Don - This isn't rocket science (pun intended).  Google for call
..net from com and related keywords regasm and Make Assembly
COM Visible.

I should also mention that mv.NET also has the capability to
trigger .NET code events from the MV DBMS, though it's not as
fast as linked DLLs.  In full disclosure, my company is a
worldwide distributor for this product, so consider this
paragraph an AD.

Speaking of web services, I've written a few articles in my blog
recently (link below), about automatic generation of fully
functional Web Services against common BASIC code.  I dunno if
any of that matches your plans.

HTH

Tony Gravagno
Nebula Research and Development
TG@ remove.pleaseNebula-RnD.com
remove.pleaseNebula-RnD.com/blog
Visit PickWiki.com! Contribute!
http://Twitter.com/TonyGravagno

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users