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

Search:

Type: Posts; User: martenbengtsson

Page 1 of 4 1 2 3 4

Search: Search took 0.19 seconds.

  1. Replies
    15
    Views
    5,101

    Thanks for helping me out here. In the call...

    Thanks for helping me out here.
    In the call stack I see

    CSerComm::CreateThread() line 78 + 28 bytes
    CGsdoc_b1Doc::StartThread() line 609
    CGsdoc_b1App::InitInstance() line 156...
  2. Replies
    15
    Views
    5,101

    The dialog box that pops up saya that I don't...

    The dialog box that pops up saya that I don't handle the exception and that it is an
    "Access violation"
    exception.

    I don't know how to look at the call stack.
  3. Replies
    3
    Views
    606

    Thank you very much.

    Thank you very much.
  4. Replies
    15
    Views
    5,101

    By the way ThreadFunc is declared static UINT

    By the way ThreadFunc is declared
    static UINT
  5. Replies
    3
    Views
    606

    Basic messaging question

    InInitInstance I send a message to send a message to ManFrame
    but ManFrame never get the message. It looks like this,

    AfxGetMainWnd()->SendMessage(UM_CREATE_THREAD, 0, 0);

    In MainFrame.h I...
  6. Replies
    15
    Views
    5,101

    Ok here comes the the thread controlling...

    Ok here comes the the thread controlling function. After that the StartThread function.


    //Thread controlling function implementation
    //Seriall communication read/write is done in this function...
  7. Replies
    15
    Views
    5,101

    AfxBeginThread throws exception

    The Document in my SDI application owns an object that takes care of some seriall communication the class is called CSerComm.

    In Document .h file
    CSerComm m_SerCommObj;

    Since the worker thread...
  8. Prevent New Dialog from popping up

    In my SDI application I have three views connected ton one Document. The views are divided by splitters. On start up and when clicking new in the file menu a dialog pops up. This dialog wants the...
  9. GetWindow reurns NULL when printing

    My application is a SDI with three splitter windows. I want to print one of the windows which contains a graph (Brian Convery's X-Y line graph). A CDC pointer pDC is passed to a function called...
  10. Replies
    5
    Views
    738

    In my application I will only have one document....

    In my application I will only have one document. The document will be created the first time the application is started and should never be taken away. So it was wrong of me to talk in more generall...
  11. Replies
    5
    Views
    738

    Destructors in SDI application

    Hi gurus,
    I am starting to see the end of my project now. Apart from the testing that needs to be done I have to go through the code to check that all memory that is allocated is also released. Is...
  12. Replies
    3
    Views
    618

    n is not a global variable. I did'nt think of...

    n is not a global variable.
    I did'nt think of the possibility that I was looking at the wrong "n" in the watch. I still think it's strange that another n is incrementing while stepping through code....
  13. Replies
    3
    Views
    618

    Wild pointer??

    Yesterday I had a very strange behaviour when debugging my code.
    I used an index variable,

    int n=0;

    When debugging this index variable was incremented by two severeal times though it...
  14. Replies
    5
    Views
    1,186

    My big misstace was that I did'nt let Visual...

    My big misstace was that I did'nt let Visual Studio create a ScrollView class. I tried to do it myself but I must have missed something in the OnScroll handling.

    Next time I let the tool do the...
  15. Replies
    15
    Views
    4,437

    Did you get it to move. How did you do it. I'm...

    Did you get it to move. How did you do it. I'm having the same problem. Could you help me?
  16. Replies
    5
    Views
    1,186

    I have seen this topic in an other thread left...

    I have seen this topic in an other thread left with no answer. Is'nt there anyone with an idea. Please....
  17. Replies
    5
    Views
    1,186

    Scroll bar not moving

    Hi,
    I have added a scroll bar to one of the splitter windows in my application. I see the scroll bar but it wount move.
    Here is the initialisation

    void CTableView::OnInitialUpdate()
    {...
  18. Replies
    6
    Views
    788

    The thread is created in the InitInstance...

    The thread is created in the InitInstance function. Since the com port value used in the thread comes from the Document the thread should not be started before all the Serialisation of the Document....
  19. Replies
    6
    Views
    788

    It seems to work when using constant variables....

    It seems to work when using constant variables. Thanks guys.
  20. Replies
    6
    Views
    788

    How do I pass the number in directely? With a...

    How do I pass the number in directely? With a global variable? I have never used that before.
  21. Replies
    6
    Views
    788

    Pass Document data to thread

    My application contains RS232 communication. The user should be able to pick which Com port to use. The seriall interface is controlled by a separate thread. When the user pick a Com port from the...
  22. Replies
    1
    Views
    615

    Exit ReadCom after 5 sec.

    In my application the program writes to a device through RS232 and then waits for an answer. If a correct answer has not arrived after 5 seconds the application should do a new write. Non overlapped...
  23. Replies
    2
    Views
    514

    Thanks for the help!

    Thanks for the help!
  24. Replies
    2
    Views
    514

    debug directory

    In my program files are written to the ...\<project name>\Debug directory. The files should be displayed in a list to let the user pick a file in the list. It works fine when I run the program by...
  25. OK, I try to do it this way. Thanks.

    OK,
    I try to do it this way.
    Thanks.
Results 1 to 25 of 79
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured