Never mind, I've got it (mostly) working.
Type: Posts; User: PaulBlay
Never mind, I've got it (mostly) working.
Here's the basic situation (I may have some of the terms wrong ...):
1. I write some double-width kanji characters to a console window. (Windows XP, VC++)
The text appears with only half of...
I need to read Japanese and I'm using wide characters for everything.
NOKANJI stops inclusion of "kanji support stuff" (as it is so elegantly put). But what _is_ that kanji support stuff? I might well need it (or be able to make use of it) but I don't know where it...
C# has some features that are very appealing to me - particularly the array bounds checking and such. (That and pointers has caused me lots of problems in C)
Am I mad to consider re-writing a...
By looking at it. Visual Studio does, after all, display the file correctly in the IDE. (As set with the "Auto-detect UTF-8 encoding without signature." option) So the left hand knows what it's...
D'oh! Yeah, it's "Compile as C++ Code (/TP)" but .c files. I forgot about that.
I'm not using __T( for it's MBCS / SBCS functionality, I'm using it as a handy-to-remember macro name that I can redefine or search/replace at a later point.
Like ...
int file_read(ang_file *f, _TCHAR *buf, size_t n)
as far as I recall. There are other size_t's and _TCHAR's in the same file so I'd be surprised if they were the problem.
Yeah,...
This is the basic of basics, but for some reason I keep getting the compile error
error C2143: syntax error : missing ')' before '&'
int file_read(ang_file *f, _TCHAR *buf, size_t n,...
Nevermind folks - I've found the problem.
For future reference these errors occurred because I was saving with
Unicode (UTF-8 without signature) - Codepage 65001
as soon as I switched to
...
I've got this little bit of simple code, and it produces lots of "C2001: newline in constant" errors.
The odd thing is that the source code file is in Unicode (UTF-8) and the program is being...
Great. Would you mind me using that, with attribution, in a GPL licensed project?
Well on further checking I noticed this ...
So how am I supposed to convert a wchar_t string to a UTF-8 string?
OK I'm using VC++ and I've read the MSDN description at
wcsrtombs_s
but I've obviously misunderstood something.
The following function is supposed to produce a popup window with the message...
That's a generous offer, but if I can't get it to compile myself then I can't really assume that everybody else will be able to and I want other people to be able to compile / use my project. Wish...
Ah, that's a new name to me. I'll take it for a spin.
The problem with Googling things like "GUI tool C++" is that you get a ton or hits, but it's hard to know what's good and relevant.
Basically I'm looking for something to take care of (much of) the drudge work of creating and handling windows and basic display / input objects. I'm new to C++ and going straight into the Windows...
Yes, they're all local files - no internet / sharing / network facilities should be required. I'll have a look at SQLite.
I'm working (or fiddling with) a program that loads data from a bakers dozen of text files into structures + a number of arrays then dumps them into binary files (then reloads the binary files(?)*)....
I also had no problems with that code.
Obviously the problem lies in my code (which is a little complicated to post because relevant bits are scattered around the place). I'll see if I can write...
Well I was using _fgettc, which (as you point out) is just defined as fgetwc. Is that a "byte oriented" function? Because the problem I had is that the file content was not converted correctly into...
Thanks for the feedback, both of you.
I am, and I know that I could, but I do have my reasons. Basically I thought they would be handy macros to redefine when/if I get to the point of looking...
I've got a UTF-8 format (no BOM) text file that I want to read from.
I open it with
_tfopen_s(&f->fh, buf, "rb, ccs=UTF-8");
and everything looks OK to that point. Later I try to get a...
Well, thanks everybody. I'll take anon up on his suggestion and see how it goes.
(Wish me luck on the project, I've almost certainly bitten off more than I can chew ;-)