Search:

Type: Posts; User: MiamiCuse

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    2,416

    so it seems using %s will do for both non-UNICODE...

    so it seems using %s will do for both non-UNICODE and UNICODE variations as long as the generic **printf functions are used. Correct?

    Thanks,

    MC
  2. TCHAR is a macro which means char when UNICODE is...

    TCHAR is a macro which means char when UNICODE is defined and means wchar_t when UNICODE is not defined.

    Reference:...
  3. But I was not comparing integers, I was comparing...

    But I was not comparing integers, I was comparing characters. So what you are saying underneath it really compares the ASCII value of the characters?

    If so than the "wide" version will not work...
  4. The switch statement when comparing a character

    We have code like this in an old parser we wrote:



    char *word;

    ...
    ...
    switch (*word)
    {
  5. Replies
    8
    Views
    2,416

    Thank you Ancient Dragon...I see what you are...

    Thank you Ancient Dragon...I see what you are talking about. The data structure I have which contains strings will be either wchar_t or char depending on whether UNICODE is defined, so it works...
  6. Replies
    8
    Views
    2,416

    Unicode file I/O functions

    When using TCHAR there is generic data types tchar, generic string functions like _tcs and also _T/_TEXT. Are there any generic file I/O functions that switches between fopen/fwopen fwrite/fwwrite...
  7. Replies
    7
    Views
    6,931

    OK so from what I understand then if I have an...

    OK so from what I understand then if I have an application that creates a binary file (using fopen, fwrite, fclose...) currently and my data structure contains strings represented by the char data...
  8. Replies
    3
    Views
    3,028

    There is no way to do this within VS6? One...

    There is no way to do this within VS6? One benefit of doing it in that environment is I can pull up files selectively from the search results.
  9. Replies
    3
    Views
    3,028

    Search for patterns in source code

    I am using Visual Studio 6.0 and code is in C/C++. Commercial software with over 2000 source files scattered all over. Trying to get a handle on doing some estimates on various tasks.

    Is there a...
  10. Replies
    3
    Views
    1,920

    Thanks, just to make sure I don't need to do: ...

    Thanks, just to make sure I don't need to do:


    switch (name[i])
    {
    case L'A':
    ...
    ...
    case L'B':
    ...
  11. Replies
    3
    Views
    1,920

    Looking for null terminator

    When working with a character array:



    char name[256] = "";

    I normally check to see if it is a null string by:


    if (name[0] == '\0') ...
  12. Replies
    1
    Views
    2,823

    Tchar and %s %S

    If I use tchar to migrate my application (over 2000 source files) to wide character, I see that I can use tcsxxx functions to replace existing strxxx functions, I also noticed that there is this...
  13. Replies
    7
    Views
    6,931

    How does fwrite handle tchar?

    Investigate what it will take to port an app to use wide characters. I have a question on using tchar macro. Since tchar is really wchar_t or char depending on UNICODE #define, then does it mean...
Results 1 to 13 of 13