Answer Questions
noeldp Running a very simple Win32 app on a comp without VC++ 2005 Express
Hi! I have installed VC++ 2005 Express and the Platform SDK according to the instructions on MSDN: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx Compiling and running the following program on the dev computer works like a charm: http://www.winprog.org/tutorial/simple_window.html I then changed to release-mode, turned off debugging in the project properties and copied the .exe to another computer without VC++ 2005 Exp ...Show All
JustKuzya Help on choosing the right product
Hello, I'm facing the problem of choosing the right product for my developer's group, and I find myself somewhat confused. First of all I'd like to use a stable and tested product, not a beta one, so I excluded the upcoming 2005, because the Beta 2 version to which I gave a try presents a long list of bugs and annoyances at the moment, and there's too much uncertainty on its real final release date. So let's go ...Show All
KSC Help:Visual C++ compiling question
Hello Everyone: I'm new to Microsoft Visual C++. There r 2 problems that I've never met before when I'm trying to build MFC sample applications by using Visual C++.NET. Questions below: 1.Scribble - sample from MSDN VC6.0 tutorial compiling error Error Message: "Scribble error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CStroke::GetRuntimeClass(void)const " ( GetRuntimeClass@CSt ...Show All
Samie_ug STL binary search - C2784 in debug only?
I'm porting a Visual C++ 6 project to Visual Studio 2005 and ran into something I don't understand with STL. Below code compiled and worked for debug and release modes in VC6, compiles and works in release mode for VS2005, but won't compile in debug mode under VS2005. The call to lower_bound isn't identifying the second operator < for some reason. -- Market.h---------- #ifndef __MARKET_H__ #define __MARKET_H__ #include <vector> ...Show All
Bala Atur c++ compilation strategy
Well .. this is probably not specific to C++ language. It is a more general question on the requirements of including headers, etc, and so sort of basic, of compilers. I have been looking at translation units and linking, etc. I learnt that there can't be duplicate identifiers in all of the translation units combined. If there are duplicates, it's a linking error. It can be avoided by using extern keyword for all the duplicate declarations of th ...Show All
RelaxTintin build error
after downloading VC beta 2 and spending hours trying to get the header files to be recognized and figuring out how to build a hello world file, i decided to move on to chapter 1 of tricks of the windows game programming gurus and run the sample game called freakout, i recieve this error 1>------ Build started: Project: freak1, Configuration: Debug Win32 ------ 1>Compiling... 1>blackbox.cpp 1>c:\program files\microsoft visual studio ...Show All
Jason Bice How to use CContaindWindow in ATL
i want to make a control like ListView in ATL. i think i should create the control based on SysListView32. but CContainedWindow do not provide me any method to manipulate the CListCtrl, like the CListView do. so i can i add items into my control i find that CContainedWindow is actually a CContainedWindowT<CWindow>, could i simply override the typedef like: typedef CContainedWindowT<CListView> CContainedWindow i ...Show All
adange Project Dependencies
Hello again! Now I have a problem with my application's dependencies. When I build my application in Release, the Dependency Walker shows that the EXE is dependent on MSVCR80.DLL. But I want my application to be dependent on MSVCRT.DLL. Is there a way to enforce use of MSVCRT.DLL instead of MSVCR80.DLL Thanks! Which build of visual studio are you using Are you using VS2005, VS2003, etc.. Thanks, Ayman ...Show All
SpecialTee application trying to link to MSVCP80.dll inspite of /MT compiler option
Hi I am using Visual Studio 2005 professional on Windows XP x64 bit version. I am trying to create a dll (say X ) which links statically to CRT libraries. For that I am using /MT option. But still when my console application .exe file tries to load it, I get the message - "This application failed to start as MSVCP80.dll could not be found". If I copy it into the directory it asks for MSVCR80.dll. And if I copy that too i ...Show All
Sachin.Khairnar settings for VS 2005 debug vs. command line
Hi, I'm working on a C++ application in Visual Studio 2005 under Windows 2000. When I run the app from within VS in debug or release mode everything is fine, but when I try to run the executable from the VS command prompt I get a null-pointer error. What is the difference between these two modes of execution Could there be paths to certain dll-files which are unavailable outside of VS Any other relevant environment variables The app uses t ...Show All
jeremy2006 Pass value through VB Scripting in VC++
Hi , How to get the pass the value from VB scripting to VC++ i got my scripting done completely in VC++.. it works cool.. now i need to pass a value to VC++ through scripting. how to do it Thanks Martin Richter for the reply .. but not great enough to solve my issue. i need to get the vaue form the text box which is there in the Dialog. Do u have any example i mean sample where ActiveX scripting is done ...Show All
Frode Omholt Calling methods from another project in the same solution
(VS .NET == Visual Studio 7 from 2002) I have one solution and two projects. One is an MFC DLL and the other is an MFC application. I want to call methods in one project from another project. How do you do this Are there any guides for this on the web I changed Project > Properties > Linker > Input > Additional Dependencies to C:\Proj VS7 (.NET)\test1c++\DLLThread\Debug\DLLThread.LIB lagu26537 w ...Show All
Oliver Schmidt convert double, float, short to wide character.
hey guys, my question is very very simple, yet i have no answer to it. i wonder how to i convert a float or double or short values to a wide character value i found these float conversions to characters, but i want them wide characters, how can i do that thx. i solved the problem. i converted the wide to char, did the conversion i wanted, and converted them back to wide chars. since these r numbers so the co ...Show All
1modris2 "definition of dllimport function not allowed" error
I am rebuilding my code (which was initially built using VC6 with no errors) using .NET2005. after fixing the code to get rid of the errors, I am still left with this one. I have simplified my code (see below) to reproduce the error: error C2491: 'Array<T>::isIn' : definition of dllimport function not allowed I looked up the MSDN help files but it didn't help much. can someone tell me what I need to do to fix this thanks, Julian. templa ...Show All
ArunSun calling Activex methods from a static function--Dialog-based application
i am using an Activex control in a dialog based applicaton(VC++). i created an member variable for that(myportcontroller). In an non-static function i am able to call the Activex control methods using the member variable and worked fine. But i need to call the activex control methods in an static function. Here i cannot use the member variable as it is a static function. So, i declared an object for Activex control class. Using that object i cal ...Show All
