Page 1 of 1

What is LPCTSTR ???

Posted: Fri Aug 07, 2009 2:49 pm
by ConvertFromOldNGs
by Thomas >> Fri, 13 Feb 2004 16:53:09 GMT

Hi there! I would like to import an ActiveX control to JADE and I got an example for C++ .

What does (LPCTSTR) do?

netvideo1.setLocalIPAddress( (LPCTSTR)”10.110.0.10”, 3000 );

How can I change this into correct JADE syntax?

Thanks

Re: What is LPCTSTR ???

Posted: Fri Aug 07, 2009 2:49 pm
by ConvertFromOldNGs
by Torrie >> Fri, 13 Feb 2004 17:37:11 GMT

The LPCTSTR determins how the functions receives the IP address. In this case it passes a pointer to the string. Jade handles the pointers internally.

When the active X control is imported into Jade the method should have a signature like

setLocalIPAddress( adr : String; port:Integer);

In which case you can just pass in the IP address eg

setLocalIPAddress( "10.110.0.10", 3000);

You might want to check out the Using External Methods and Functions in the developers reference.

Re: What is LPCTSTR ???

Posted: Fri Aug 07, 2009 2:49 pm
by ConvertFromOldNGs
by Thomas >> Sat, 14 Feb 2004 1:10:37 GMT

thank you very much