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
Excel Data Cleanup & Reporting Category: Data Analysis, Data Management, Data Processing, Data Visualization, Excel, Excel Macros, Excel VBA, Microsoft Office, Visual Basic Budget: ₹12500 - ₹37500 INR
20 Mar 2026 23:01 GMT
NBN Network Setup for Homes Category: Network Administration, Network Engineering, Network Security, System Admin, Troubleshooting, Windows Server, Wireless Budget: $30 - $250 AUD
20 Mar 2026 23:01 GMT
تصميم ثلاثي الأبعاد لورشة سيارات Category: 3D Architecture, 3D Design, 3D Drafting, 3D Modelling, 3D Rendering, 3D Visualization, 3ds Max, AutoCAD Budget: $30 - $250 USD
20 Mar 2026 23:00 GMT
WhatsApp Real-Time Chat Support Category: Chatbot Integration, Customer Experience, Customer Service, Customer Support, Data Entry, Documentation, Social Media Management, Technical Support, Time Management, Virtual Assistant Budget: $15 - $25 USD
Lead-Gen Before/After Solar Ad Category: Adobe Illustrator, Photoshop, After Effects, Animation, Graphic Design, Lead Generation, Social Media Marketing Budget: $30 - $250 USD
20 Mar 2026 22:56 GMT
Social Media Video Editor Category: Content Creation, Editing, Facebook Marketing, Video Ads, Video Editing, Video Post Editing, Video Production, Video Services Budget: $15 - $25 USD
20 Mar 2026 22:54 GMT
Internal Linking Across 100 Pages Category: Content Strategy, Content Writing, Data Entry, Internet Marketing, Link Building, SEO, Website Optimization Budget: $30 - $250 CAD
20 Mar 2026 22:53 GMT
Auto Racing Magazine Survey Category: Analytics, Article Writing, Content Writing, Data Analysis, Data Collection, Data Visualization, Ghostwriting, Research Budget: min $100000 USD
20 Mar 2026 22:53 GMT
Adwords keyword planner expert Category: Ad Planning & Buying, Advertising, Analytics, Digital Marketing, Google Ads, Google Adwords, Internet Marketing, Keyword Research, Search Engine Marketing (SEM), SEO Budget: $10 - $30 USD
20 Mar 2026 22:53 GMT
Motivational YouTube Shorts Editing Category: Adobe Premiere Pro, After Effects, Animation, Kinetic Typography, Motion Graphics, Sound Design, Video Editing, Video Production Budget: $250 - $750 USD
20 Mar 2026 22:52 GMT
STEP File Tweaks & Print Prep Category: 3D CAD, 3D Drafting, 3D Print Design, 3D Printing, Autodesk Fusion 360, Fusion 360 Budget: $10 - $30 AUD
20 Mar 2026 22:52 GMT
Audit & Rectification of Tracking Ecosystem Category: Conflict Resolution, Data Analysis, Digital Marketing, Google Tag Management, Meta Pixel, Technical Documentation, Tiktok Ads, WordPress Budget: $250 - $750 USD
20 Mar 2026 22:49 GMT
Kembangkan Ide Proyek Saya Category: Business Consulting, Market Research, Product Development, Product Management, Project Management, User Experience Research, User Story Writing Budget: $8 - $15 USD