Characters appear like "?" in a TextEditor programmed in C++

Hi Experts,

In 2006 I downloaded the text editor "Neatpad" by James Brown and it compiled and worked correctly:

Here is the link to the Neatpad:


It's implemented with VC6.

Now I downloaded it again and compiled it but it doesn't work correctly with Arabic characters. They appear like questions marks "?".

I don't know where is the problem.

In 2006 I have Vista on my machine and now also I am working with the same operating system.

Any suggestions on how to fix the problem?

Thanks
Masaria
MasariaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkrCommented:
Check your project settings and make sure that "Use Character Set: UNICODE" is selected and then rebuild your project. ALT+F7 will take you to the project settinggs, and IIRC you'll find that under "General". Sorry for not being more precise, but it's a while ago since I last used VC6.
0
MasariaAuthor Commented:
I checked what you said, there is no such "Use Character Set: UNICODE".

There is a folder called "Unicode_Release" in the project files and I think the author used it as intermediate files :

p1.jpg
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MasariaAuthor Commented:
Here is the link to Neatpad:

Neatpad - Catch22
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

sarabandeCommented:
did you use successfully Arabic characters in 2006? or is it the first time you try to use them?

as far as I remember, the text editor of vc6 is not capable to print unicode characters, neither you can "see" them in the debugger.

however, win32 programs should work correctly with unicode if your configuration has defined the _UNICODE and UNICODE macros in the c++ preprocessor settings. look at the c++ tab - preprocessor whether they were defined.

if you want to use literals in Unicode, you can't edit them with the vc6 text editor. also I am not sure whether you could put such texts into resource files. you may consider to download visual studio 2013 express for editing texts and you could read them in vc6 with mfc or stl (std::wifstream, std::wofstream,  and std::wstring). when the _UNICODE macro was defined the so-called T-switch in your sources was switched to use wide characters. that means all types and macros like LPTSTR, TCHAR,  _T(), would turn to LPWSTR, wchar_t,  L"..." and mfc class CString also would be based on wide strings.

Sara
0
sarabandeCommented:
note, folders or configuration names with unicode in the name, is nothing what you can rely on. those names are arbitrary and it can be that the author tried to use Unicode but witched back to multi-byte character set later. you need to check whether the unicode settings of the project configurations for debug and release still were correct. also check whether the code uses the T-switch correctly or whether they explicitly used the wide character types what could be a valid alternative to using the T types.

Sara
0
trinitrotolueneDirector - Software EngineeringCommented:
check whether you have the fonts installed on the system you are running....
0
MasariaAuthor Commented:
resolving abounded old question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.