am using ms vc++ - i need as simple program to concatenate 3 wchar_t* variables into one inside a loop. problem description is attached. it is also listed below:
I am having a problem with wchar_t* variables. If I create an initial wchar_t* by using something like:
wchar_t* InitValue = L”SM_Lst_”;
my expectation is that InitValue will have a length of 16: • 2 bytes for each of the y characters in the string and 2 chars for the null terminator. • sizeof(L"SM_Lst_"), in fact, returns 16
I need to construct a loop. In pseudo code it is
Int CharCount;
wchar_t* AddString = L””; wchar_t* Name = L””;
I = 0; while(i < 3){ AddString = I formatted as “%03d” Name = InitString + AddString + “_n”;
CharCount = SomeFunc(Name); // which will return 26 for each iteration
i ++; }
Here are the requirements:
1. Name will have a value of L”SM_Lst_000_n”, L”SM_Lst_001_n” and L”SM_Lst_002_n” for each of the iterations, respectively 2. SomeFunc (e.g. wcslen, sizeof etc…) will return a CharCount value of 26 3. The app must be work in VS2022 as a Dialog based app
No need to develop the app – ie I will accept code but the code hast to work. There are an awful lot of examples on the internet that simply do not work
Application anti-gaspillage alimentaire Gabon Category: Android, API Development, Graphic Design, Mobile App Development, UI / User Interface, User Interface / IA, UX / User Experience, Web Development Budget: €30 - €250 EUR
14-Mar-2026 17:01 GMT
Abdelhadi 0012010 Category: Data Cleansing, Data Entry, Data Extraction, Data Processing, Excel, PDF Budget: £20 - £250 GBP
14-Mar-2026 17:01 GMT
Textile Inventory Tracking Excel Sheet Category: Copy Typing, Data Entry, Data Processing, Excel, Excel VBA, PDF, Visual Basic, Word Budget: ₹100 - ₹400 INR
14-Mar-2026 17:00 GMT
Residential Floor Plan and 3D Renderings Category: 3D Architecture, 3D Design, 3D Modelling, 3D Rendering, Architectural Visualization, AutoCAD, Building Design, Interior Design Budget: $250 - $750 USD
14-Mar-2026 17:00 GMT
Cartoonish Hockey Team Logo Patch Category: 2D Animation, Character Illustration, Creative Design, Design, Digital Art, Graphic Design, Illustration, Logo Design, Photoshop Budget: $250 - $750 USD
14-Mar-2026 17:00 GMT
Web Design & Branding Setup Category: Adobe XD, Branding, Graphic Design, Logo Design, Sketch, Typography, UI / User Interface, User Interface / IA, Web Design, Web Development Budget: ₹600 - ₹1500 INR
14-Mar-2026 16:59 GMT
Comprehensive Article on Photosynthesis for Students Category: Academic Writing, Article Rewriting, Article Writing, Biology, Content Writing, Education & Tutoring, Medical Writing, Research Writing, Scientific Writing, Technical Writing Budget: $30 - $250 USD
14-Mar-2026 16:58 GMT
Reparar evento Purchase AnyTrack Category: API, API Integration, Debugging, Laravel, PHP, Software Development, Web Application Budget: $10 - $30 USD
Stamped Foundation Design, Steel Building Category: AutoCAD, Building Architecture, Building Design, Building Information Modeling, CAD / CAM, Civil Engineering, Construction Management, Engineering Drawing Budget: $250 - $750 USD