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...
Type: Posts; User: jlewand
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...
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...
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...
Thanks Salem. So, are you saying your
_tprintf x
will work but my original
_tprintf(x)
will not work as expected?
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...
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...
Simply unbelievable.
#define DEBUG
#ifdef DEBUG
#define dg(x) _tprintf(x)
#else
#define dg(x) do {} while (0)
#endif
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...
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...
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...
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 ?
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...
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...
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...
I already understand TCHAR. I just don't know how to initialize TCHAR strings. I have to keep trying every possible combination of syntax.
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...
Over on the Windows forum, it was recommended to make one's code UNI/ASCII-neutral. Hence, TCHAR for everything.
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?...
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...
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....
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.
Codeplug, thanks for the excellent links. Will read away...
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...
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...
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...