I'm working on getting a Visual C++ 2005 solution to compile in unicode. However, In some of my projects (but not all), I get errors in the form:
1>.\CBitFlags.cpp(25) : error C2065: 'L' : undeclared identifier
and the line of code in question is:
LOGERROR(UTILITY, L"Tried to use object to store %d flags, when max is %d",
I am BAF...
I intend to call a function whenever m_logger<<"hello"<<"world" is called. m_logger is of type ofstream.
So i decide to overload << with following signature
friend ofstream& operator<<(ofstream &stream,char *str);
However the vc compiler gives following error:
error C2666: 'operator <<' : 6 overloads have similar conversions
Is...
We have a Visual C++ 6 app that stores data in an Access database using DAO. The database classes have been made using the ClassWizard, basing them on CDaoRecordset.
We need to move from Access to SQL Server because some clients have huge (1.5Gb+) databases that are really slow to run reports on (using Crystal Reports and a different ap...
When I press F5 and source was modified, my Visual Studio doesn't rebuild the source and runs the existing (out-of-date) executable. I need to press F7 then F5.
How do I tell msvc to auto-rebuild when I press F5?
This is MSVC 2005, C++.
...
Hello,
I'm trying to find a memory leak in a windows MFC 8.0 application (Release build).
After failing to show the full stack trace of allocations using WinDbg (or umdh) due to VC8 CRT's malloc problem with FPO, I've tried to apply the solution proposed here (i.e. using LeakDiag with DbgHlp StackWalk enabled) only to realize that Leak...
I'm writing a mixed C++/CLI DLL with both managed and unmanaged classes. Both need access to string and other types of resources, like Direct3D textures.
How best to embed them within the DLL? It seems like there are several ways to do this; .resx (new style, managed), .rc (old style) which can be used to generate .resources files and (...
MS Visual Studio editor highlights some non-keyword identifiers as keywords
in C++ files. Particularly "event" and "array" are treated as keywords.
That's very annoying to me, because they are not C++ keywords.
I know how to add my own keywords to the list of syntax-highlighted identifiers,
but how to remove existing built-in ones?
I'm a...
We have a dedicated Windows XP system running our VC++ application, full screen. We want to protect general user from access system resource via our application. We plan to add authorization to our VC++ application. Whenever user try to access system resource, he/she needs to pass the authorization check first. If we can use existing Win...
hey,
I have a DLL in wich I would like to take a reference to a QObject and manipulate it, without actually creating an interface. So, I included "Qt/qobject.h" and compiled, but the compiler (Visual Studio 2008 pro) gives me syntax errors. It looks like it doesn't recognize the QThread object. How do I use a QObject in my dll? Is this ...
I'm new to MFC and is a bit confused with the new features of "MFC feature pack." Through the wizard I now have an application that looks like an IDE - has a dockable file explorer on the left side and a dockable properties window on the right side. I'm already able to get the selected items on the file explorer window through ON_WM_LBUT...
In VC++, how should I check if a directory is empty?
Is there any function? I am a novice here.
...
I have a few large projects I am working on in my new place of work, which have a complicated set of statically linked library dependencies between them.
The libs number around 40-50 and it's really hard to determine what the structure was initially meant to be, there isn't clear documentation on the full dependency map.
What tools w...
Is it possible to use a library compiled by visual studio in an application compiled by g++ (mingw) on Windows?
...
Is there a basic function call in MFC that simply plays the input error ping?
I am looking for something analogous to the AfxMessageBox() call that simply plays the ping that is frequently heard when an error is made.
...
By using the wizard, and selecting Office 2007 style, you can come up with a UI that looks like an IDE - a dockable file explorer pane on the left, and a dockable properties pane on the right.
However, when you close these dockable panes, there's no way you can show them again. Even if you recompile the project.
I searched through so...
Hi All
I want to plot some data in 3D in VC++.
I searched the internet and MSDN for not much help.
In SO, I found many links towards gnu, and things like that, which are (not) windows stuff.
If possible, can someone point me to some 3d plot API, or source for VC++ ...
Thank you
...
I'm running Embedded Visual C++ 4 with service pack 4, to develop an application for a device running CE 5.0. I'm using the CE 5.0 SDK for this purpose, which works fine except for the fact that while it will target my device (i.e. an SH4 based PDA), it will not let me select anything other than the StandardSDK emulator for debugging. ...
I have a bunch of objects that inherit abstracts interfaces generated from an idl file. Each object that use of theses interfaces include the same file interfaces.h which contain all the c++ generated abstract classes that map to the idl interface.
Each time I change anything into interfaces.idl every classes that depend on this have to...
Hi there.
I am trying to build an app that uses a COM component in VisualStudio ´05
in native C++.
The mix of native and managed desciptions of things in the MSDN totally wrecked my
brain. (I think the MSDN is a total mess in that respect)
I need a short and simple native C++ sample of code to load my Component
and make it usable.
I am ...
Hi
I have created a class library using c#.And i have registered the class library using
regasm..
RegAsm.exe Discovery.dll /tlb: Discovery.dll /codebase
Now i want to know whether the assembly is registered or not using c++. I need because I have to check the registry for this dll if it is not registered I have to registered it
...