Marcello,
Create a new vi, with one output (num I32), call it 'return value' or
something like that. The value can be zero (S_OK) or keep it unwired. Wire
it to the connector pane. Save the VI a DllRegisterServer.vi
Do the same again, but call the vi DllUnregisterServer.vi.
Note that you can put popup windows (one button dialogs) in the vi's, for
testing purposes.
When building the dll, add the two vi's to the project as 'Add Exported
VI...'. Select the indicator 'return value' as 'return value'.
Now you can call Regsvr32.exe to register and unregister the dll! I don't
know what else VBScript needs, but so far so good...
Please let me know your preceedings...
Regards,
Wiebe.
"Marcello Barboni"
wrote in message
news:Xns920784B5
D9567nospamnospamit@130.251.200.249...
> Hi to all,
> I'd like to know if there is a way to create a COM compliant dll in
> labview, e.g. a dll that I can register via regsvr32 and be loaded from a
> scripting language (VBScript or JavaScript).
>
> The problem is that javascript will not allow me to load a "simple" dll
> from the filesystem, and apparently labview cannot create an activex dll.
> As Wiebe@AIR pointed out, I should add some registry keys to register my
> dll but I didn't find any docs on the subject.
>
> Any suggestion?
>
> Thank you in advance
>
> Marcello Barboni