Answer Questions
EdSwartz Making the .exe file
Hey I have a file .cpp that have my program. I want to execute it and make the .exe file. However, i cant find the way to do that in Visual Studio. Seens like I can only copilate the file if i creat a project, and then i have to build the project. when i build the project with my .cpp file inside, it give alot of errors and dont build the .exe. Can i creat a .exe file without making a project (like, just opening the file and pressing t ...Show All
Fetzir performance VC++ 2005 vs. VC++ 2003
The code below runs in 17 seconds on my machine when compiled under Release mode on VC++ 2005 and in 13 seconds on VC++ 2003. This is an extract of the code so don't worry it does not make much sense. First I though it was because of checked iterators but it does not make a difference if I use #define _SECURE_SCL 0 or not. What else could it be Thanks, Bumbrlik -------------------------- // #define _SECURE_SCL 0 #incl ...Show All
PAF7 Class inheritance in Visual C++ .NET
I was reading the following article in the December 2004 issue of MSDN Magazine, http://msdn.microsoft.com/msdnmag/issues/04/12/CustomFormsDesigner/default.aspx entitled, "Tailor Your Application by Building a Custom Forms Designer with .NET." It's pretty interesting stuff, and the code download is written in C#. There are several classes that inherit from numerous interfaces. I have the 2003 version of Visual Studio C++ .NET standard, in which ...Show All
sflouise Char ipv. LPCWSTR
Hi, i'm not really experianced in C++... well in my sight :) i never used the VS compiler before. but now i'm cant work without it anymore. My problem is that i had a lot of code, who all worked with the char parameters, like: MessageBox(NULL, "test" , "test" , 1); This is under a Win32 empty project. Now he keeps saying, "cost char[5] cant convert to LPCWSTR" My question is, if there is a option for still using the char parameters, or else a ...Show All
RCUELLO c/c++/c#
I am currently an intermediate programmer in visual basic .net. I want to learn a C language and was wondering which I should learn first and the main differences between them. Between C, C++ and C#. Thanks, Korab Yes, you can compiler stadard C++ program with VC++.net. Your can crete a Win32 Console Item when you do so. Do you know anything about John Wiley & Sons C++ for dummies, 5th edition But thats not based on t ...Show All
akramm In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h
In my program I have #include <GL/glut.h> like this,but when compiling my program,it have error "can not open file GL/glut.h" Thank you for your answer. Hey i tried those things u said, and i cant get my program to work. I take a course and my program works fine there, but when i take it home and try to run it here it doesnt work. I have a redistributable version on Visual Studio 2005, and they use 2005 there to ...Show All
dpittman msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin I am having the same problem... I even uninstalled ...Show All
Giovanni Costagliola Rectangle woe
Hello, Fist off I would like to apologise for how dumb I probably seem but using the MFC is completely new to me and my grasp on C++ was basic as it was. I'm a university student doing Computer Science and my problem is a piece of coursework I have to do. It's in C++ and we've all just been thrown in the deep end. My question is, is there any way of using the MFC and GDI to easily create a rectangle with rounded corners If not how do I go ...Show All
Steve Shrimpton setting compiler options programmatically.
I am trying to simplify my life and set up all compiler options programmatically in a single file where I will see what is going on. I created a .cpp file and copied an MSDN function in there that is supposed to do it. My intention is to call this function eventually from the main routine. So far all attempts to compile the file failed with the errors described below. First the code: using namespace System; using namespace System::Object; using ...Show All
blahmoo64 A simple CPP source file change caused entire solution to relink
My group is new to VS05 and previously used VS 6.0. Several people in our group have had an ongoing battle with the compiler. It seems that when you make a simple change to a CPP source file that it will cause the entire solution to have to relink. We do have dependencies set between several projects within the solution, but if I am not changing a common header file or a method signature then I would not expect all of the project to need to be r ...Show All
Franky Piferoen GDI+ : Drawing objects over TabControl
Hi, I've been working my way around GDI+ for a couple of weeks now. I made a little application where user can choose among several shapes and then move/place chosen shape using mouse, building this way a customized furniture set. The area where user can place each shape chosen is delimited by a panel control for which I defined the background color as having transparent. Everything is going smooth but... As second step, I added a tab co ...Show All
Malini Reddy fatal error C1083
Hi, I am using a VC++ V7.1.3088. Although, I have a directory reference of the subjected file in; Configuration Properties C/C++ General Additional Include Directories I get .... : fatal error C1083: Cannot open include file: 'appsywcomdev.h': No such file or directory.... during compilation. If I delete the directory referenc ...Show All
Clifton G. Collins III \CLR Compilation woes!
Iv compiled my current C++ project as \clr as i want to start putting in some specific C++\CLI code to serialize my MFC objects to .NET equivalents. The program crashes on startup, something to do with the stack frame being corrupted. My first concern is the program has ballooned in terms of the size of the executable image. When it attempts to run it fails and some report about stack frame corruption. Iv noticed any C files have to be conver ...Show All
Alex Zaff handling the global static object constructor thrown exception in VC++ Express Edition
Hi, I am new to VC++ and would like to know how can I handle the exceptions thrown from a constructor of a global static object is to be handlwed in VC++. I tried creating another global static object which sets a handler function using set_terminate method but the control is not going there. Any guidance appretiated in handling the exceptions thrown by the constructors. Thanks and Regards, You run just into more trouble ...Show All
bam Is C++ a version of VB... Im so confused.
Ive been told that VB6 is just a simpled version of C++. Or is it a seperate language. Does it have any connection to VB6 No, C++ is another programming langauge, Visual Stuido 2005 supports, Visual Basic.Net (or VB8), C# and C++.Net, for Visual Studio 6, it supports Visual Basic 6 and C++ 6. For more please read : C++ and Visual Basic . Hope this ...Show All
