I have a base class with a virtual function.
virtual CString& Foo();
I want to overload this in subclass like so
CString Foo();
is there a way to hide the base classes virtual function? Something like the new keyword in vb.net or C#
...
In MSVC++ you can always do
#pragma comment( lib, "libname.lib" )
TO link a library in from a code file, instead of fiddling with the project options dialog.
I'm looking for a way to add "Additional Include Directories" from the code file instead of using Project Settings/Configuration Properties/C,C++/General/Additional Include Dir...
I have a C# .Net console application which calls a C++ .Net class library. However, when the following application is executed, the list becomes empty!!!
If I remove the line as indicated in the comment next to it, the code works. I don't understand the reason for this.
If I want to reallocate the memory for list in the C++ class libr...
I have a window application (win32 API) in visual C++ in which I have to add tool tips to the control button. Can any one help me out in achieving the above task? Thanks in advance.
...
Im using GDI+ in C++ to draw a chart control. I want to know if there is any performance difference between the above 2 functions. I am not lazy to write code for DrawLines() but it is that doing so makes my code complex. So im weighin the chances of whether to make code execution faster at the expense of reducing readability and potenti...
Hi,
I want to create full screen topmost (screen saver) window with MFC? How to create such full screen window in MFC? I tried to create win32 application and i am able to create fullscreen top most window but i want to create using MFC so later i can put different MFC controls on that window?
Please help me.
Thanks,
Jim.
...
I have a possibly pre-existing directory structure on the client machine server that looks like this:
-|
+css
|-ABC
|-EFG
|-XYZ
+img
|-ABC
|-EFG
|-XYZ
+js
|-ABC
|-EFG
|-XYZ
+htm
|-ABC
|-EFG
|-XYZ
When we send our customers updates to their e-commerce websites we send them in a zip file, which has the follow...
Hi ,
Could someone please help and tell me how to use protocol buffers. Actually I want to exchange data through sockets between a program running on unix and anoother running on windows in order to run simulation studies.
The programs that use sockets to exchange data, are written in C/C++ and I would be glad if somneone could help ...
I am not sure why I am getting an "error C2660: 'SubClass::Data' : function does not take 2 arguments". when i try to compile my project.
I have a base class with a function called data. The function takes one argument, There is an overload of Data that takes 2 arguments.
In my subClass I override the data function taking 1 argument. No...
While I realize that Visual C++ is a language lacking much of the syntactic-sugar that most of us new programmers are used to these days, VC++ 2005 must have some shortcuts that can decrease the verbosity of the code at least a little; does anyone know of these, or is c++ just that verbose?
...
Does anyone know what version of the Boost Library to use with Visual Studio 2005?
...
I was wondering if anybody knew what versions of gzstream are compatible with visual-studio 2005.
...
Hi,
While building a c++ project for windows mobile 6.0 , i am getting an error fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'THUMB'
i don't no the reason why this error is coming.. i do Google a bit.. since i hv not much idea about instruction set, its tough for me to find..
it will be helpful if ...
Is there a library in boost that can be used to unzip a zip file?
...
Is there any way to get Intellisense in Visual C++ for Visual Studio 2005?
I'm trying to get the Boost libraries to load up with intellisense and in the object browser/class view.
I installed the binary for Windows with the BoostPro installer (BoostPro 1.40.0 Installer).
I'm not certain that it comes with the source code however, whic...
I have a VC++ dll library which is built (with Visual Studio 2003) on Windows XP machines ( a US-English PC and a German PC). The source code is the same and does not have any language specific code. The Release version of the dll built on the German PC is approx 30 MB whereas the dll built on the US-English PC is approx 7 MB.
What coul...
hi,
I was using C to display a sentence in three lines. The piece of code which worked successfully in VC++ is giving an unexpected output in Borland C++. The ouptut is a charcter array of size n. In the output I could receive more than n characters for the array. How can I avoid this?
...
Google reveals many tools for taking Visual Studio format sln/vcproj files, and producing a make file from them. But I can't find one that solves the opposite problem - I have a make file that references hundreds of .c and .h files and (for convenience, for debugging, for writing code in the VS IDE) would like to open it as a Visual Stud...
Hi,
When I compile my Visual c++ 2008 express program from inside the IDE and redistribute it on another computer, It starts up fine without any dll dependencies that I haven't accounted for. When I compile the same program from the visual c++ 2008 command line under the start menu and redistribute it to the other computer, it looks fo...
Hello, I'm trying to port some old MSVC C++ code to MinGW/GCC.
One problem is that the project relies heavily on the /DELAYLOAD option for functions that aren't always used, and where the proper dll is located at runtime.
Is there such a similar option on MinGW/GCC?
This code is targeting the windows platform.
...