| |

VerySource

 Forgot password?
 Register
Search
View: 544|Reply: 2

Problems with this pointer

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-17 00:30:02
| Show all posts |Read mode
ATL :: CSimpleStringT <BaseType, t_bMFCDLL> :: GetBuffer ”: 2 overloads legal conversion without“ this ”pointer
The problem code when using MultiByteToWideChar function is as follows:
MultiByteToWideChar (CP_ACP, MB_PRECOMPOSED, strArray.GetAt (0) .GetBuffer (0), -1, olePath, strArray.GetAt (0) .GetLength () + 1);
Please give pointer
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-1 13:30:01
| Show all posts
CString str;
str = strArray.GetAt (0);
MultiByteToWideChar (CP_ACP, MB_PRECOMPOSED, (LPCSTR) str.GetBuffer (0), -1, olePath, strArray.GetAt (0) .GetLength () + 1);
Give it a try
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-5-14 15:30:01
| Show all posts
Thank you upstairs, why is there such a problem?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list