Hi, this isn't strictly speaking a programming question but I'm having difficulty getting a handle on it, so I thought I'd see if anyone had any comments.
Well, I imagine you would need to iterate through the letters and check each one until you found a number.
I'm not sure what your txtPassword variable is, but you can use atoi() to check a character...
Hi there, I've been trying to manipulate 8bpp images stored in a CBitmap. From what I've read the problem is that the 8bpp bmps use a format that's different from what I've been using... up until...
You're getting really close now. The only definite problem with that is that you didn't end the statement (add a ; ) and the "invoke" needs to be a comment.
#5: google for "random numbers in c", I glanced at the top 3 results and 2 of them have enough information to answer this.
#6: reread the question... you correctly figured out the square root of...
If it's me you're addressing (as I have to assume since you're quoting me), I think I have a reasonable idea of what that does. I also doubt it's doing what he wants it to do.
In addition to the "go find a tutorial or a good book" advice, I would also add: until you know how something works, keep your tests as simple as possible.
My knee-jerk response to your problem is that it's their computer and they get to do what they want with it. You can confuse and obfuscate things if you want to make it hard for them to crack or...
For coding standards, I generally demand:
1. Comment, comment comment: Sure, your code should be legible without comments, but just because I can read WHAT you're doing doesn't mean I know WHY...
I just wanted to update this thread in case of people running across the thread in search engines and trying out the solution I used. I did run across another bug which wasn't a big deal in my case...
Yeah, that's pretty much what happened. During my function I would update the window regularly to keep me informed as to what was happening. If I closed the window, it would continue to run until...
In this case it seems to work well. If I start needing to do more things later, I'll probably go take a look, but for now I'm trying to stay focused on getting things done.
So I have a fairly long/intensive loop in one of my functions that when it runs the GUI stops responding to mouse events (and other events, I'm sure). It seems like there should be two...
IMO, you've got some solid clues as to where the problem with your app lies. It crashes sometimes when the user inputs text, but never any other times? Look closely at the code which handles that...
It's not a toolbar button, it's a regular CButton in a CDialogBar dialog. The m_toolBar is named that because the function of that CDialogBar is mainly to be a tool bar.
This seems really simple. I want to disable a button. A simple google search tells me that I should be passing false to the button's EnableWindow function.