What is the Visual C runtime? - visual-c++

I just wanted to know what is inside the Visual C ++ runtime DLLs? What code? Which functions? Just curious about that.
Thanks in advance.

Is contains standard functions, like prinft, exit etc.
You can find the source code for the library in "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\crt\src" (This is Visual Studio 2008)
The basic dll for Visual Studio 2008 is is msvcrt90.dll
See also this link

The runtime contains code, that is common to/needed in all C++ programs ('think default libraries') and generaly links your code to the OS and it's API.
Code to initialise the app, set up I/O, minimal error reporting/logging, memory management etc ..

Related

Prevent Compile Errors from Non-Compiled VB6 File

I am porting some of the logic from old VB6 files to C#.
For easy reference, and to have the VB6 files available long-term for reference, I added them to my project and set the Build Action to None.
When I compile my project, I get over 100 errors in the Error List related to those files. If there are no other errors in the project, I get a Build Succeeded message and I can run or debug the project. If there are other errors, those errors are well-hidden among all of the VB6 related error messages.
I would prefer to keep the .bas file extension, because Visual Studio provides syntax highlighting that is mostly-useful, as VB6 and VB.Net share significant syntax.
How can I prevent Visual Studio from showing compile errors related to the VB6 file, and treat it simply as a reference document, without abandoning the .bas file extension?
Visual Studio has no support for VB6 code. By using the .bas file type, you are telling Visual Studio that these are VB.NET files which, for some reason, you do not want to compile.
I don't see any way to get the best of both worlds here. Perhaps someone has created the document handling code for .vb6, or you could create your own using the Visual Studio SDK.
Also, a search of the Visual Studio Gallery for free tools for VB6 found two that look interesting:
Visual Basic 6X
Visual Basic Tools for Visual Studio CTP

How do I make Microsoft Visual C++ 2010 Express executable files independent of c++

Whenever I try to build a windows executable file in Microsoft Visual C++ 2010 Express and use the created program, Microsoft Visual C++ always boots up, I want to create an executable file, just like any other windows program without having to go through Microsoft Visual C++. Any information on this would be GREATLY appreciated, Thank You
When you have build you program you have to copy the executable to the destination PC. When your C++ program is in the file hello.cpp compiled in the project moin.vcproj yoi have to copy the moin.exe to the target. There you start the moin.exe. The executable can be placed in any folder.
The C++ compiled program requires that the C++ run-time library is installed. Very often it's already there. But you have problems to run the executable you need to install the correct redistributable package.
Depending on the target CPU you used you need the x86 or the x64 distributable:
Edit: If you don't want to deploy your program you just use the Windows Explorer, browse to the folder where Visual Studio has created the moin.exe, and double start it with a double click. The right mouse key can offer you more possibilities like creating a shorcut.
The search function of the Explorer might help here. If you didn't change the output directory you will find the .exe somehwere below the place where your .vcproj is located.

Is there an Expression Tree Visualizer for VS 2012?

Is there an Expression Tree Visualizer for VS 2012? Have had a search but have found the VS 2008 popping up all over the place, and the new VS 2012 doesn't have a Visualizers folder in the installation directory. Or, am I missing something that I should be able to switch on?
What you can do is fix the visualizer for vs 2010 so it works in 2012. This is very easy. Just get the source from this project : http://exprtreevisualizer.codeplex.com/ and change the DebuggerVisualizers assembly reference of the ExpressionTreeViewer project to :
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ReferenceAssemblies\v2.0\Microsoft.VisualStudio.DebuggerVisualizers.dll
So that it works with the newest version of vs2012. After that copy the results to
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\Debugger\Visualizers
and it should work
No but you have DebugView, in debug mode, there's a proxy for the class with the same properties and an added one DebugView. It's text like. Also Mono.Linq.Expressions has a text writer for expressions that makes C# code, check it out.
I seem to make bad *.dll's when this issue re-occurred for me. I started a GitHub repo with the solution. I included a built and the compiled *.dll which can be downloaded by clicking "View Raw" on this file.
Copy this *.dll to your visualizer directory of choice. I use C:\Users[CurrentUser]\Documents\Visual Studio 2013\Visualizers
(Disclaimer: I am the author of the visualizer in question.)
I've written a debugging visualizer for Visual Studio:

beginner: visual basic build cpp

Disclaimer: I am a total beginner to Visual Basic but code a bit in python and Drupal
I need to compile this C++ app (http://sourceforge.net/scm/?type=git&group_id=227253). I succesfully cloned from git, but how do I compile it (get the .exe) in Visual Basic 2008 or 2010 Express?
I have tried this:
1. Open Visual Basic 2008 Express, File, New, Windows Form Application (naive assumption, which should I choose?)
2. Dragged the contents of the git clone into the Solution Explorer Window (which Adds files)
3. Click Build menu
After that I'm lost. Any help is appreciated! This project uses cmake if that helps.
You need Visual C++, not Visual Basic. They are separate languages.
You cannot compile a C++ program in Visual Basic 2008 Express.
You must download Visual C++. Or purchase Visual Studio 2010 Pro (which includes all of VB, C++, C# and the web tools).
If you've got the bandwidth, I'd encourage you to get this .iso:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express-iso
If you're interested in the "bleeding edge", MSVS 2011 beta is available here:
http://www.microsoft.com/visualstudio/11/en-us/downloads
Otherwise, if you just want to compile some C+ code on a Microsoft Visual Studio compiler, get this:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

Visual Studio 2010 IDE with Visual C++ 6.0 compiler?

How can I do that ? Can I work in VS2010 IDE but have it compile with the VS C++ 6.0 compiler?
And can I work in VS2010 IDE and have it compile by using the the VS2008 compiler ?
you need the Daffodil extension
I know it is possible to achieve this with VS2008 IDE and I'm 99% sure it is the same with VS2010 (but I don't have one to try with). Make a batch file in which you first need to call VCVARS32.BAT file that is included with VC++ 6.0 and then start Visual Studio with "/useenv" switch. You will then use this batch file to start Visual Studio.
.bat file:
call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
start "" "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /useenv
NOTE: This is path to VS2008 IDE, you need to change path for VS10 by yourself (probably just needs changing number 9 to number 10). Also if you are using 64bit OS you will need to change both paths to use "Program Files (x86)".
Isn't possible.
You can use VS2010 C++ compiler to compile VS6 code w/o any problem.
take care about the solution will be migrated to new format (old one is saved as backup)
Here is link below which talks about visual studio 2008 but you can refer it to execute similar steps on visual studio 2010.
http://resnikb.wordpress.com/2009/10/28/using-visual-studio-2008-with-visual-c-6-0-compiler/

Resources