Hello,
I work in Microsoft tools. I am Visual Basic programmer and I use SQL server as backend database. Currently I am working in COM/DCOM technology. I have a confusion about object/variable parameter passing. I want you to please provide me a detailed awnser.
Here is the problem:-
When we pass a variable/object by val in Visual Basic then that variable's value is passed to function or procedure and when we pass a variable/object by ref then its memory address is passed rather than value itself. The procedure or function make changes directly to that address space.
What happens when we pass a reference of variable/object to a component (.dll or .exe) placed on other machine? Does that machine actually make changes directly to the address of that variable/object on client machine or what?
I couldn't figure out what happens behind the scenes. Please do me a favour in this regard. I would be highly obliged at early prompt.
Thanx
I work in Microsoft tools. I am Visual Basic programmer and I use SQL server as backend database. Currently I am working in COM/DCOM technology. I have a confusion about object/variable parameter passing. I want you to please provide me a detailed awnser.
Here is the problem:-
When we pass a variable/object by val in Visual Basic then that variable's value is passed to function or procedure and when we pass a variable/object by ref then its memory address is passed rather than value itself. The procedure or function make changes directly to that address space.
What happens when we pass a reference of variable/object to a component (.dll or .exe) placed on other machine? Does that machine actually make changes directly to the address of that variable/object on client machine or what?
I couldn't figure out what happens behind the scenes. Please do me a favour in this regard. I would be highly obliged at early prompt.
Thanx