Author Topic: Info  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4486
    • Oxygen Basic
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

  • Jr. Member
  • **
  • Posts: 73
Re: Info
« Reply #16 on: February 09, 2021, 05:02:27 am »
Thanks Charles.

(I'm Nicola) :D

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4486
    • Oxygen Basic
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

  • Jr. Member
  • **
  • Posts: 73
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

  • Jr. Member
  • **
  • Posts: 73
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

  • Admin Support Member
  • *****
  • Posts: 4486
    • Oxygen Basic
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)