the system cannot find specified

Hi,I Have windows 7 64bit os.Every time that I want to run program that I Wrote I in Visual C++, I see this error :
the system cannot find specified
why is that? can I solve this problem?tnx
Not much information there to work. My wild guess: You are missing the C++ runtime libraries? Google up and download Dependency Walker or use the OS tool SxSTrace to analyze the executable and find out if you are missing any dependencies.
You said MSVC gives you that error, which means "exe file not found", but it is actually there?
Can you see it in explorer ?

Did you compile and link your code first ?

There is no way that runtime libraries be missing, and even if it is so, you see "application failed to start ..." error in that case.
Last edited on
thanks for replying..
madoran there is no exe file. I cann't see that.
my code is :
------------------------------------
//number one
#include "stdafx.h"
#include <iostream>

int _tmain(int argc, _TCHAR* argv[])
{
cout << "a=";
return 0;
}
---------------------------------------------
// or number two
#include <iostream>
using namespace std;
int main()
{
int a;
int b;
int c;

a = 2;
b = 3;
c = a + b;

std::cout << "a=" << a << std::endl;
std::cout << "b=" << b << std::endl;
std::cout << "a+b=" << c << std::endl;

system("pause");
return 0;
}
Then click the "Build" button first and post here the build log.

I can't see any problems with the code.
thanks for helping i find out the sulotion from build log...

correct codes:
#2:
#include "stdafx.h"
#include <iostream>
int main()
{
int a;
int b;
int c;
a = 2;
b = 3;
c = a + b;
std::cout << "a=" << a << std::endl;
std::cout << "b=" << b << std::endl;
std::cout << "a+b=" << c << std::endl;
system("pause");
return 0;
}

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

int _tmain(int argc, _TCHAR* argv[])
{
std::cout << "a=";
system("pause");
return 0;
}


I worked with turbo c++ before... and i dont familiar with vc++!! what's diffrent between them? can u introduce me some tutorial or books about this?
Last edited on
Topic archived. No new replies allowed.