Greetings, everyone!
I have a class (say, "Switcher" ) that executes some very-very long operation and notifies its listener, that operation is complete. The operation is long, and I isolate actual switching into separate thread:
class Switcher
{
public:
// this is what other users call:
void StartSwitching()
{
// a...
How do you set an HBITMAP object as the wallpaper? I am taking the screenshot of the desktop using BitBlt, so i have the screenshot as a HBITMAP object. Now i can save the object to a bmp file and the set it as wallpaper using SystemParametersInfo, SPI_SETDESKWALLPAPER.
But i am checking if there is a direct way to set the bitmap object...
Simple problem. I'm working on a Delphi 2007/WIN32 application which now uses MS Access as simple data store. I have to modify it to support SQL Server Express, which is easy. These modifications are working so the application can be deployed using either SQL Server or MS Access. (Whatever the user prefers.) I did consider deploying the ...
I've created ILockBytesOnHGlobal and I write 64k of data repeatedly. What I've noticed is that WriteAt performance decreases over the time.
What could be the reason for the performance slow down?
Does it have to do with stream growth?
Here is what I'm doing (in C#)
public override void Write(byte[] buffer, int offset, int count)
...
How do I change the font in my c++ windows console app? It doesn't seem to use the font cmd.exe uses by default(Lucida Console). When i run my app through an existing cmd.exe (typing name.exe) it looks like this: http://dathui.mine.nu/konsol3.png which is entierly correct.
But when i run my app seperatly(double-click the .exe) it looks l...
How do I import a DLL (minifmod.dll) in C++ ?
I want to be able to call a function inside this DLL. I already know the argument list for the function but I don't know how to call it.
Is there a way of declaring an imported function in C++ like in C# ?
...
The solutions I have found are irrelevant:
someone used WebKit in a Delphi project
someone used it with Java
there is QtWebKit (about:blank demo app takes 44 megs)
.Net port of it
GTK+ port
I need a guide how to embed WebKit instance into a pure C/C++ application under Win32.
...
I'm pretty new to C#, I'm trying to complete a little side project I've been working on that uses a small amount of C# code to assist the development of a Windows Desktop Gadget. Basically, I'm trying to implement the IDesktopGadget interface so that I can use the RunGadget method.
Here's what I got so far from reading information abou...
Our program calls InternetCheckConnection every 2 seconds to test whether the program is connected to our server.
We have around 4000 clients running our program.
Now the server response is slow, despite its processor is almost idle and the free memory is high enough.
Is it possible that InternetCheckConnection puts a load on our server...
I want to pop up a window to show that a program is busy with a particular time consuming task. But I don't want any buttons on it. I just want to pop it up, do the task, then remove it. I'm not sure what such a window is called and so don't know what to search for in MSDN etc. Is there some ready made API for this kind of thing or do I ...
We are using the code below to get a list of items out of a ComboBox inside another application's window. This code works (correctly retrieves the list of items) for ComboBoxes in any other application we've tested this code on, however for this particular application the Name property retrieved for each ListItem is garbled.
Here is the...
I have a problem with a VB6 DLL and some of the behaviour leads me to wonder whether Windows is unloading it from memory after a period of inactivity. Are there any good applications/techniques for determining which DLLs are loaded into memory at a given point?
I'm using Windows XP if that makes any difference.
...
I am writing a program that can be loaded by another service (under our control), or by the logged-on user. The program needs to know if the window station is interactive in order to display dialogs. I know GetProcessWindowStation function, but this one returns a handle. Is there a way to find out?
...
Hello,
Please note this is not duplicate of http://stackoverflow.com/questions/1910624/file-r-w-locking-and-unlink. (The difference - platform. Operations of files like locking and deletion have totally different semantics, thus the sultion would be different).
I have following problem. I want to create a file system based session stor...
platform : win32 , language : c++
I get this error when I call an imported function I declared:
Run-Time Check Failure #0 - The value of ESP was not properly saved
across a function call. This is
usually a result of calling a function
declared with one calling convention
with a function pointer declared with
a different c...
If I want my application (written in .NET) to delete a file such that it can not be recovered by disk recovery tool. What are my options?
One that I can think of is that I open it up in write mode, overwrite all of it with some random data and it would make the file unrecoverable. Is there any other way?
...
In Windows 7, the explorer shows a scroll tip in detailed view like this:
This image is taken from this MSDN page, but there's no information there on how to activate this for a plain list control.
I'd like to get my list controls to do the same, but I can't figure out how to do this.
There's the LVN_BEGINSCROLL and the LVN_ENDSCROLL ...
Hey,
In my application i have the app and a service that does stuff for the app. They communicate via a named pipe. Now i can start the app and it starts the service and connects and this works well.
When the application downloads an update, it restarts it self (to unload in use modules) killing the service and then starts the service...
Platform : Win32
Language : C++
I get an error if I leave the program running for a while (~10 min).
Unhandled exception at 0x10003fe2 in ImportTest.exe: 0xC0000005: Access violation reading location 0x003b1000.
I think it could be a memory leak but I don't know how to find that out.
Im also unable to 'free()' memory because ...
What is the best way to draw things in the Console Window on the Win 32 platform using C++?
I know that you can draw simple art using symbols but is there a way of doing something more complex like circles or even bitmaps?
...