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
Modern Home 3D Visualization Category: 3D Animation, 3D Architecture, 3D Design, 3D Modelling, 3D Rendering, 3D Visualization, 3ds Max, Architectural Visualization Budget: ₹1500 - ₹12500 INR
24-Oct-2025 10:02 GMT
Social Media Videography Category: Editing, Video Editing, Video Production, Video Services, Videography Budget: ₹1500 - ₹12500 INR
24-Oct-2025 10:02 GMT
Georgian to English Translation -- 2 Category: English (UK) Translator, English (US) Translator, English Translation, Georgian Translator, German Translator, Language Tutoring, Translation Budget: $2 - $8 USD
24-Oct-2025 10:01 GMT
Pi Zero Power PCB Finalization Category: Circuit Board Layout, Circuit Design, DFM (Design For Manufacturing), Electrical Engineering, Electronics, Embedded Systems, PCB Layout, Prototyping, Raspberry Pi, Testing / QA Budget: $10 - $30 USD
pastic Casing Design for Energy Meter Category: 3D CAD, 3D Modelling, 3D Printing, 3D Rendering, AutoCAD, CAD / CAM, Industrial Design, Mechanical Engineering, Product Design, Solidworks Budget: ₹150000 - ₹250000 INR
24-Oct-2025 10:01 GMT
Clean 2D AutoCAD Floor Plan Category: 2D Drafting, 2D Drawing, Architecture, AutoCAD, Building Architecture, Building Design, CAD / CAM, Drafting Budget: ₹600 - ₹1500 INR
Remote Sales Agent for Travel Agency Category: CRM, Customer Service, Data Entry, Google Ads, Lead Generation, Leads, Sales, Telemarketing Budget: ₹10
24-Oct-2025 09:56 GMT
Retopo Model 3D Có Sẵn Category: 3D Animation, 3D Design, 3D Layout, 3D Modelling, 3D Rendering, Blender, Maya, Unity 3D Budget: $10 - $30 USD
24-Oct-2025 09:56 GMT
Logistics and Data Associates (Singapore) Category: Customer Service, Data Collection, Data Entry, General Office, Inspections, Local Job, Odd Jobs, Pre Inspection Visits Budget: $15 - $25 USD
24-Oct-2025 09:55 GMT
Anime AMV Video Editor Wanted Category: Adobe Premiere Pro, After Effects, Animation, Color Grading, Sound Design, Video Editing, Video Production, Video Services Budget: ₹600 - ₹1500 INR