Search:

Type: Posts; User: jlewand

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. is CodeGuru a restricted (invitation-only) website? Can't register.

    I've tried 2 different email accounts and 2 different usernames. It will get to the point that it tells me an email verification will be sent but it never arrives. I've emailed the webmaster and have...
  2. functions - pass by reference - pass by pointer - increment++ issue

    I decided to learn a little more about passing values to functions via a pretty thorough C++ tutorial. So, using the onlinecompiler.net compiler, I wrote a simple program to call two identical...
  3. The concept of recursion and, by proxy, the stack...

    The concept of recursion and, by proxy, the stack will take some mental gymnastics to deprogram myself from 30 years of programming. It's not intuitive, yet, as far as being able to crank out some...
  4. Thanks Salem. So, are you saying your _tprintf...

    Thanks Salem. So, are you saying your
    _tprintf x

    will work but my original

    _tprintf(x)

    will not work as expected?
  5. C syntax is very, very cryptic compared to ALL...

    C syntax is very, very cryptic compared to ALL those other languages I've been exposed to over the past 30+ years. It is difficult to figure out because it is so cryptic. C syntax is unlike all other...
  6. I've googled C syntax for near a month now. It's...

    I've googled C syntax for near a month now. It's very, very cryptic. Remember, I've programmed assembly for 30+ years as well as a half dozen other languages. Nothing remotely compares to C syntax in...
  7. another mystifying C syntax issue - DEBUG macro - #define

    Simply unbelievable.


    #define DEBUG
    #ifdef DEBUG
    #define dg(x) _tprintf(x)
    #else
    #define dg(x) do {} while (0)
    #endif
  8. Replies
    22
    Views
    15,141

    I was using a single TCHAR field as holding bit...

    I was using a single TCHAR field as holding bit settings for a function. I suppose I could use an int but it's counterintuitive to an assembler programmer to use a word/register to hold bit...
  9. Replies
    22
    Views
    15,141

    I already understand the internals of TCHARS. I...

    I already understand the internals of TCHARS. I do NOT fully understand the COMPILER SYNTAX of how to assign all the flavors of bits one can put in a TCHAR. Hence, my original post.

    You don't...
  10. Replies
    22
    Views
    15,141

    Why is everyone not following. The original...

    Why is everyone not following.

    The original question: please provide the many ways one can assign data (printable, hex, decimal) to a TCHAR (whether single-byte TCHAR or array) directly (and not...
  11. Replies
    22
    Views
    15,141

    I always get a compiler error when I try what you...

    I always get a compiler error when I try what you did on #7. I always have to use s t r c p y / _ t c s c p y.

    Can anyone show how to use squiggly brackets/braces to assign to T C H A R ?
  12. Thread: Bitwise shifts

    by jlewand
    Replies
    7
    Views
    2,377

    Yes, assembler comes in handy here. Most...

    Yes, assembler comes in handy here. Most instruction sets I've seen have Logical shift right (treat as unsigned) and Arithmetic shift right (propogate sign bit). I haven't done any shifting to see...
  13. The if statement has some redunancy. while a !=...

    The if statement has some redunancy. while a != 1 AND..... means post-while loop, the if ( a == 1 ) part must be true 100% of the time so you could just leave the a check off?

    A and B haven't...
  14. Replies
    22
    Views
    15,141

    iMalc, I'm inclined to use TCHAR. I have,...

    iMalc, I'm inclined to use TCHAR. I have, mistakenly, put L" in every _tprintf statement. I will change to _T. My conversion from char to TCHAR went quite quickly and with no hitches.

    Can someone...
  15. Replies
    22
    Views
    15,141

    I already understand TCHAR. I just don't know how...

    I already understand TCHAR. I just don't know how to initialize TCHAR strings. I have to keep trying every possible combination of syntax.
  16. Replies
    22
    Views
    15,141

    I saw you post that before, but I thought the...

    I saw you post that before, but I thought the concensus was use TCHAR. Jeez. I just changed everything (but it did go quite smoothly).

    Could someone at least address the int function call...
  17. Replies
    22
    Views
    15,141

    Over on the Windows forum, it was recommended to...

    Over on the Windows forum, it was recommended to make one's code UNI/ASCII-neutral. Hence, TCHAR for everything.
  18. Replies
    22
    Views
    15,141

    I give up - TCHAR, char - initializing/printing

    Google simply is not definitive for figuring out any of this C syntax.

    Can someone provide the syntax for every variation of initializing TCHAR or char single-byte (non-array) and array strings?...
  19. Replies
    11
    Views
    4,635

    No problem. However, if the FindFirstFile DOES...

    No problem. However, if the FindFirstFile DOES return the first file/directory, and there are MORE files in that directory (which there were), that was the crux of my original question. As...
  20. Replies
    16
    Views
    6,872

    OK. So far, so good. No more char in my...

    OK. So far, so good.

    No more char in my program. Found int Wmain for passing command line args as TCHAR. Works already. No converting. All will be in TCHAR from now on. No more printf, etc....
  21. Replies
    16
    Views
    6,872

    Can't edit post above. Got it working (figured...

    Can't edit post above. Got it working (figured out). My first recursion and my first passing a pointer to a function as a function argument.
  22. Replies
    16
    Views
    6,872

    Codeplug, thanks for the excellent links. Will...

    Codeplug, thanks for the excellent links. Will read away...
  23. Replies
    16
    Views
    6,872

    Another example. I've been getting my winAPI...

    Another example. I've been getting my winAPI calls to work pretty much the first time (quite lucky). I've got a recursive directory walk that I stole from codeproject.com.
    The code below produces...
  24. Replies
    16
    Views
    6,872

    I have study the generated assembler to get a...

    I have study the generated assembler to get a handle on this.

    For starters:

    if/while (whatever)

    with NO comparison operator. I would never dream of allowing a programming language construct...
  25. Replies
    16
    Views
    6,872

    Elysia, thanks for the comments. I meant to...

    Elysia, thanks for the comments.

    I meant to say I'd hate to see ANY commercial code for ANY of these languages (C, C#, C++, Java) meaning ANY of those in which Windows is involved in any way. They...
Results 1 to 25 of 44
Page 1 of 2 1 2