Home > Software engineering >  To solve the meaning of the following code
To solve the meaning of the following code

Time:09-25


Why wait ReadString=m_ReturnValue back, what's the meaning

CodePudding user response:

And the new string (" ", 1024) what do you mean


Novice to solve the code, thank you

CodePudding user response:

Variable with 1024 Spaces in advance, so that can read back up to 1024 ASCII characters,

This is a GetPrivateProfileString API interface function read a particular string value from initialization file, you search GetPrivateProfileString,

CodePudding user response:

Although is to support the ReadString=m_ReturnValue such wording, but standard of writing should be of VB.Net Return m_ReturnValue ,
API function calls rule is memory (including string) must be applied by the caller/release, function only to read/write memory; new string (" ", 1024) is to apply for a string of space,

CodePudding user response:

refer to the second floor of123 response:
variables in 1024 Spaces in advance, so can read back up to 1024 ASCII characters,

This is to use GetPrivateProfileString API interface function read a particular string value from initialization file, you search GetPrivateProfileString.

Thank you,

CodePudding user response:

reference Tiger_Zhao reply: 3/f
although is to support the ReadString=m_ReturnValue such wording, but standard of writing should be of VB.Net Return m_ReturnValue ,
API function calls rule is memory (including string) must be applied by the caller/release, function only to read/write memory; new string (" ", 1024) is to apply for a string of space,

Thank you very much! Doing a flood flow,

CodePudding user response:

The.net based ah, good good study, day day up,
  • Related