Hello
I have a simple example below that does not compile. i get the following warrning about const
Error message:
error C2662: 'Cfoo::GetNum' : cannot convert 'this' pointer from 'const Cfoo' to 'Cfoo &' Conversion loses qualifiers
class Cfoo
{
public:
bool RunMe( const Cfoo * bar ) {
int i = bar->GetNum()...
I can't catch this problem on my own comp, but "test users" keep informing about this.
What is it? (HKEY_CURRENT_USER, handle is got by RegOpenCurrentUser)
1 = ERROR_INVALID_FUNCTION
...
In my experience, antivirus software is a nuisance at best and behaves much the viruses they promise to protect us from.
If I have to install antivirus software in a .net windows 2k8 environment, which ones are least invasive and likely to cause issue with my .net applications?
...
I have a process that will have some important values in the memory. I don't want anyone to be able to read the memory of my process and obtain those values. So I tried to create a program that would look at the list of programs running and determine if any of them were "debuggers", etc. But I realized that someone could just write a qui...
According to MSDN,
[The pipe name] must have the
following form:
\\.\pipe\pipename
The pipename part of the name can
include any character other than a
backslash, including numbers and
special characters. The entire pipe
name string can be up to 256
characters long. Pipe names are not
case sensitive.
But the...
I want to write a simple sound editor with a very specific purpose: cutting and re-gluing an audio file (which will contain spoken prose) in such a way that each sentence is repeated N times. (This is for foreign language learning.)
I don't want to use an existing sound editor because I would like to tailor the GUI specifically for this...
I'm not interested in replacing the window login. I want to display a message to the user after they have successfully logged in. But I want to force them to hit the OK button before they can continue using the system. Users in the past have claimed to not have seen the message. Therefore, I want to force user interaction or "confirm...
I'm trying to implement http://msdn.microsoft.com/en-us/library/dd377634%28v=VS.85%29.aspx on Qt, to generate a poster frame/thumbnail for video files.
I have installed both Windows Vista and Windows 7 SDK. I put:
#include "qedit.h"
in my code (noting there is also one in C:\Qt\2010.04\mingw\include), I add:
win32:INCLUDEPATH += $$q...
dll export header
extern "C"
void _declspec(dllexport) __stdcall foo();
.def file
EXPORTS
foo @1
When I build the dll by 64bit build config, I meet this warning.
warning LNK4197: export 'foo' specified multiple times; using first specification
But If I build the dll by 32bit build config, the warning never occurs.
Wha...
Hello everyone! I am experimenting with different open source projects just to see which one I can work with since I am a beginner. Of course, many projects have different dependencies and programs that you must install. I want to keep things organized and I don't want to pollute my main windows account, since I use this machine for ever...
I am impressed with Visual Studio Profiler for performance analysis. Fast for my purposes and easy to use.
I am just curious to know about the caveats in visual studio profiler. Are there any better profilers for windows applications which fare better for these caveats?
...
What is my main concern is , I am able to write a C++ dll using VC++ . Now the dll is present in the Debug folder.
How can I use my DLL in other C++ Console Application. How to add reference or link the DLL to the application.
Another point, While creating a DLL , The VC++ wizard gives me thre option:
An Empty DLL project
A Simple DL...
Hi guys,
I have to implement a Windows Service (I'm working on XP) that uses MSNMessenger API.
Well, my "normal" application works good, but when I porting this on a Service, I received this error:
Creating an instance of the COM
component with CLSID
{F81CD990-910B-4BBF-9CB3-6A77F3D697B3}
from the IClassFactory failed due to
...
Hi guys,
I know this may seem quite basic to geeks. But I want to make it crystal clear.
When I want to use a Win32 DLL, usually I just call the APIs like LoadLibrary() and GetProcAdderss(). But recently, I am developing with DirectX9, and I need to add d3d9.lib, d3dx9.lib, etc files.
I have heard enough that LIB is for static linking...
Before the application terminates its
execution, COM must be shut down
again. (Failure to shut down COM could
result in execution errors when
another program attempts to use COM
services .)
The above quote implies that,right?
...
Hi,
I'm writing a QT4.6 application(without the qt designer) and when I close the program I get this error from Visual Studio:
Windows has triggered a breakpoint in
Test.exe.
This may be due to a corruption of the
heap, which indicates a bug in
Test.exe or any of the DLLs it has
loaded.
This may also be due to the u...
In order to be able to so some benchmarks I need to cleanup Windows disk read cache. How can I do this?
In fact I want to compare if loading a big Unicode file (UTF-8 or UTF-16) from disk is faster or not, considering that in memory I do keep UTF-16.
I know that it should be no significant difference but in order to benchmark it I nee...
Hi all,
I am using gVim on Windows and facing the annoying thing of having a new gVim window opened whenever I open a new file. Is it possible to make it open a new tab in the same window?
Thanks,
Rafid
...
I've created a Windows/C++/WTL application that spawns a child process. The two processes communicate via anonymous pipes.
I'd like to be able to debug the child process.
Since both parent and child projects are in the same solution in Visual Studio 2008, is there any way to tell VS2008 that I'd like the debugger to debug both proce...
When my Windows Batch file (.bat) calls other two BAT files it exits after the first one.
How to make it run both of them?
...