• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

Using Arrays with DCOM

How do I pass Arrays using DCOM in VB5?

How do I do 2-way communication so that the client is also a server and the server also a client???

To clarify I want the server to send an Array to the client and to receive an Array from the client

Last bit - I promise

What is the best way to pass a UDT using DCOM?  I know it doesn't support it - any tips?
0
garygreen
Asked:
garygreen
  • 5
  • 4
1 Solution
 
EDDYKTCommented:
On your server, declare

func(myarray() as integer, ....)


When you call on client

dim myarray(10) as integer
server.func(myarray(),...

where server is server object

I believe you should get the idea.
0
 
garygreenAuthor Commented:
Edited text of question.
0
 
garygreenAuthor Commented:
Thanks for the info - very useful
Can you help with the server/client side?

Thanks
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
EDDYKTCommented:
I don't quite understand your question.

You can build two class on your app.

One class is responsible for server and the other is for client.

?->
0
 
garygreenAuthor Commented:
Edited text of question.
0
 
EDDYKTCommented:
Same idea

On your server, declare

func(myarray() as integer, returnarray () as integer)


When you call on client

dim myarray(10) as integer
server.func(myarray(),returnarray () as integer)

where server is server object

I believe you should get the idea.

As long as you use byref (by default) then it whould be ok
0
 
garygreenAuthor Commented:
Edited text of question.
0
 
garygreenAuthor Commented:
Adjusted points to 300
0
 
EDDYKTCommented:
The easy way is used array of string.

You can strip the value out from the other size.

0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now