What is LPCTSTR ???

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

What is LPCTSTR ???

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:49 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What is LPCTSTR ???

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:49 pm

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What is LPCTSTR ???

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:49 pm

by Thomas >> Sat, 14 Feb 2004 1:10:37 GMT

thank you very much


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 19 guests

cron