Click here to Skip to main content
15,909,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Display Text in Edit Box using AfxBeginThread Procedure. Pin
pavansdmcse10-Dec-08 0:14
pavansdmcse10-Dec-08 0:14 
AnswerRe: How to Display Text in Edit Box using AfxBeginThread Procedure. Pin
Code-o-mat10-Dec-08 0:36
Code-o-mat10-Dec-08 0:36 
AnswerRe: How to Display Text in Edit Box using AfxBeginThread Procedure. Pin
Iain Clarke, Warrior Programmer10-Dec-08 3:42
Iain Clarke, Warrior Programmer10-Dec-08 3:42 
AnswerRe: How to Display Text in Edit Box using AfxBeginThread Procedure. Pin
David Crow10-Dec-08 4:06
David Crow10-Dec-08 4:06 
QuestionMSVCP80D.dll not found (How to fix this problem?) Pin
torio_kun9-Dec-08 23:52
torio_kun9-Dec-08 23:52 
QuestionRe: MSVCP80D.dll not found (How to fix this problem?) Pin
Mark Salsbery10-Dec-08 4:52
Mark Salsbery10-Dec-08 4:52 
AnswerRe: MSVCP80D.dll not found (How to fix this problem?) Pin
torio_kun10-Dec-08 19:29
torio_kun10-Dec-08 19:29 
GeneralRe: MSVCP80D.dll not found (How to fix this problem?) Pin
Mark Salsbery11-Dec-08 6:43
Mark Salsbery11-Dec-08 6:43 
Check the intermediate folder - the place your object code goes.
Typically this is in the "Debug" folder under your project folder.

Look for a file named something like yourappname.exe.intermediate.manifest


It might be easiest to create a new project (Win32 console) with the app wizard
and plug your code in to the generated "main()" function.

I did that with your code:
// TestVS2005Console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int limit; //variable to store the number of items in the list
	int number; //variable to store the number
	int sum; //variable to store the sum
	int counter; //loop control variable
	cout<<"Enter data for processing "<<endl;
	cin>>limit;
	sum=0;
	counter=0;
	while(counter<limit)
	{
		cin>>number;
		sum=sum+number;
		counter++;
	}
	cout<<"The sum of the "<<limit<<" numbers= "<<sum<<endl;
	if(counter!=0)
		cout<<"The average= "<<sum/counter<<endl;
	else
		cout<<"NO input."<<endl;
	return 0;
}

After a build, there's this in the generated intermediate.manifest file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <dependency>
    <dependentAssembly>
      <assemblyIdentity type="win32" name="Microsoft.VC80.DebugCRT" version="8.0.50727.762" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
    </dependentAssembly>
  </dependency>
</assembly>

If a fresh VS 2005 created project doesn't run then you haven't insalled the debug CRT libraries.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

Questiontypes of images used in loadimage Pin
vikas choudhry9-Dec-08 23:29
vikas choudhry9-Dec-08 23:29 
AnswerRe: types of images used in loadimage Pin
Code-o-mat9-Dec-08 23:38
Code-o-mat9-Dec-08 23:38 
AnswerRe: types of images used in loadimage Pin
CPallini9-Dec-08 23:47
mveCPallini9-Dec-08 23:47 
GeneralRe: types of images used in loadimage Pin
vikas choudhry10-Dec-08 0:04
vikas choudhry10-Dec-08 0:04 
GeneralRe: types of images used in loadimage Pin
gothic_coder10-Dec-08 0:22
gothic_coder10-Dec-08 0:22 
GeneralRe: types of images used in loadimage Pin
CPallini10-Dec-08 0:31
mveCPallini10-Dec-08 0:31 
AnswerRe: types of images used in loadimage Pin
David Crow10-Dec-08 4:09
David Crow10-Dec-08 4:09 
GeneralRe: types of images used in loadimage Pin
vikas choudhry10-Dec-08 17:29
vikas choudhry10-Dec-08 17:29 
QuestionRemoving MFC dependancy in MFC Extenstion DLL Pin
Nishad S9-Dec-08 23:15
Nishad S9-Dec-08 23:15 
AnswerRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Mark Salsbery10-Dec-08 4:56
Mark Salsbery10-Dec-08 4:56 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Nishad S10-Dec-08 17:47
Nishad S10-Dec-08 17:47 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Mark Salsbery11-Dec-08 6:06
Mark Salsbery11-Dec-08 6:06 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Nishad S11-Dec-08 17:45
Nishad S11-Dec-08 17:45 
AnswerRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Michael Dunn10-Dec-08 9:29
sitebuilderMichael Dunn10-Dec-08 9:29 
GeneralRe: Removing MFC dependancy in MFC Extenstion DLL Pin
Nishad S10-Dec-08 21:16
Nishad S10-Dec-08 21:16 
Questiondoubt in Template Pin
KASR19-Dec-08 23:13
KASR19-Dec-08 23:13 
AnswerRe: doubt in Template Pin
Nishad S9-Dec-08 23:18
Nishad S9-Dec-08 23:18 

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.