Type: Posts; User: GCDEF
Search took 0.27 seconds; generated 28 minute(s) ago.
Are you trying to write a key logger?
July 16th, 2014, 05:57 AM
You may want to look up the difference between & and && too.
July 15th, 2014, 10:06 AM
If you're using .Net you need to ask in the managed C++ forum. You'll get a much better response if you use code tags to maintain formatting.
July 12th, 2014, 08:49 AM
You need two variables, one to hold the max value, the other to hold the min value.
Set them each to the first element in the vector.
Iterate the vector replacing the values in the variables when...
July 10th, 2014, 07:53 AM
What does that have to do with your original post? You really need to clarify, hopefully with more than one sentence, what it is you're really trying to do.
About what? I'm guessing you're stumped because you're thinking about code, not the algorithm. Figure out in English, without even thinking about code, what exactly the logic is for drawing the...
Sounds like you need to step through the MFC code and get a better understanding of how it all works.
It would probably make more sense to change your project properties to use MBCS instead of Unicode.
CArchive has a ReadString function that reads lines of text. Looks like it's designed to do what you want. Instead of using the >> operators, just use ReadString.
June 25th, 2014, 07:30 AM
Do you have anything to contribute other than bumping old threads to spam this tool of yours?
June 24th, 2014, 01:53 PM
Don't know how I missed that. I looked for it several times.
June 24th, 2014, 01:39 PM
Stepping over array boundaries is a big problem that will make a program do all kinds of weird things. I can't stress enough how important it is that you realize that that is a problem that needs to...
June 24th, 2014, 01:10 PM
Your use of subscripts is still troubling me. If GainF and ExTimeF are defined with a size of 10, I would expect ModeCustom to crash.
Just putting UpdateData(TRUE) at the start of that function...
June 24th, 2014, 12:56 PM
I don't see you calling UpdateData in CTab4. And again, the arguments to UpdateData are TRUE and FALSE, not true and false, and again, I'm not sure why you're calling it in the loop.
June 24th, 2014, 12:44 PM
Post your current code, but please change those indexes. That behavior is undefined, and that's really the first thing you need to fix.
June 24th, 2014, 12:24 PM
If it appears to be working with those indexes, it's sheer dumb luck. That code is incorrect and will cause you problems.
As to your question, you'd need to call UpdateData (which takes a BOOL,...
June 24th, 2014, 12:07 PM
I'm not really sure what your question is, but arrays are 0 based. If you have an array of length 2, valid index values are 0 and 1.
June 16th, 2014, 11:50 AM
Do you have a question?
If you want help with code, you'll need to use code tags and proper formatting.
June 16th, 2014, 07:15 AM
The word is "configure".
In VC2012 it's
Additional Include Directories
June 14th, 2014, 10:25 AM
You still have the other problems I mentioned.
You're prompting for a number in main and not using it, and a while loop is the loop to use here. This isn't a case for a for loop.
June 14th, 2014, 09:40 AM
Doesn't compile for me. jackpot needs to return a value.
Please use code tags.
Why are you prompting for a guess in main, passing that to jackpot, then asking again in jackpot and ignoring the...
June 12th, 2014, 07:27 PM
Could be a couple of things. Likely the compiler hasn't seen the definition of WCHAR or CLSID, or there could be a problem with the line or two before that one. Look for other headers in your .cpp...
June 11th, 2014, 11:41 AM
Doesn't compile for me.
1>c:\cg\cg\cg.cpp(7): error C2143: syntax error : missing ';' before 'return'
1>c:\cg\cg\cg.cpp(8): error C2059: syntax error : '}'
1>c:\cg\cg\cg.cpp(8): error C2143:...
June 10th, 2014, 07:46 PM
That's called a cast. It tells the compiler to treat the variable as a different type. data was declared as a void pointer, but you're telling the compiler to pretend it's a char pointer in that...
You can set the working directory and the executable path in the project debugging configuration properties.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.