Connecting Tech Pros Worldwide Forums | Help | Site Map

Overloading for ByRef and ByVal

Just Me
Guest
 
Posts: n/a
#1: Nov 20 '05
I'm having problems overloading SendMessage

In some cases the only difference in the parameters is ByRef or ByVal

Since that does not appear to change the signature I've been using
SendMessageRef1 and SendMessageRef2 and SendMessageRef3
to indicate which parameters are ByRef.

Is there a better way of doing that?

Thanks in advance for any help


PS

I tried to add ByRef to the call but that doesn't work.

I read about Marshal but didn't find how to solve this there (I may have
missed it).



Closed Thread