L
L
levotskiy2015-10-08 19:42:31
C++ / C#
levotskiy, 2015-10-08 19:42:31

How to find a substring from an ANSI file in a string from a unicode file in C++?

Hello! There is a source file with text (can be either ANSI or Unicode ) and a file with words that need to be replaced in the source text (always in ANSI). For the source file in ANSI everything works, but as soon as I switch to Unicode, the search for substrings does not give positive results. Tried using the MultiByteToWideChar and mbstowcs functions but that didn't help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-10-08
@vilgeforce

What's the problem with MultiByteToWideChar? Is the transformation taking place?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question