Thanks for the link but I have already been through that page thoroughly and the other documentation pages.
Type: Posts; User: mcmillhj
Thanks for the link but I have already been through that page thoroughly and the other documentation pages.
Overview
I have recently begun to transition from Java to C++, I am working my way through Accelerated C++ by Koenig and Moo. Having said that I am using jGrasp to compile and run my programs with...
Inside your loop you basically do the same thing 4 times just with different numbers, you should write a swap function to get rid of all the redundant code.
I resolved this issue by implementing the CellClickEvent which fires everytime a cell is clicked versus the ControlShowingEvent which fires when a NEW cell is clicked.
Hunter
Hi ,
I am working on a program that uses a DataGridView with 12 columns. 2 of these columns are DataGridViewComboBoxColumns and the other 10 DataGridViewComboBoxColumns. When you change the value...
cool thank you. next time I do a search I'll be sure to include visual C++ in the query.
Hunter
What does the caret (^) mean when it is attached to a parameter in a method/function? I have searched through several sites that have C++ symbols listed and the only mentioned use of ^ is for...
Search your code for 'flood_colour', the last two occurrences of that identifier in your program are causing the problems. Hopefully that will help you see the problem.
Hunter
Solved, the issue was which overlapping event handlers
Ill post some, but it is a rather large project.
I Use this method the remove the old event and add the new event for my ComboBoxcolumns, for some reason the portion of code in the comments...
Hey everyone,
I have two ComboBoxColumns that are beside each other in my DataGridView one only holds an Integer then another holds an object that I have defined. I created separate events for...
I ran it and it worked how you described it in your previous post. But is judges supposed to be for i? Look at your array declaration.
sure you can:
the initial size of the array is set to the bounds passed in for num_contestests and num_judges, and the array is filled with zeros.
Hunter
okay so I found the problem, now it's time for you to find it :)
I would look at how you declare your array:
int score[num_contestants][num_judges];
Then look at the order of variables...
Do you mind posting your input file and your entire main function. That'll make it easier to find the problem.
Hunter
After you populate the 2d array with values what happens? Does the array have any values?
Hunter
Thanks for pointing that out. I am sure that would have been a future error I ran into. My current issue is not that the 3 threads are doing the same thing, it's that only the last thread created is...
I accept a new connection on newFD(a socket), inside my while loop, then pass that socket to the thread function respond. Since the thread only passes void pointers, I cast it back to an int pointer...
Hey everyone,
I have a client program that is supposed to send the server two numbers and the server is supposed to return the sum of those numbers. The server has to be multi-threaded because in...
I have redefined my struct so that it contains two members, a character, and a fixed size array of characters. You are correct about me only transferring sizeof(message) which was not sending the...
my send call looks like this:
send(fd, message, sizeof(message), 0);
//message is a pointer to a struct of type Message
Is that wrong?
The send is working fine, I am reluctant to post the send code as this is for a class project, that is why I only posted a segment of the recv code.
Hunter
That is what I meant, thanks for pointing that out, one of my Java habits I suppose.
Hunter
In response to your question Salem, yes this is a thread function, I have included the portion of code where I create the thread and start the function, including the argument I pass the function.
...
Hi everyone,
I have run into an issue where I need to transmit a custom struct I created to a program using TCP sockets and threads.
I believe that I am allocating memory correctly but I...