Hi ng,
I created a library in csharp which should by called by visual basic
script. The library is a proxy which provides access to a server using
dotnet-remoting features - but this is not important.
The library offers user defined data types, which are used by the proxy
interface - all of them created by using a factory.
Here is the visual basic code:
'Creating the factories
Set typeFactory =
CreateObject("PABXServerRemoteInterface.Types.PABX TypeFactory")
Set checkIn = typeFactory.CreateCheckIn("123", "4711", "Holger
Gubbels")
'Creating the proxy
Set proxyFactory =
CreateObject("PABXServerRemoteInterface.PABXProxyF actory")
Set pabxProxy = proxyFactory.CreateProxy("localhost")
'calling the interface
pabxProxy.sendGuestCheckIn checkIn, 10000
First of all I tried the code in visualbasic 6.0 using a reference to
the dll - worked fine. Then I removed the reference and tried again -
worked fine. But if I call the above code with the windows scripting
host I get an exception
"Invalid argument or procedure call" - reason is the method-call
"sendGuestCheckIn"
Could this be a problem with datatype conversion between COM and vb
script?
Any help would be appreciated!
Holger