Welcome! Log In Create A New Profile

Advanced

Using a .NET component... some help

Posted by Alexandre Leclerc 
Alexandre Leclerc
Using a .NET component... some help
November 14, 2008 04:47PM
Hi all,

I must use a .Net component like a COM object, but... .Net. I'm just not able to make it work in WD, but in VB 2008 Express it does work well.

The code in VB is:

Public Class Form1
Private hook As AlibreX.IAutomationHook
Private rootObj As AlibreX.IADRoot

Private Sub Form1_Load...
hook = GetObject(, "AlibreX.AutomationHook")
End Sub
End Class

In WD I made the following:

pclHook est un IAutomationHook dynamique
pclHook = ObjetActif("AlibreX.AutomationHook")

But I'm always trowed the error: "Incompatible types during assignation." (Translated)

If anyone has any idea of what must be done, or any clue to find a solution, I would be grateful to hear from you.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: