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
NeoForge Limestone Block Variants Category: Game Design, Game Development, Game Testing, Java, JSON, Minecraft, Software Development, Software Engineering Budget: $250 - $750 CAD
24-Aug-2025 10:04 GMT
Multilingual Hotel Investment Website Category: Content Management System (CMS), Graphic Design, HTML, SEO, Web Design, Web Development, WordPress Budget: €2 - €6 EUR
Document Proofreading in Spanish Language Category: Content Writing, Copy Editing, Editing, English (US) Translator, Language Tutoring, Linguistics, Proofreading, Spanish Translator, Spanish Tutoring, Translation Budget: ₹600 - ₹1500 INR
24-Aug-2025 10:00 GMT
US Footwear Sales Strategy Development Category: Brand Management, Business Analysis, Business Development, Digital Marketing, Internet Marketing, Market Analysis, Market Research, Marketing Budget: $8 - $15 USD
Application development Category: API Development, Backend Development, Cloud Development, Database Management, Mobile App Development, Python, Software Development, User Interface / IA, Web Application Budget: ₹250000 - ₹500000 INR
24-Aug-2025 09:58 GMT
Zen Cart Payment Module Development Category: API Integration, ECommerce, MySQL, Payment Processing, PHP, Software Architecture, Software Development, Zen Cart Budget: $20 - $100 USD
24-Aug-2025 09:56 GMT
Crypto Grabber Development Category: API Integration, Blockchain, C, Programming, Cryptocurrency, JavaScript, PHP, Software Architecture, Software Development Budget: ₹600 - ₹1500 INR
24-Aug-2025 09:54 GMT
Hindi Love Song Writer Category: Audio Production, Audio Services, Creative Writing, Hindi Translator, Music, Music Production, Poetry, Romance Writing Budget: ₹750 - ₹1250 INR
24-Aug-2025 09:52 GMT
Organic Cooking Channel Subscriber Boost Category: Content Creation, Content Marketing, Facebook Marketing, SEO, Social Media Management, Social Media Marketing, Twitter, Video Editing, YouTube Budget: ₹600 - ₹1500 INR
24-Aug-2025 09:50 GMT
Seeking a talented Native Spanish Subtitle Translator Category: Castilian Spanish Translator, Editing, English (US) Translator, Language Tutoring, Linguistics, Proofreading, Spanish Translator, Subtitles & Captions, Translation, Video Services Budget: $250 - $750 USD
24-Aug-2025 09:50 GMT
Twitter Sentiment Analysis with AI Category: Data Mining, HTML, Java, Machine Learning (ML), Natural Language Processing, NumPy, Pandas, Python, Sentiment Analysis, Streamlit Budget: ₹12500 - ₹37500 INR