0
Besvaret

VB DLLs and Objects

Justin Blaauw 9 år siden i Studio / Sources opdateret af Gandalf 9 år siden 2
I am fairly new to the Microsoft experience, but was wondering if the DLLs have to be C# or can they be VB to use in Warewolf? Can I create objects in the DLL and access them from Warewolf ?
source
Under vurdering
Hi Justin,

Yes it can be done. But you need to wrap the VB DLL because VB compiles to unmanaged code.
The wrapper wraps the unmanaged DLL within a managed DotNET DLL.
Its a fairly straightforward process. CodeProject have an article and some source samples to help you along the way.

http://www.codeproject.com/Articles/154144/Using-Unmanaged-VB-Code-in-NET

The other key issue of importance is that Warewolf is an ESB, so we only work with objects that can be serialized, so your VB methods that you call from Warewolf need to return simple, serializable objects.

I hope this helps.

Kundesupport af UserEcho