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 Open-Plan 3-4-Bedroom Design Category: 3D Modelling, 3D Rendering, Building Architecture, Building Design, Building Information Modeling, Interior Design, Revit, SketchUp Budget: ₹1500 - ₹12500 INR
Distribuição de Música Pop/Eletrônica em streamins Category: Audio Services, Brand Management, Branding, Content Creation, Digital Marketing, Market Research, Music, Social Media Marketing, Translation, Voice Talent Budget: $10 - $30 USD
26-Nov-2025 05:00 GMT
Flutter Raspberry Pi App!!!! Category: Android, Backend Development, Bluetooth Low Energy (BLE), Flutter, Internet Of Things (IoT), IOS Development, IPhone, Mobile App Development, Raspberry Pi, REST API Budget: ₹12500 - ₹37500 INR
26-Nov-2025 04:59 GMT
Flutter Raspberry Pi App!!! Category: Android, Backend Development, Bluetooth Low Energy (BLE), Flutter, Internet Of Things (IoT), IOS Development, IPhone, Mobile App Development, Raspberry Pi, REST API Budget: ₹1500 - ₹12500 INR
Zoho Modules Development & Training Category: API Integration, CRM, HTML, Payroll, PHP, Software Architecture, Zoho, Zoho Creator, Zoho CRM Budget: ₹12500 - ₹37500 INR
26-Nov-2025 04:55 GMT
TikTok Blue Badge Acquisition Category: Brand Management, Content Creation, Digital Marketing, Influencer Marketing, SEO, Social Media Management, Social Media Marketing, TikTok Budget: $30 - $250 USD