Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

problem running programs with windows 8.1 and VE2013

$
0
0

Hello,

I just started using VS2013 express and so it might be a silly question:

I wrote the following code and when I build and run the code, I get two command windows: one with my code (which closes very fast but i can see the program) and one that is just hollow cmd window.

the thing is that I can close the remaining window only through tank manager.

 How do I solve the 2 windows problem?

#include <stdio.h>

int main()
{
	printf("The first question is usually the easiest one.\n");
	return 0;
}

I got a new problem where after building and running the code my VE gets stuck and when I shut it down through task manager and reopen the project i get the following text:

----------------------------

Visual C++ found a suitable location to store its browsing database and IntelliSense files for the solution "C:\Users\yuval\documents\visual studio 2013\Projects\exe0\exe0.sln."

Visual C++ examined the folder "C:\Users\yuval\documents\visual studio 2013\Projects\exe0." This folder is not suitable because of the following:
The browsing database in this directory is open by another instance of Visual Studio and cannot be reopened.  User yuval on HAXX has it open.

Because a 'Fallback Location' was not specified in the C++ Advanced Options, Visual C++ is attempting to use your temporary directory.

Visual C++ examined the folder "C:\Users\yuval\AppData\Local\Temp\VC++\exe0-e09ae31." This folder is suitable because of the following:
The directory is on a local drive.

The 'Fallback Location' is configurable under C++ Advanced Options.

Press OK to use this location.
Press Cancel to disable C++ browsing information and IntelliSense for this session.

---------------------------

It's quite obvious it means that the program is still running but once again, I closed it through task manager. when looking again i see another VE running but i can't close that session, saying: "system cannot find the file specified"

I used process explorer and i can see the program running but I can't seem to close the session from there either.

I am using windows 8.1 x64 (windows update is on) on a laptop (if it even matters)

also, my way of creating a new project is:

file->new project->Win32->choosing empty project

creating a new code sheet:

right click "source files"->new item -> c++ file -> changing it's extension to *.c -> writing the code as shown before

sorry for reposting this on a wrong forum



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>