12 Sep
2002
12 Sep
'02
10:05 a.m.
When should I use wstr and when ptr for wide strings in the spec files functions specification?
Looking at existing files I see that LPCWSTR type is usually mapped to wstr,
It should almost always map to wstr.
but LPWSTR is sometimes mapped to ptr, sometimes to wstr.
As the general rule it depends on whether the parameter is IN, OUT or IN/OUT. IN: wstr OUT: ptr IN/OUT: wstr PS. It is for debug messages. If the parameter is OUT it might not be initialized as thus it should not be printed as a string (in this case a wide string).
8495
Age (days ago)
8495
Last active (days ago)
0 comments
1 participants
participants (1)
-
Patrik Stridvall