CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: VBCherry

Search: Search took 0.01 seconds.

  1. Re: Eclipse unable to find linked libraries! HELP!!

    I am terribly sorry. I still feel that the images give a better idea of what I did. So I am linking the pictures below:
    Includes: https://imgur.com/a/rrba6
    Libraries: https://imgur.com/a/sJs2T...
  2. Eclipse unable to find linked libraries! HELP!!

    I realise that this question has been asked a million times, but I have gone through those solutions and they have not helped me solve the issue.
    I am trying to import a library called PDNALib.lib...
  3. Re: Can I use the same variable to initialise two class objects?

    If I use pointers I then don't have to worry about the object going out of scope somewhere and getting deleted. I know that until I call delete, the pointer stays put. I could be totally wrong on...
  4. Re: Can I use the same variable to initialise two class objects?

    I hadn't considered this. This would at least relieve my concern that I am reusing the same variable.
  5. Re: Can I use the same variable to initialise two class objects?

    I honestly hadn't considered this. I had only thought about cleaning up. Each Device object has a unique ID, which the user provides. I could save the Device pointers along with their IDs in a hash...
  6. Can I use the same variable to initialise two class objects?

    I have to create and initialise objects of a class called Device in my main program. But the number of objects created are based on the user input. The IDE is Qt so I have access to data structures...
  7. Re: [RESOLVED] Why doesn't this method of closing a worker thread work?

    Thank you so much! This is way beyond anything you needed to do!
    Could you explain what you are doing with chRead in the two if statements? Also what does Process do? I just want to understand this,...
  8. Re: Why doesn't this method of closing a worker thread work?

    This only guarantees a lower limit. So there is a possibility that the process might sleep for longer and miss the next packet of data. Won't my idea work?
  9. Re: Why doesn't this method of closing a worker thread work?

    This is a brilliant idea! I do have one hypothetical to run by you. (I am terribly sorry for taking your time, but it is not often that I have someone experience guiding me).
    Can use the timer to...
  10. Re: Why doesn't this method of closing a worker thread work?

    Is there a way to automatically resume a suspended thread after a certain amount of time? Also does the suspension and resumption happen from within the thread? This could potentially make my code...
  11. Re: Why doesn't this method of closing a worker thread work?

    But if it is my timer that creates new threads after the old one have ended (return 0), won't killing that timer stop further threads from being created?
    I am terribly sorry if I am making this...
  12. Re: Why doesn't this method of closing a worker thread work?

    @VictorN

    I was thinking about why the thread wasn't end when I killed the timer, is it possible that the thread doesn't end after the thread function goes out of scope each time?
  13. Re: Why doesn't this method of closing a worker thread work?

    @VictorN @2kaud

    Thank you for pointing out the mistake I was making. I changed the code so that I declared the THREADSTRUCT instance in the header file, and initialised it and it's members in the...
  14. Re: Why doesn't this method of closing a worker thread work?

    The StartThread function is called periodically by SetTimer. That is why I did not put it in a loop.
  15. [RESOLVED] Why doesn't this method of closing a worker thread work?

    I have an MFC application whose GUI has a start and a stop button. The start button calls a function which I want to run in the background, periodically. My solution was to use the SetTimer function...
  16. Re: GetDlgItemText and Multithreading

    I have been getting the same response from a lot of people. Even the comment section of that example is filled with people saying it is a bad implementation.

    Learning that the hard way.

    I saw...
  17. [RESOLVED] GetDlgItemText and Multithreading

    So I have been trying to implement the concept of multithreading to an MFC application I am making. I used the method suggested here. It works fine but I am having an issue with using data given by...
  18. Replies
    1
    Views
    743

    Edit Duplicate Records

    Hi guys,

    I am working with a database that contains multiple duplicate records, and my task is to find a way to edit certain fields in these records all at once.

    The relevant

    short xyz;
    ...
Results 1 to 18 of 18





Click Here to Expand Forum to Full Width

Featured