Author Topic: Info  (Read 1419 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Re: Info
« Reply #15 on: February 09, 2021, 04:27:11 AM »
Hi Nicola,

char and zstring are both null-terminated strings with 8bit characters. wchar and wzstring are null-terminated strings with 16bit characters. They are the same as the char types used in Windows.

bstring and wbstring are likewise windows OLE/BSTR strings.

string and wstring are oxygen-native strings based on the above. But they have automatic garbage collection.

You can use strings as char* parameters in Windows API calls. The compiler will sort it :)
« Last Edit: February 09, 2021, 05:08:52 AM by Charles Pegge »

Nicola

  • Guest
Re: Info
« Reply #16 on: February 09, 2021, 05:02:27 AM »
Thanks Charles.

(I'm Nicola) :D

Charles Pegge

  • Guest
Re: Info
« Reply #17 on: February 09, 2021, 05:15:52 AM »
Apologies!  :-[

We have 2 women here, a considerable rarity for a Basic forum.

Nicola

  • Guest
Re: Info
« Reply #18 on: February 10, 2021, 12:57:03 AM »
My wife hates the PC because she sees it as a competitor to my relationship with her.
 ;D ;D

Nicola

  • Guest
Re: Info
« Reply #19 on: February 10, 2021, 01:44:38 AM »
Hi Charles.
To sum up on strings, is it okay as I reported in this picture?

Also could you tell me the use of WIDE?

ANY can be used for both numbers and strings?
« Last Edit: February 10, 2021, 04:39:16 AM by Nicola »

Charles Pegge

  • Guest
Re: Info
« Reply #20 on: February 11, 2021, 03:03:24 AM »
Hi Nicola,

Wide chars are for Unicode. There are some demos in examples\WideChars\

Any* does the same as void* in C, passing the address of any type (by reference)