Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: STL list vs multi set Pin
minkowski31-Jan-08 3:31
minkowski31-Jan-08 3:31 
GeneralRe: STL list vs multi set Pin
73Zeppelin31-Jan-08 3:50
73Zeppelin31-Jan-08 3:50 
GeneralRe: STL list vs multi set Pin
Shog931-Jan-08 8:03
sitebuilderShog931-Jan-08 8:03 
Generali don't know why both result same~ Pin
Jung Seng Won31-Jan-08 2:07
Jung Seng Won31-Jan-08 2:07 
GeneralRe: i don't know why both result same~ Pin
Chris Losinger31-Jan-08 2:26
professionalChris Losinger31-Jan-08 2:26 
GeneralRe: i don't know why both result same~ Pin
CPallini31-Jan-08 2:55
mveCPallini31-Jan-08 2:55 
GeneralRe: i don't know why both result same~ Pin
CPallini31-Jan-08 2:41
mveCPallini31-Jan-08 2:41 
GeneralProblem with Visual Studio Express 2005 [modified] Pin
73Zeppelin31-Jan-08 1:49
73Zeppelin31-Jan-08 1:49 
I have the following class member function:

void CTreeGraft::DetermineOverlay(OptionType WhichOption) {
	double Temp1;
	double Temp2;

	Temp1 = 0.0;
	Temp2 = 0.0;
	
	// which nodes end up both in and out the money?  We check by g5oing
	// over 1 col and up 2 rows, then check over 1 col and down 2 nodes
	// to see if the paths lead to both in and out the money payoffs
	for(int col = 0; col < 2; col++) {
		int Limit = static_cast<int>(Graft[col].size()) - 1;
		for(int row = 1; row < Limit; row++) {
			Temp1 = Graft[col+1][row+1]->GetUnderlyingPrice();
			Temp2 = Graft[col+1][row+3]->GetUnderlyingPrice();
			switch(WhichOption){
			case 0:	// call
				if (m_dStrike < Temp1 && m_dStrike > Temp2) {	// keep the node
					FineMesh[col].push_back(Graft[col][row]);
				}
				break;
			case 1:	// put
				if (m_dStrike > Temp1 && m_dStrike < Temp2) {
					FineMesh[col].push_back(Graft[col][row]);
				}
				break;
			}			
		}
	}
}


I instantiate a new member of the class and call this function. The app bombs. On debugging, the VS 2005 debugger is telling me that variable Temp1 "needs a stack frame" and variable Temp2 cannot be found. Furthermore, when it gets to the for loop, the index variables don't initialize properly at all. Is there something obvious I'm missing here? It's very strange behaviour...



Oh man am I tired. I glanced up and noticed the Solution Configuration was set to "release" instead of "debug". Roll eyes | :rolleyes: D'Oh! | :doh:

modified on Thursday, January 31, 2008 8:19:54 AM

GeneralRe: Problem with Visual Studio Express 2005 Pin
CPallini31-Jan-08 2:20
mveCPallini31-Jan-08 2:20 
GeneralRe: Problem with Visual Studio Express 2005 Pin
73Zeppelin31-Jan-08 2:37
73Zeppelin31-Jan-08 2:37 
GeneralRe: Problem with Visual Studio Express 2005 Pin
CPallini31-Jan-08 3:03
mveCPallini31-Jan-08 3:03 
GeneralRe: Problem with Visual Studio Express 2005 Pin
73Zeppelin31-Jan-08 3:16
73Zeppelin31-Jan-08 3:16 
GeneralPardon. Pin
CPallini31-Jan-08 3:27
mveCPallini31-Jan-08 3:27 
GeneralRe: Pardon. Pin
73Zeppelin31-Jan-08 3:54
73Zeppelin31-Jan-08 3:54 
GeneralExporting Makefile inVC++.Net (2005) Pin
Rajesh_Parameswaran31-Jan-08 1:36
Rajesh_Parameswaran31-Jan-08 1:36 
GeneralRe: Exporting Makefile inVC++.Net (2005) Pin
73Zeppelin31-Jan-08 2:52
73Zeppelin31-Jan-08 2:52 
GeneralRe: Exporting Makefile inVC++.Net (2005) Pin
KarstenK31-Jan-08 3:41
mveKarstenK31-Jan-08 3:41 
GeneralRe: Exporting Makefile inVC++.Net (2005) Pin
73Zeppelin31-Jan-08 3:56
73Zeppelin31-Jan-08 3:56 
GeneralRe: Exporting Makefile inVC++.Net (2005) Pin
Rajesh_Parameswaran31-Jan-08 3:56
Rajesh_Parameswaran31-Jan-08 3:56 
GeneralRe: Exporting Makefile inVC++.Net (2005) Pin
73Zeppelin31-Jan-08 4:00
73Zeppelin31-Jan-08 4:00 
GeneralNeed help regrading making a control transparent when rendering video Pin
yaminisridaran31-Jan-08 0:36
yaminisridaran31-Jan-08 0:36 
GeneralRe: Need help regrading making a control transparent when rendering video Pin
sarat1-Feb-08 1:25
sarat1-Feb-08 1:25 
QuestionHow to print a String class string to a txt file Pin
Cabomba30-Jan-08 22:59
Cabomba30-Jan-08 22:59 
AnswerRe: How to print a String class string to a txt file Pin
Iain Clarke, Warrior Programmer30-Jan-08 23:09
Iain Clarke, Warrior Programmer30-Jan-08 23:09 
GeneralRe: How to print a String class string to a txt file Pin
Cabomba10-Feb-08 22:48
Cabomba10-Feb-08 22:48 

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.