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

Search:

Type: Posts; User: NigelQ

Page 1 of 80 1 2 3 4

Search: Search took 0.25 seconds.

  1. Replies
    20
    Views
    2,376

    Re: Program crashes when closing

    Did your worker thread create this "class pointer" you're deleting?



    //Monitoring Communications Worker thread control function
    UINT CNOx1000MonitorDlg::FuintMonitorComm (LPVOID PptrToClass)...
  2. Replies
    1
    Views
    559

    Re: Database - Table Set Up

    Whenever you think there's a solution to something like this, there generally is. You just need to take a big tug of coffee and think it through.

    Instead of thinking about it from the part's...
  3. Thread: Slow Debug

    by NigelQ
    Replies
    2
    Views
    740

    Re: Slow Debug

    Sounds like it could be a memory problem.

    Are you out of available memory when debugging?

    If so, the system will switch over to using (very slow) virtual memory.

    Check using your task...
  4. Replies
    4
    Views
    1,481

    Re: CSoket, Receive stops

    You're very welcome :)

    Here is one of the best sites describing network programming that I've come across. There are a lot of articles describing how to use sockets, and there are also several...
  5. Replies
    8
    Views
    4,151

    Re: PostMessage using CStrings and memory leaks??

    It is not ok to pass MFC objects across thread boundaries as has been described here. It's not really a question of memory leaks, it's more a question of how MFC does it's thing behind the scenes.
    ...
  6. Replies
    2
    Views
    2,707

    Re: Pipes vs. Mailslot and similarities

    Well, their function is fairly well described in the help, but if you just want a quick comparison, there are a few to add to your list:

    Mailslots are unidirectional

    Mailslots are easy to...
  7. Replies
    3
    Views
    719

    Re: Finding physical drives

    Have you seen the API calls GetLogicalDrives and GetLogicalDriveStrings?

    Hope this helps,

    - Nigel
  8. Replies
    4
    Views
    1,481

    Re: CSoket, Receive stops

    CSocket is designed to operate in "blocking" mode, this means it will wait until the requested operation completes, or an error occurs.

    Specifically, in your example, it looks like the first call...
  9. Replies
    2
    Views
    849

    Re: Bitmaps or Drawing?

    ...that were not somehow "obscured"

    - Nigel
  10. Re: Obtaing a Virtual address for shared memory...

    You didn't mention which compiler or environment you're using, so I'll assume Microsoft (most other compilers and platforms have very similar features)...

    It sounds like this page describes what...
  11. Replies
    7
    Views
    3,946

    Re: To count records in a mdb file

    It looks as though you are using DAO to access the database here.

    Switching to ADO would have significant benefits, including the ability to perform a GetRecordCount on a recordset.

    An...
  12. Replies
    10
    Views
    887

    Re: query top10 value

    I do not beleive this to be correct.

    The order by will be called before the top 10 is selected, which should give you what you desire. This will work in Access.

    So, as Erick suggested, I think...
  13. Thread: DCOM or SOCKETS

    by NigelQ
    Replies
    3
    Views
    1,662

    Re: DCOM or SOCKETS

    Use sockets wherever possible. DCOM sucks and is very buggy and sensitive to security settings.

    I've used DCOM several times - it has never been easy to use. Sockets are much more predictable (and...
  14. Replies
    3
    Views
    1,244

    Re: Doubts in Ms Office

    There is space for some summary information within a Word document that often (but not always) goes unused.

    This information is displayed when you access the file properties after you've opened...
  15. Replies
    4
    Views
    1,106

    Re: variable redefinition problem again...

    ...and you really shouldn't include stdafx.h in a header file - only in cpp files.

    Hope this helps,

    - Nigel
  16. Re: 'PMYDATA' : undeclared identifier - My first thread (a crap shoot)

    As you have it, the call is going to the CWinApp derined override of CreatThread, which does not have 6 parameters.

    What you need to do is to force the use of the global CreateThread function by...
  17. Re: 'PMYDATA' : undeclared identifier - My first thread (a crap shoot)

    The definition was right there too...



    typedef struct _MyData {
    int val1;
    int val2;
    } MYDATA, *PMYDATA;
  18. Replies
    2
    Views
    659

    Re: another unresolved external prob

    Is there a question here somewhere?

    What error message are you getting?

    - Nigel
  19. Re: 'PMYDATA' : undeclared identifier - My first thread (a crap shoot)

    ...and answering your specific question, PMYDATA is not defined anywhere. This does not appear to be a name that Microsoft would use, so it must be something within your own code (or wherever the...
  20. Re: 'PMYDATA' : undeclared identifier - My first thread (a crap shoot)

    Derek buddy,

    Look, I don't want to start off all negative or discouraging, but the code you've got here is complete gibberish, clearly pieced together from snippets here and there.

    Now I'm all...
  21. Replies
    4
    Views
    1,270

    Re: Event when thread ends?

    You can signal an event (synchronization object) to notify the first thread of some activity in the second thread.

    See:

    CreateEvent
    SetEvent
    ResetEvent
    WaitForSingleObject

    When...
  22. Replies
    1
    Views
    733

    Re: about access dc question

    I'm not sure if this is possible, however even if it was, why would you want to?

    If you want to draw something in the view, why not just draw it from within the view, as it's intended?

    It's...
  23. Replies
    9
    Views
    1,813

    Re: convert seconds into hour

    Perhaps you are referring to this or perhaps the COleDateTime format member function that uses the same formatting (details here )

    As several people have already pointed out however, it is not...
  24. Replies
    6
    Views
    1,567

    Re: Sending Messages between threads

    A little trick I use frequently when trying to do this type of thing is pass a structure (containing plain old data types - no classes) in the message to the thread and have the structure contain the...
  25. Replies
    1
    Views
    1,124

    Re: question about registers

    The information being displayed is in the context of the currently selected process (the one being debugged).

    Clearly if it was displaying the actual contents of the CPU registers whenever you hit...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured