Click here to Skip to main content
14,388,816 members

Managed C++/CLI

 
GeneralRe: delete all label in windows form CLI Pin
Richard MacCutchan13-Jul-15 0:23
mveRichard MacCutchan13-Jul-15 0:23 
GeneralRe: delete all label in windows form CLI Pin
TheCaptain1013-Jul-15 0:37
MemberTheCaptain1013-Jul-15 0:37 
GeneralRe: delete all label in windows form CLI Pin
Richard MacCutchan13-Jul-15 0:48
mveRichard MacCutchan13-Jul-15 0:48 
Questionremove all label in windows form c++ Pin
TheCaptain1011-Jul-15 19:33
MemberTheCaptain1011-Jul-15 19:33 
AnswerRe: remove all label in windows form c++ Pin
Richard MacCutchan11-Jul-15 22:57
mveRichard MacCutchan11-Jul-15 22:57 
QuestionHow do I convert an .mp3 file to an .sty (style file) - C/C++? Pin
Member 1171281228-Jun-15 22:01
MemberMember 1171281228-Jun-15 22:01 
QuestionRe: How do I convert an .mp3 file to an .sty (style file) - C/C++? Pin
Richard MacCutchan28-Jun-15 22:30
mveRichard MacCutchan28-Jun-15 22:30 
QuestionWideCharToMultiByte vs Encoding::UTF8->GetBytes Pin
John Schroedl17-Jun-15 9:48
professionalJohn Schroedl17-Jun-15 9:48 
I'm looking into perf tuning in our application and one area we've identified when converting many strings between String^ and a native array of UTF-8 chars. Currently, I use code similar to this:

array<Byte>^ byteArray = System::Text::Encoding::UTF8->GetBytes(str);
pin_ptr<Byte> p = &byteArray[0];


I then proceed to memcpy from p to my own storage block.

Has anyone compared Encoding::UTF8->GetBytes() to pinning a string^ and using WideCharToMultiByte(CP_UTF8, ...)?

I suspect it will be faster to use WideCharToMultiByte even if I call twice (once to get byte count, once to convert) and will investigate today but I thought there may be a war story or two out there.

Any lessons learned?

John
AnswerRe: WideCharToMultiByte vs Encoding::UTF8->GetBytes Pin
John Schroedl17-Jun-15 10:29
professionalJohn Schroedl17-Jun-15 10:29 
GeneralRe: WideCharToMultiByte vs Encoding::UTF8->GetBytes Pin
Richard Andrew x6417-Jun-15 16:36
professionalRichard Andrew x6417-Jun-15 16:36 
QuestionConvert From c# - For Report Viewer Report save as PDF format Pin
Paramu197316-Jun-15 21:41
MemberParamu197316-Jun-15 21:41 
AnswerRe: Convert From c# - For Report Viewer Report save as PDF format Pin
Richard MacCutchan16-Jun-15 22:54
mveRichard MacCutchan16-Jun-15 22:54 
AnswerRe: Convert From c# - For Report Viewer Report save as PDF format Pin
John Schroedl17-Jun-15 9:39
professionalJohn Schroedl17-Jun-15 9:39 
GeneralRe: Convert From c# - For Report Viewer Report save as PDF format Pin
Paramu197317-Jun-15 16:07
MemberParamu197317-Jun-15 16:07 
QuestionOOP - Error | Unhandled exception at 0x0FD2CCC8 (msvcp110d.dll) Pin
Member 1164129910-Jun-15 3:23
MemberMember 1164129910-Jun-15 3:23 
QuestionRe: OOP - Error | Unhandled exception at 0x0FD2CCC8 (msvcp110d.dll) Pin
Richard MacCutchan10-Jun-15 22:32
mveRichard MacCutchan10-Jun-15 22:32 
QuestionEnabling ListControl pane in MFC (C++) Pin
Yateesh KR12-May-15 23:14
MemberYateesh KR12-May-15 23:14 
QuestionRe: Enabling ListControl pane in MFC (C++) Pin
Richard MacCutchan13-May-15 3:55
mveRichard MacCutchan13-May-15 3:55 
QuestionInheritance tricky question Pin
Amrit Agr12-May-15 10:30
MemberAmrit Agr12-May-15 10:30 
AnswerRe: Inheritance tricky question Pin
Sascha Lefèvre12-May-15 12:38
professionalSascha Lefèvre12-May-15 12:38 
GeneralRe: Inheritance tricky question Pin
Amrit Agr13-May-15 8:47
MemberAmrit Agr13-May-15 8:47 
AnswerRe: Inheritance tricky question Pin
Sascha Lefèvre13-May-15 10:12
professionalSascha Lefèvre13-May-15 10:12 
Questionenglish language implementation Pin
Member 936602117-Apr-15 4:58
professionalMember 936602117-Apr-15 4:58 
AnswerRe: english language implementation Pin
Member 936602117-Apr-15 5:00
professionalMember 936602117-Apr-15 5:00 
Questionmultiple Pin
memoarfaa16-Apr-15 2:28
Membermemoarfaa16-Apr-15 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.