473,466 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VSScript==>dotnet via ComCallableWrapper

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

Jul 28 '06 #1
0 1043

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.