Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

User 13049321

@User 13049321
About
Posts
23
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to make the heap address(by new) have the same every time the program runs?
    U User 13049321

    First, I use Visual Studio. Invalid after adding add "/fixed" linker option. and error LNK1146: no argument specified with option '/base'

    C / C++ / MFC tutorial question

  • How to make the heap address(by new) have the same every time the program runs?
    U User 13049321

    Thanks

    C / C++ / MFC tutorial question

  • How to make the heap address(by new) have the same every time the program runs?
    U User 13049321

    Thanks

    C / C++ / MFC tutorial question

  • How to make the heap address(by new) have the same every time the program runs?
    U User 13049321

    char* str = new char[128];

    At first run, the address of str is 0x12345678, and second run, the address of str is 0x00123456, I want the address of str constant, not change every time run. I wish: At first run, the address of str is 0x12345678, and second run, the address of str is 0x12345678, every time run, the address of str is 0x12345678.

    C / C++ / MFC tutorial question

  • How to show UserControl(WPF) in a form project with not use ElementHost?
    U User 13049321

    Thank you.

    C# csharp wpf tutorial question

  • How to show UserControl(WPF) in a form project with not use ElementHost?
    U User 13049321

    thanks

    C# csharp wpf tutorial question

  • How to show UserControl(WPF) in a form project with not use ElementHost?
    U User 13049321

    I know how to show a UserControl(WPF) by ElementHost in a form. like this:

    private ElementHost m_elementHost;
    private UserControl1 m_uc;

    private void button1_Click(object sender, EventArgs e)
    {
    m_elementHost.Child = m_uc;
    }

    but I want to do show UserControl1 not use ElementHost, like this:

    private void button1_Click(object sender, EventArgs e)
    {
    UserControl1 uc = new UserControl1();

         uc.Show();
    

    }

    C# csharp wpf tutorial question

  • How to print all source code what was running?
    U User 13049321

    Thank you!

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    If the code like below: if(iVal < 10) { FunA(); } else { FunB(); } When first run, iVal=1. So the first.txt Should be: if(iVal < 10) FunA(); And second run, iVal=20. The second.txt Should be: if(iVal < 10) FunB(); I could compared two file(first.txt and second.txt) to find code execution difference. I need it, because my codes very very larged. when iVal differeced every times, the differece appeard at after hundreds lines between first.txt and second.txt.

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    First, I sure. I run DIA SDK\Samples\DIA2Dump\Dia2Dump.exe myProgram.pdb I can view values and functions list when Dia2Dump.exe is run. But, How to "set the hardware breakpoints at DR0-DR7 and automate every single-step through your entire program"? Is modify dia2dump.cpp -> main(), start my program by dia2dump.exe? and WaitForDebugEvent(&dbgEvent, INFINITE); in dia2dump.exe? Can you give me a sample?

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    Using your method, I need add “__asm int 3;” for every line of code?

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    struct stNode
    {
    union sss_ {
    struct sns_ {
    int iType;
    float fType;
    } s_name;
    } s_ss;

    stNode\* pNext;
    

    };

    int FunA(stNode* pNode)
    {
    if (pNode->pNext->pNext->pNext->s_ss.s_name.iType>10)
    {
    ...
    pNode->pNext->s_ss.s_name.fType = 4.0f;
    pNode->pNext = pNode->pNext + pNode->iType;

    		return pNode->pNext->pNext->s\_ss.s\_name.iType;
    }
    pNode->pNext = pNode->pNext + pNode->iType;
    pNode->pNext->s\_ss.s\_name.fType = 7.0f;
    ...
    return pNode->s\_ss.s\_name.iType;
    

    }

    main()
    {

    int iVal = 2;

    	for(int i = 0; i < 100; ++i)
    	{		
    		iVal++;
    
    		stNode stMyNode;
    
    		if (iVal<100)
    		{
    			iVal = FunA(&stMyNode+iVal);
    		}
    		else
    		{
    			iVal = FunB(&stMyNode+iVal);
    		}
    	}
    

    }

    With difference iVal initialization. the difference of execution occured at hundreds lines run after begin of main(). And, the actual code of mine, are complex than above are. Very very complex, run one FunA(),need a lot of times. (many lines code)

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    Thank you

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    Thanks, but I want to find a way that don't add any code like DEBUG_LOG(), to print source code. because the source code too many. I wouldn't be do this otherwise.

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    The problem is I don't know where are the "condition is met". Whether input's iVal is 1 or 2, first hundreds line code execution are equals. I want to find first diffence between 1 and 2 (iVal), and I sured the diffence appeared after "execution long line codes ago".

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    Thanks,but I sure "

    A line by line code execution logger does make sense for me

    I have very large storage capacity, and I can wait for long time to output.

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    Thanks, I known how to "using run to cursor",but the problem is I need to pressed F10 button hundreds, for execution whole program. I need to view "execution whole program line by line" exacts

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    If the code like below:

    if(iVal < 10)
    {
    FunA();
    }
    else
    {
    FunB();
    }

    When first run, iVal=1. So the first.txt Should be:

    if(iVal < 10)
    FunA();

    And second run, iVal=20. The second.txt Should be:

    if(iVal < 10)
    FunB();

    I could compared two file(first.txt and second.txt) to find code execution difference.

    I need it, because my codes very very larged. when iVal differeced every times, the differece appeard at after hundreds lines between first.txt and second.txt.

    C / C++ / MFC tutorial question

  • How to print all source code what was running?
    U User 13049321

    When breaked at debugging, I can press F10, line by line to view the current execution of the source code. Suppose my program has 1000 lines of code, I don't want to press F10 1000 times to watch all the 1000 line in the order of execution. I wish output whole 1000 lines of code in execution order. surce code like below:

    id fun(int* piVal)
    {
    *piVal = 0;
    }

    main()
    {
    int iTemp = 0;
    fun();
    iTemp = 1;
    }

    I need a text file after running the program. The contents of the file are like below:

    int iTemp = 0;
    *piVal = 0;
    iTemp = 1;

    text file has 3 line, It exact save the three lines of execution.

    C / C++ / MFC tutorial question

  • Break when address reading
    U User 13049321

    Use Windbg "ba r1 0000ffff" can break when address(0x0000ffff) reads. But I don't know how to open and location the source code.

    C / C++ / MFC tutorial debugging performance
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups