mad98ad1
Junior Member level 3
ivisasession c#
Hello,
I can import VISA com to C++, and define resouremanager and Imessage pointer, then message pointer will be assigned as resourcemanager.open(..) it works fine. However when I move to c#, after add visa com lib into project as reference, I define resource manager rm and Imessage mg. It didn't work if I use like mg=rm.open(...). It says compiler cannot convert from Imessage object to Ivisasession object!! I am stuck. Does anyone here have experience in c#?
Thanks,
MR
Hello,
I can import VISA com to C++, and define resouremanager and Imessage pointer, then message pointer will be assigned as resourcemanager.open(..) it works fine. However when I move to c#, after add visa com lib into project as reference, I define resource manager rm and Imessage mg. It didn't work if I use like mg=rm.open(...). It says compiler cannot convert from Imessage object to Ivisasession object!! I am stuck. Does anyone here have experience in c#?
Thanks,
MR