Search:

Type: Posts; User: PaulBlay

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,504

    Never mind, I've got it (mostly) working.

    Never mind, I've got it (mostly) working.
  2. Replies
    1
    Views
    1,504

    Refreshing windows?

    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...
  3. Replies
    3
    Views
    1,555

    I need to read Japanese and I'm using wide...

    I need to read Japanese and I'm using wide characters for everything.
  4. Replies
    3
    Views
    1,555

    NOKANJI (windows.h)

    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...
  5. Replies
    1
    Views
    1,593

    [Newbie] Quick general questions about C#

    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...
  6. By looking at it. Visual Studio does, after all,...

    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...
  7. Replies
    5
    Views
    1,714

    D'oh! Yeah, it's "Compile as C++ Code (/TP)" but...

    D'oh! Yeah, it's "Compile as C++ Code (/TP)" but .c files. I forgot about that.
  8. I'm not using __T( for it's MBCS / SBCS...

    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.
  9. Replies
    5
    Views
    1,714

    Like ... int file_read(ang_file *f, _TCHAR...

    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,...
  10. Replies
    5
    Views
    1,714

    Passing by reference.

    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,...
  11. Nevermind folks - I've found the problem. For...

    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
    ...
  12. VC++ not Unicode friendly? C2001: newline in constant

    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...
  13. Replies
    4
    Views
    2,190

    Great. Would you mind me using that, with...

    Great. Would you mind me using that, with attribution, in a GPL licensed project?
  14. Replies
    4
    Views
    2,190

    Well on further checking I noticed this ... ...

    Well on further checking I noticed this ...



    So how am I supposed to convert a wchar_t string to a UTF-8 string?
  15. Replies
    4
    Views
    2,190

    wcsrtombs_s question

    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...
  16. Replies
    7
    Views
    1,340

    That's a generous offer, but if I can't get it to...

    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...
  17. Replies
    7
    Views
    1,340

    Ah, that's a new name to me. I'll take it for a...

    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.
  18. Replies
    7
    Views
    1,340

    Advice sought on GUI library / tools / code

    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...
  19. Replies
    2
    Views
    1,626

    Yes, they're all local files - no internet /...

    Yes, they're all local files - no internet / sharing / network facilities should be required. I'll have a look at SQLite.
  20. Replies
    2
    Views
    1,626

    Database library recommendations

    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(?)*)....
  21. Replies
    10
    Views
    14,107

    I also had no problems with that code. ...

    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...
  22. Replies
    10
    Views
    14,107

    Well I was using _fgettc, which (as you point...

    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...
  23. Replies
    10
    Views
    14,107

    Thanks for the feedback, both of you. I...

    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...
  24. Replies
    10
    Views
    14,107

    Reading from a UTF-8 text file

    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...
  25. Well, thanks everybody. I'll take anon up on his...

    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 ;-)
Results 1 to 25 of 47
Page 1 of 2 1 2