Hi,
I've never worked with raw input before and I'm having trouble even getting to a situation where I can receive WM_INPUT messages. I've been reading the MSDN page on raw input (link) but I'm...
Type: Posts; User: Peter5897
Hi,
I've never worked with raw input before and I'm having trouble even getting to a situation where I can receive WM_INPUT messages. I've been reading the MSDN page on raw input (link) but I'm...
Two seconds later I remember what I'm doing wrong...
template <typename T>
const typename OAHashTable<T>::OAHTSlot* OAHashTable<T>::GetTable(void) const
{
}
Hello folks,
I've had this warning (that creeps up to an error) multiple times and I thought I finally had templates ingrained in my brain so that it would never come back to haunt me again, but...
Alright I feel stupid but for some reason I got my original method of using atoi() working in this dialog box while it still doesn't work perfectly in the other one. How? I'm not sure but since...
I tried sending a std::string in to the SendDlgItemMessage() but it won't compile because I can't convert it to an LPARAM. I do send in a character string with another dialog box I'm using and I...
Hi,
I’m making a “map maker” type program and I’m having some trouble getting information from Dialog Box edit controls. I know how to use EM_GETLINE to get text from an edit control (which I...
Thank you, you were very helpful, that worked like a charm.
Hello again,
I'm afraid I'm missing something in steps 1-3 (as for 4 my dialog box doesn't have room for more than 3 characters and cuts the user off if they try and enter more but thanks for the...
Hi,
I’m trying to find a couple functions along the lines of the GetWindowLong(), SetWindowLong() variety except for dialog boxes. It’s my understanding that there’s no HWND created for a dialog...
Post your .h where your class is defined.
If your GetMarkerCount(void) function is defined within the BMLDrawable class you need to say...
int BMLDrawable::GetMarkerCount(void)
{
// stuff...
This probably isn't causeing that error but I can see two places where you're returning a bool instead of an int.
Student *sa[3];
sa[0] = new Student("James");
sa[1] = new Student("Jason");
sa[2] = new Student("Frank");
You should be able to figure out how to supply the name at run-time unless...
Not positive (just started working with iterators) but I think you want to do (**ci).getType();
The only reason I'm not positive is because I'm not sure what you're doing with it but I'm positive...
Problem 1, it does matter if ch is an int or char. It needs to be a char.
Problem 2 you define your variables twice. The ones you are using in the loop are different than the ones you are...
Yeah but that's the problem, I want a NULL before I hit enter. In an ideal world I'd have a NULL after I enter my name so that it acts as a normal C string and then I would have a NULL in my...
I’ve got a strange assignment from a class in which I’m supposed to initiate a buffer overrun to see how easy it is for someone to take advantage of the gets() function.
The basic program that I’m...
That makes sense... it also made a little light click on in my head.
Currently when I'm replacing words I free() my string and then the node which is completely unnecessary I'm assuming. All I...
Thanks for the advice but I'm actually able to do all that. I can insert a word, add a word, delete a word, print words, all fine with no memory allocation/deallocation errors. The only problem I...
I've decided to just go ahead and post all the code I've written since I'm getting no where on my own. I've re-written these functions multiple times now and I either end up making things worse or...
/******************************************************************************/
/*!
Adds a word to a WordNode linked list, or creates a new WordNode list.
\param words
A pointer to a...
Hi,
This is the first time I've used linked lists before and I'm having trouble replacing the first "node" of my list. I have a function that takes a node, an old word, and a new word (both...
I think I've figured it out... well actually I haven't figured it out but I just kept on messing with code and currently I have what I want occuring.
Hi,
I'm trying to make a simple tool to create maps for a game I'm making. The goal is to be able to create the maps visually in this program and then save them to a binary or text file which I...
Thanks for the info, I've learned a bunch from this whole post. I'll take a look at my error handling now that I think I've got all the decoding working.
Thanks again everyone!
thanks!
I've taken out my hideous for loop and I'm now using fseek() and fgets()
thanks again!