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

Search:

Type: Posts; User: PHChang

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Replies
    6
    Views
    5,249

    Re: Debug Assertion Failed on CString FormatV

    Hi all, the code was written by others. I only copied portion of the code for understanding purposes. Not too sure on the intention. I will try to figure it out.
    But at least now I understand the...
  2. Replies
    6
    Views
    5,249

    Re: Debug Assertion Failed on CString FormatV

    I'm actually just trying to understand how come "%" cannot be used and causes crash in VS2010 but not in VS2003.
    So I just put one "%" there.
    Would like to display the % out.
    const char *msgFmt...
  3. Replies
    6
    Views
    5,249

    Debug Assertion Failed on CString FormatV

    I encountered debug assertion when running line below using Visual studio 2010.
    temp.FormatV( msgFmt, argMarker );
    However, it is running fine with Visual Studio 2003 for the same portion of code....
  4. Replies
    2
    Views
    1,131

    Re: String Format Crash

    OK thanks for your help.
  5. Replies
    2
    Views
    1,131

    String Format Crash

    I have question on string formatting.
    It will crash at the line strCombine.Format("%ld000%s", a, "+0800"); when running on Microsoft visual studio 2010 but not in visual studio 2003 by using the...
  6. Re: unhandled exception of type 'System.InvalidOperationException' occurred in System

    Thanks for your advice. Yes, my program is processing incoming data from network. I have no idea how to get access to the control with the Invoke method as suggested. However, if I tried to debug...
  7. Re: unhandled exception of type 'System.InvalidOperationException' occurred in System

    Thanks for the advice. May I know what is (mycontrol.InvokeRequired)?
  8. Re: unhandled exception of type 'System.InvalidOperationException' occurred in System

    Yes, that was what I did. However, still cannot figure out the root cause.
  9. unhandled exception of type 'System.InvalidOperationException' occurred in System.Win

    When I tried to run my program, I saw the error dialog with description below pop up? Any idea how to troubleshoot it further?

    An unhandled exception of type 'System.InvalidOperationException'...
  10. Replies
    4
    Views
    1,107

    Re: Import Dialog from other VS2003 project

    Thanks for your suggestion.
    I use another method to copy over the dialog.
    What I did was I copy the rc file from source project to destination project.
    After that, I open up the rc file that was...
  11. Replies
    4
    Views
    1,107

    Re: Import Dialog from other VS2003 project

    I tried to drag and drop but it doesn't work. Nothing being copy over to another project rc Dialog node folder.
  12. Replies
    4
    Views
    1,107

    Import Dialog from other VS2003 project

    I have questions on how to properly import a dialog from one project to another project using Visual Studio 2003.
    Assume I have a dialog called IDD_DIALOG_IMPORT at a TestDialog project and I want...
  13. Thread: File Exception

    by PHChang
    Replies
    4
    Views
    1,832

    Re: File Exception

    Thanks all for the valuable advice.

    Unfortunately, I am unable to reproduce the same problem using debugger, otherwise I might be able to step into the code to find out more. It happens...
  14. Thread: File Exception

    by PHChang
    Replies
    4
    Views
    1,832

    File Exception

    Unhandled exception happened at CStdioFile::~StdioFile(){} destructor when looking at the dump file.
    However, the dump file has limited info so I am not sure which file(s) are actually causing it....
  15. Replies
    9
    Views
    3,083

    Re: Breakpoint was triggered at dlgcore.cpp

    Yes, I did step through the code but it did not trigger the warning dialog "Breakpoint was trigger".


    BOOL CMyDialog::OnInitDialog()
    {
    CDialog::OnInitDialog(); //already step through this...
  16. Replies
    9
    Views
    3,083

    Re: Breakpoint was triggered at dlgcore.cpp

    Sorry, I don't get what you said it contradict each other.

    Because when I saw at the Autos watch window,the value are as follow:
    Name | Value...
  17. Replies
    9
    Views
    3,083

    Re: Breakpoint was triggered at dlgcore.cpp

    I tried step to the code line by line on my dialog OnInitDialog, it looks fine to me and it didn't trigger the breakpoint.


    BOOL CMyDialog::OnInitDialog()
    {
    ........
    }


    //dlgcore.cpp
  18. Replies
    9
    Views
    3,083

    Re: Breakpoint was triggered at dlgcore.cpp

    Sorry for the blur sceenshots, anyway I already attached in the break.zip earlier.


    I am not too sure what is the value actually because after executing line 2 (I actually set a breakpoint at...
  19. Replies
    9
    Views
    3,083

    Breakpoint was triggered at dlgcore.cpp

    My application will pop up the warning dialog with description below when running on Windows 7 Japan Version in debug mode using Visual Studio 2010:
    "Windows has triggered a breakpoint in...
  20. Re: How to access methods of an object within another object in Java

    Thanks a lot for your input.
    I have initialized it in the Customer constructor as you suggested.
    Now the error is resolved already.



    public class Customer {
    public String name;
    ...
  21. [RESOLVED] How to access methods of an object within another object in Java

    May I know what is the correct way to access methods of an object within another object without using inheritance in Java?
    I encounter the error "java.lang.NullPointerException" when trying to run...
  22. Replies
    12
    Views
    19,918

    Re: Strtok return weird character

    Ok thanks for sharing the info.
  23. Replies
    12
    Views
    19,918

    Re: Strtok return weird character

    Thanks all for the advice.
    Somehow, the crash managed to resolve already after moving the declaration code inside the if function. (Sorry, I didn't show last time that I was using nested if and...
  24. Replies
    12
    Views
    19,918

    Re: Strtok return weird character

    When copy out and run in isolation, it works fine. Somehow, it went wrong when run in my own project.
    That's why I am wondering how cp = strtok(NULL, ","); can return weird character.
    Anyway,...
  25. Replies
    12
    Views
    19,918

    Re: Strtok return weird character

    It is actually intended to find "AA.B.CC,BB.B.CC, CC.B.CC, etc" with comma as delimiter.
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured