HALF_PTR Windows data type
The VS documentation states Half the size of a pointer. Use within a structure that contains a pointer and two small fields. What, exactly, is this type and how is it used, if ever? ...
The VS documentation states Half the size of a pointer. Use within a structure that contains a pointer and two small fields. What, exactly, is this type and how is it used, if ever? ...
I am trying to execute a file with parameters using the "system()" function in C++ on Windows, and it works as long as there are no whitespaces in the filename. For parameters, putting double quotes around the string works, but when I try the same with the executable itself, I get the following error: "the filename,directory name, or vo...
I'd like a selectable label control, like the one in the screenshot. It could be done with a borderless TEdit, but I was wondering if there is another way that would work with gradient background? To clarify, I'm using a simple PageControl, which since Win XP has gradient drawing, a borderless TEdit placed on a page doesn't blend in p...
The application shall receive messages from all processes of the system. Messages are sent using PostMessage call, which returns an error (5, access denied). The code works correctly on Windows XP SP2, but on Windows 7 application receive messages from only itself, which it should be supposed to get message from every application. Rea...
I have this "interesting" problem. I have this legacy code that looks like int main() { while(true) { doSomething(); } } I would like to duplicate that doSomething() in many threads, so that now main() would look like int main() { runManyThreads(threadEntry) } void threadEntry() { while(true) { doSomething(); } } ...
CFtpFileFind finder(mConnection); found = finder.FindFile("*.log"); while (found) { found = finder.FindNextFile(); wsprintf(fileInfo, "%s", finder.GetFileName()); //need file size of this .log //no member function for this in CFTPFileFind class? } EDIT Answer finder.GetLength(); ...
I want to implement websites using a computer that is running only Ubuntu. This is not feasible because Ubuntu FireFox displays completely different from Windows FireFox. This means that I can do things like JS & PHP on Ubuntu, but have to switch to my Windows Computer to (edit and) view HTML & CSS as they appear for most users. This...
Hi Guys I'm currently trying to set up a kiosk environment in our reception area and one of the requirements is that when a user tries to print from any application, they receive a confirmation dialog box which lets them know what the cost to print will be along with the option to continue or cancel the job. It would be nice if there w...
http://i.imgur.com/OXfC7.png I have a c# form application that has a fixed size (cannot be resized) and cannot be maximized. Users who have a different setting for their icon/text sizes breaks my GUI (the entire form is bigger, background images start tiling, etc. Help? ...
Scenario: I have a c++ DLL. In this DLL, I created a worker thread. In the worker thread, I have a loop that waits for user input via a USB hardware device. The loop ends only when the user input on USB device meets some criteria. Additionally, I need to feedback the user usage feedback of the USB device real-time to display on screen. I...
Let me know if it uses built-in service or has own service for search in documents? ...
Can i run x86 version of Microsoft® SQL Server® 2008 Management Studio Express on windows vista 32 bit edition? ...
Hello, I have followed instructions on the msdn to change at runtime a printer paper size configuration in my application. I have replaced the dmOrientation option by the dmPaperSize to meet my need. All seems to execute fine (no error), but my new paper size is not taken into account until I manually validate the paper size from the p...
Is it possible, safe and practical to use Windows Integrated Security on an Extranet? E.g. there is an IIS website on the intranet that can be used over the LAN with integrated authentication. When the user disconnects from the LAN he wants to be able to use the browser on his domain-joined-notebook to connect to the same website over t...
Below is the script in my SVN post-hook fails to execute on every commit into SVN and hangs c:\PsTools\Psexec.exe \192.168.1.64 -u SERVER1\Administrator -p PASSWORD c:\mybatchfiles\checkin.bat This is to run a batch file on the remote machine (SERVER1) which is located on SERVER1 at c:\mybatchfiles\ But I am able to run the same abov...
Hello, i don´t have a clue why this code doesn´t work on windows. hidden folders are not shown! Gtk::FileChooserDialog dialog("Please choose the ZUP-file directory", Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER); dialog.set_show_hidden(true); any ideas? thanks ...
Hello. I have looked for answers to this on here, but not really found a solution. I basically have print quality images (300dpi) that are taken from PDFs. In this particular project we cannot just resort to PDFs, the button clicked must trigger the print command in the browser so 1 or 2 large print quality JPGs can be printed, one per...
I have in my web.config, is there any way to programmatically "unimpersonate"? There is just one or two little places where I need to not be impersonating... is this possible? ...
A very simple program I might say.. #include <windows.h> #include <gdiplus.h> using namespace Gdiplus; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR cmdLine, int nShow){ // Gdiplus variables GdiplusStartupInput mGdiplusStartupInput; ULONG_PTR mGdiplusToken; GdiplusStartup(&mGdiplusToken, &mGdiplusS...
I need to know how to recover from the following error: Windows service is accessing a file on a network server. The network crashes, server goes down or becomes unavailable. I need the service to wait until the server is back on line to continue processing the files. What should I use to do this? I figure I can trap the server un-avail...