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
Modernize WP Site Category: HTML, PHP, UI / User Interface, Web Design, Web Development, WordPress Budget: $250 - $750 USD
02-Sep-2025 22:00 GMT
AI NLP Model with SQL Integration Category: Data Science, FastAPI, Machine Learning (ML), Model Deployment, MySQL, Natural Language Processing, Python, SQL, SQLite Budget: $8 - $15 USD
02-Sep-2025 22:00 GMT
Wikipedia Page Data Entry Category: Article Rewriting, Content Writing, Copy Editing, Editing, Proofreading, Research, WIKI, Wikipedia Budget: $250 - $750 USD
Interior Design for Madrid Home Category: 3D Rendering, Building Architecture, Home Design, Interior Design, Interiors, Lighting Design, Project Management Budget: €750 - €1500 EUR
02-Sep-2025 21:58 GMT
Figma to React Website Conversion Category: Animation, CSS, Figma, Frontend Development, HTML, HTML5, JavaScript, User Interface / IA, Web Design, Web Development Budget: $30 - $250 CAD
02-Sep-2025 21:57 GMT
Penerjemah Mandarin-Indonesia Jogja Category: Customer Service, Indonesian Translator, Language Tutoring, Public Speaking, Translation Budget: $250 - $750 USD
02-Sep-2025 21:56 GMT
Dropshipping Guide Article Creation Category: Afrikaans Translator, Article Writing, Content Writing, Copywriting, Dropshipping, Facebook Marketing, Instagram Marketing, Social Media Marketing, Translation, Video Services Budget: $10 - $30 USD
02-Sep-2025 21:56 GMT
Business Document text correction Category: Copy Editing, Editing, English Grammar, Microsoft Word, Proofreading, Typing Budget: £250 - £750 GBP