Hi,
It's 'my' program. How to close windows after 5 seconds?
//...
DeleteObject (hPedzelOkna);
DeleteObject (hBitmapa);
Sleep(5);
PostQuitMessage (0);
/* The program return-value is 0 - The value that PostQuitMessage() gave */
//...
and
DestroyWindow(hwnd);
not work
(I using Dev C++)
EDIT People have suggested using SetTimer...
I need a programmatic way to know if a directory (as opposed to a file) is in use, for example because it is open on explorer or a CMD prompt. If the directory is in use, then it cannot be deleted. The current way I have found to do that is trying to rename it, is there a less intrusive way to do this under Windows?
...
Hey all, I'm working on cleaning up my code from previous semesters.
Previously I created a 151 color swatch library in c++. However because of my time crunch and lack of experience, I created it entirely as a block of define statements. Which, for hard coding values into spots worked fine. However there are some obvious weaknesses to t...
I'm fairly new to C++ (a long time Lisp programmer) and am trying to compile some of the examples for dlib on Windows using MinGW. I added dlib into the PATH. I then call g++ timer_ex.cpp from the examples directory. But I get a lot of error messages.
Short of using Visual Studio, what's the best way of compiling dlib examples on Win...
Hi!
I have written an image processing application with the GUI part written in Java and the number crunching part is written in C and is called via JNI.
My problem is that it takes 20 - 30 seconds for the application to process an image, and during this time the application disappears from the Task Switcher (the Alt-Tab thingy) and it...
I'm trying to wrap my head around getting user input from a joystick/mouse, which doesn't seem all that complicated, but I've run across this simple showstopper: calling joyGetNumDevs() gives me an unresolved external symbol error. I've included the necessary Windows.h and MMSystem.h, so I don't have any idea what may be causing this pro...
hi,
usually when you install a MSI package on windows, it is installed using the currently logged on user account. but i want to install it to a specific user account. for now, i want to install my MSI package using the system account. is it possible? how to do that?
thanks.
P.S. i am using Wix 3.5
...
C:\crp\cnp>sed -V
GNU sed version 3.02
Copyright (C) 1998 Free Software Foundation, Inc.......
C:\crp\cnp>type f.f
a a a
a a a
Trying to replace 'a' with spaces.
C:\crp\cnp>type f.f | sed -e s/a/\d032/g
d032 d032 d032
d032 d032 d032
why isn't it working?
I don't mind whether i'm finding or replacing spaces or new lines.. I ...
I have a bunch of old machines running Windows 2000 Pro and IE 5.0 which I want to upgrade to IE 6 with Silverlight. I downloaded the IE6 and Silverlight installers from Microsoft's web sites and fortunately they both have command line options to allow them to run in "silent mode".
I put the two commands in a DOS batch script and ran i...
If I plan to create a system that is pretty much an MVC .NET site, with the typical separation of components (data, core, ect) but also would like to have a thin Windows client that can access some of those same components remotely, which framework would I want to look at using?
...
My device, which is a Linux based IP in-liner is transparent to the network peripherals, that is, no IP address assigned to any of its interfaces.
For the sake of the conversation, let's use ADSL connection as an example, while the device is inspecting the bi-directional traffic, the network is behaving same as if device was not there,...
What are merge modules and how are they used? I heard that they are .msm files, but I've never seen that before (I've only seen .msi).
Are they used when you create msi files?
Are they distributed with commercial software (presumably together with msi files?)
What is the point of them? Are they to hide the implementation of the install...
How can we change the path of a batch file (.bat) ?
...
Hello,
I have a standalone PHP script and I would handle signal sent from Windows OS to do a graceful shutdown when "kill signal" is issued.
Do you know what to do that on Windows OS?
Thank's in advance.
Regards,
Alberto
...
In my program there is one thread (receiving thread) that is responsible for receiving requests from a TCP socket and there are many threads (worker threads) that are responsible for processing the received requests. Once a request is processed I need to send an answer over TCP.
And here is a question. I would like to send TCP data in ...
How can i change the Java Runtime Version on Windows.
i installed java7 for some tests, now i need as system default the old java6, but i dont want uninstall the java7 (need it for later tests). can i change the system used jre in the control panel/java/jre tab? i can change/edit/add/delete user used version, but not the system used.
...
Hello,
I am trying to run my GTK app on Windows XP and I am having troubles with an import. I have installed the following as needed and recommended:
python-2.6.msi
gtk2-runtime.2-16.6.exe
pycairo-1.8.6.exe
pygobject-2.20.0
pygtk-2.16.0.exe
pyserial-2.5.exe
However, I am getting the following error when running my script:
Tracebac...
Hi ,
I've asked the very same question here :
http://stackoverflow.com/questions/3248008/why-does-my-program-say-folder-does-not-exist-when-run-on-windows-2008
but none of the answers were satisfying and my problem still exists , so I decide to ask it in another way with more detail cause this problem really irritate me and we need to s...
After SetWindowPos( hwnd, HWND_NOTOPMOST, x, y, cx, cy, SWP_SHOWWINDOW), a window whose state was previously maximized, does resize and reposition itself as expected, but the system menu does not change, and still presents the menu items for a "currently-maximized" window, even though it is no longer maximized.
Following up with PostMes...
I am new to WiX 3.0 and writing my first installer based on WiX (coming from Wise).
If the product is already installed (in the current version), I want the installer to switch to "repair"-mode automatically. It should behave exactly like as if I would have clicked "repair" in the Windows software dialog.
It must behave like this to f...