15,905,427 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Supraspinatus (Top 8 by date)
Supraspinatus
20-Jul-14 22:13pm
View
tried implementing interfaces. Besides that I couldn't find anything useful that could help me. I don't need a detailed answered I'll be happy if someone just tells me what to type in google so I'll know what direction to look for.
P.S
thanks for the link I'm gonna go through it even though it doesn't solve my problem. And I'm making a crafting calculator for an online game. It was the best way I could think of.
Supraspinatus
12-Jul-14 6:48am
View
Thank you!
Supraspinatus
10-Jul-14 6:46am
View
We are talking about games which are not open source, to which I want to add my own features, create mods and more. For this I need to be able to get information from the game itself, such as the health and mana bars of my character, the nearest monster or what ever, and should be able to insert my code into the game or make an outside code that will react to this information. I don't even think the programming language is too relevant. The question is how do I receive this information from a running game.
I hope I have explained myself in a better way and you could assist me with that.
Supraspinatus
10-Jul-14 6:20am
View
c++ mostly. I don't have much experience besides a little WINAPI programming.
Supraspinatus
24-Jun-14 17:32pm
View
Thanks for your answer, but still even the
wchar_t ch2[] = L"black\u263a";
is bringing the same result... Thanks for correcting my code btw I'm still fairly new to c++.
Supraspinatus
24-Jun-14 9:06am
View
Thanks for your solution CPallini but unfortunately it isn't working. The source code doesn't bring the results I want and when I understood the step by step guide and wrote my version of the code (which is basically the same) I got something completely random.
Here's my code:
UINT oldcp = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
wchar_t output[] = L"почему у меня не хера не работает";
int buffSize = WideCharToMultiByte(CP_UTF8, 0, output, -1, NULL, 0, NULL, NULL);
char *buffer = new char[buffSize];
WideCharToMultiByte(CP_UTF8, 0, output, -1, buffer, buffSize, NULL, NULL);
wprintf(L"%S", buffer);
delete []buffer;
SetConsoleOutputCP(oldcp);
Here's the output:
????NЗ?╡??N? N? ???╡??N? ???╡ NЕ?╡NИ?░ ???╡ NИ?░?▒??NВ?░?╡NВ
Supraspinatus
24-Jun-14 9:05am
View
Deleted
Thanks for your solution CPallini but unfortunately it isn't working. The source code doesn't bring the results I want and when I understood the step by step guide and wrote my version of the code (which is basically the same) I got something completely random.
Here's my code:
<pre lang="c++">
UINT oldcp = GetConsoleOutputCP();
SetConsoleOutputCP(CP_UTF8);
wchar_t output[] = L"почему у меня не хера не работает";
int buffSize = WideCharToMultiByte(CP_UTF8, 0, output, -1, NULL, 0, NULL, NULL);
char *buffer = new char[buffSize];
WideCharToMultiByte(CP_UTF8, 0, output, -1, buffer, buffSize, NULL, NULL);
wprintf(L"%S", buffer);
delete []buffer;
SetConsoleOutputCP(oldcp);
</pre>
Here's the output:
<pre lang="text">????NЗ?╡??N? N? ???╡??N? ???╡ NЕ?╡NИ?░ ???╡ NИ?░?▒??NВ?░?╡NВ</pre>
Supraspinatus
24-Jun-14 4:13am
View
Thanks a lot for the answer! But I still got some problems regarding them so I'll ask them.
1) It is possible to output the smiley on console, the code for it is:
char c = 1;
cout << c << endl;
So it must be possible to make a smiley with unicode and wchar_t too
2)Did not fix the problem. The output is the same and still I can't type a ☺ with wchar_t. And it makes the same problem for any other language letters too.
3) Still doesn't work
Show More