Hello all,
Can someone please point me to the easiest way to have a timer in a Win32 service?
I suppose I could create a dummy window for this purpose or have a second thread do tick counts, but what's best? Is there a more elegant way?
Thanks in advance.
...
I'm building an "import from Excel" function. It has to be in a DLL, called from a non-MFC app. Has to provide an image of the spreadsheet that users can drag a select box around (to select cells), then click an IMPORT button, and have the right thing happen. Having trouble getting the spreadsheet up, having a button adjacent to it, an...
I currently capture MiniDumps of unhandled exceptions using SetUnhandledExceptionFilter however at times I am getting "R6025: pure virtual function".
I understand how a pure virtual function call happens I am just wondering if it is possible to capture them so I can create a MiniDump at that point.
...
I am working with a larger than average sqlite database (for use on both on windows and linux) and am looking to maximize the performance I get out of it. The database is to be installed on commodity hardware along with an sqlite gui. The users I am delivering this to are sql savvy but are unlikely to undertake their own optimizations (c...
I recently upgraded a c# windows service to run as a 64 bit .net process. Normally, this would be trivial, but the system makes use of a 32-bit DLL written in C++. It is not an option to convert this DLL to 64 bit, so I wrapped the DLL in a separate 32 bit .net process and exposed a .net interface via remoting.
This is quite a reliable ...
I'm using SyncToy 1.4 and it would be fine for what I need except that:
It can't handle the assigned drive letter changing between systems (e.g. syncing a USB drive),
it leaves its own (hidden) files in the folders being synched (is this a limitation of the OS/FS?),
it recreates empty folders for ones that have been deleted,
it syn...
With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere and without hand-creating .def files. Is threre a way to do this?
...
Sometimes you cannot delete a file that is used by some other process in Windows. Error can be something like "sharing violation".
Is there any way to determine which process is holding a file?
Is there any utility that can do that (I can use utility call in a program) or is there any other way to get that information?
...
I'm developing a piece in VB.NET. Inside my primary form, I'm creating a new form to use as a dialog. I was wondering if there was a way to, upon the close of the new dialog, save it's size settings for each user (probably in a file on their machine, through XML or something?)
...
I would like to update a dll for a server process without stopping the service. How do I do that?
A bit like how asp.net automatically picks up new dlls placed in the bin folder.
...
First off, here are the constraints:
Must run on XP
Must notify of both drive letter assignments and mounting a volume to a folder
Must not 'wake' a drive if it is sleeping.
I'd really rather not polling the drive.
What I've tried:
Google
I've looked at WMI and the Win32_LogicalDisk class. I can determine which drives are mounted t...
Forgive me for being a complete newbie with Windows DDK.
I have create a simple file named test.cpp:
#include <windows.h>
#define BAD_ADDRESS 0xBAADF00D
int __cdecl main(int argc, char* args[])
{
char* p =(char*)BAD_ADDRESS;
*p='A';
return 0;
}
In the same directory I created a sources file like this:
TARGETNAME=test
...
Hi,
I am playing around with Ruby in Windows using Notepad++ and the console but am finding this extremely inconvenient due to the lack of tabbed consoles.
Any recommendations for a more comfortable environment?
...
Hello. I'm fairly new to JavaScript.
Given a local machine's folder path (Windows), I was wondering how you can extract the names of all the possible folders in the current path, without the knowledge of how many folders there are or what they are called.
Thank you very much in advance.
...
Very simple question, is there any cloud server enviroments avaliable these days for us .NET guys that rivals Amazons ec2?
EDIT:
PDC 2008 looks like there are some very interesting info, and only 4 days 2 hours to wait :-). Looks like I need to get saving fast for the conference fee though.
...
I work with the Windows registry editor (regedit.exe) on a near-daily basis, and occasionally find myself wishing it had more features.
For example, it'd be nice if it had:
a way to import and export favorites.
an advanced search feature that lists all the keys it found, rather than a simple Find feature. It would be great if there w...
Is it possible to subscribe to a Windows event that fires when Windows is going into or coming out of Sleep or Hibernate state?
I need my application to be made aware when the computer is going to sleep to do some cleanup and avoid timing issues when it comes out of sleep.
...
I want to read all thumbnails from a folder with images in Windows XP.
But if I read image file to get thumbnail, it seems a bit slow, so I wish I can first read the windows image thumbnail cache:thumb.db.
Is there any lib in c++ or c to read thumbnails from thumb.db.
...
I need a cross platform solution for clearing the console in both Linux and Windows written in C++. Are there any functions in doing this? Also make note that I don't want the end-user programmer to have to change any code in my program to get it to clear for Windows vs Linux (for example if it has to pick between two functions then the ...
I would like to send some keystrokes from a C++ program into another window.
For that reason I would like to have the user select the target window similar to how it is done in the Spy++ utility that comes with Visual Studio (drag a crosshair cursor over target window and have target window highlighted by a frame).
How is this dragging...