Click here to Skip to main content
15,886,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 22:40
Member 1308136926-Jan-19 22:40 
GeneralRe: How to print all source code what was running? Pin
Randor 28-Jan-19 4:30
professional Randor 28-Jan-19 4:30 
GeneralRe: How to print all source code what was running? Pin
Member 1308136930-Jan-19 12:22
Member 1308136930-Jan-19 12:22 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 1:32
Stefan_Lang28-Jan-19 1:32 
GeneralRe: How to print all source code what was running? Pin
Randor 28-Jan-19 4:13
professional Randor 28-Jan-19 4:13 
GeneralRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 21:12
Stefan_Lang28-Jan-19 21:12 
AnswerRe: How to print all source code what was running? Pin
Victor Nijegorodov26-Jan-19 5:26
Victor Nijegorodov26-Jan-19 5:26 
GeneralRe: How to print all source code what was running? Pin
Member 1308136926-Jan-19 12:05
Member 1308136926-Jan-19 12:05 
C++
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)
GeneralRe: How to print all source code what was running? Pin
Victor Nijegorodov27-Jan-19 0:02
Victor Nijegorodov27-Jan-19 0:02 
GeneralRe: How to print all source code what was running? Pin
Member 1308136928-Jan-19 1:38
Member 1308136928-Jan-19 1:38 
GeneralRe: How to print all source code what was running? Pin
Victor Nijegorodov28-Jan-19 1:51
Victor Nijegorodov28-Jan-19 1:51 
AnswerRe: How to print all source code what was running? Pin
Stefan_Lang28-Jan-19 1:46
Stefan_Lang28-Jan-19 1:46 
QuestionHow to change the background color of checkbox in CListCtrl? Pin
manoharbalu23-Jan-19 19:05
manoharbalu23-Jan-19 19:05 
SuggestionRe: How to change the background color of checkbox in CListCtrl? Pin
Richard MacCutchan23-Jan-19 22:37
mveRichard MacCutchan23-Jan-19 22:37 
GeneralRe: How to change the background color of checkbox in CListCtrl? Pin
manoharbalu24-Jan-19 1:35
manoharbalu24-Jan-19 1:35 
QuestionTools to refactor C++ code - Rad studio Pin
ptr_Electron23-Jan-19 17:48
ptr_Electron23-Jan-19 17:48 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Richard MacCutchan23-Jan-19 22:33
mveRichard MacCutchan23-Jan-19 22:33 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Maximilien24-Jan-19 8:36
Maximilien24-Jan-19 8:36 
AnswerRe: Tools to refactor C++ code - Rad studio Pin
Stefan_Lang25-Jan-19 3:54
Stefan_Lang25-Jan-19 3:54 
QuestionWhat are the security risks by embedding the Python in C++ application, if any. Pin
oleg6322-Jan-19 9:11
professionaloleg6322-Jan-19 9:11 
AnswerRe: What are the security risks by embedding the Python in C++ application, if any. Pin
Joe Woodbury22-Jan-19 10:40
professionalJoe Woodbury22-Jan-19 10:40 
QuestionWhat extensions for Visual Studio can you recommend? Pin
Froddo22-Jan-19 5:53
Froddo22-Jan-19 5:53 
AnswerRe: What extensions for Visual Studio can you recommend? Pin
Victor Nijegorodov22-Jan-19 10:13
Victor Nijegorodov22-Jan-19 10:13 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Froddo23-Jan-19 3:40
Froddo23-Jan-19 3:40 
GeneralRe: What extensions for Visual Studio can you recommend? Pin
Member 1412742230-Jan-19 4:27
Member 1412742230-Jan-19 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.