Search:

Type: Posts; User: mcmillhj

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    8,634

    Thanks for the link but I have already been...

    Thanks for the link but I have already been through that page thoroughly and the other documentation pages.
  2. Replies
    10
    Views
    8,634

    jGrasp IDE and C++

    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...
  3. Replies
    11
    Views
    2,155

    Inside your loop you basically do the same thing...

    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.
  4. I resolved this issue by implementing the...

    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
  5. SelectedValueChangedEvents firing at the wrong time.

    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...
  6. Replies
    2
    Views
    1,289

    cool thank you. next time I do a search I'll be...

    cool thank you. next time I do a search I'll be sure to include visual C++ in the query.

    Hunter
  7. Replies
    2
    Views
    1,289

    Question about ^

    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...
  8. Replies
    3
    Views
    1,141

    Search your code for 'flood_colour', the last two...

    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
  9. Replies
    3
    Views
    2,395

    Solved, the issue was which overlapping event...

    Solved, the issue was which overlapping event handlers
  10. Replies
    3
    Views
    2,395

    Ill post some, but it is a rather large project. ...

    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...
  11. Replies
    3
    Views
    2,395

    DataGridViewComboBoxColumn issue/Question

    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...
  12. Thread: Arrays

    by mcmillhj
    Replies
    14
    Views
    1,352

    I ran it and it worked how you described it in...

    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.
  13. Thread: Arrays

    by mcmillhj
    Replies
    14
    Views
    1,352

    sure you can: the initial size of the array is...

    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
  14. Thread: Arrays

    by mcmillhj
    Replies
    14
    Views
    1,352

    okay so I found the problem, now it's time for...

    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...
  15. Thread: Arrays

    by mcmillhj
    Replies
    14
    Views
    1,352

    Do you mind posting your input file and your...

    Do you mind posting your input file and your entire main function. That'll make it easier to find the problem.

    Hunter
  16. Thread: Arrays

    by mcmillhj
    Replies
    14
    Views
    1,352

    After you populate the 2d array with values what...

    After you populate the 2d array with values what happens? Does the array have any values?

    Hunter
  17. Replies
    4
    Views
    4,089

    Thanks for pointing that out. I am sure that...

    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...
  18. Replies
    4
    Views
    4,089

    I accept a new connection on newFD(a socket),...

    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...
  19. Replies
    4
    Views
    4,089

    Issue with multi-threaded tcp server

    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...
  20. Replies
    14
    Views
    7,923

    I have redefined my struct so that it contains...

    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...
  21. Replies
    14
    Views
    7,923

    my send call looks like this: send(fd,...

    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?
  22. Replies
    14
    Views
    7,923

    The send is working fine, I am reluctant to post...

    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
  23. Replies
    14
    Views
    7,923

    That is what I meant, thanks for pointing that...

    That is what I meant, thanks for pointing that out, one of my Java habits I suppose.

    Hunter
  24. Replies
    14
    Views
    7,923

    In response to your question Salem, yes this is a...

    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.
    ...
  25. Replies
    14
    Views
    7,923

    Segmentation fault on TCP recv

    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...
Results 1 to 25 of 41
Page 1 of 2 1 2