I create HPEN using WinAPI GDI method:
HPEN hPen = CreatePen(PS_DOT, 1, color);
Then draw line using the methods MoveToEx and LineTo.
In fact drawn line is dashed. 3 pixels empty, 3 pixels with color -- dashed line.
Why PS_DOT style doesn't draw dotted line?
How to draw dotten line using WinAPI?
...
We really want to start pushing-out products using the 3.5 framework but it is a pain having to install the framework on every PC.
We can get the app to do and automatic update on first run but that takes forever.
Is there any way to force all the PC's to update overnight? e.g. via Windows Update...
Our PCs are a mix of XP and Vista
...
Hello,
how to unrar files using php on windows? Is there any script or codes to make it possible?
Thanks
...
Hello Everyone :)
I have a Windows service built which is being installed by .NET 2.0's installutil /i command.
It installs the service as with the following Account and Password:
NT AUTHORITY\LocalService
running my service with
net start
brings a Error 5: Access Denied Message.
To remove it I've had to open up services.msc...
I am looking at updating a program that currently uses DirectShow for video capture. While DirectShow seems to work well, I was wondering if there were any more powerful or up to date SDKs or APIs that I should look into. Some features that would be helpful would be ones that will:
Provide a consistent framerate (33ms between frames ...
Today we have built an console application for running scheduled tasks for our ASP.NET website. But I think this appoach is a bit error prone and difficult to maintain. How do you execute you scheduled task (in an windows/IIS/ASP.NET env.)
Update:
Examples of tasks:
Sending email from an emial-queue in the database
Removing utdated ...
I am using a macro to export a table in a Microsoft Access database to a csv file in order to import into a mysql database. I ended up using a batchfile that would place a marker in the text file before the exporting took place, and then place everything after the last marker into a new file. This works fine, except for the fact that acc...
I'm quite fond of using GNU getopt, when programming under Linux. I understand, that getopt(), is not available under MS VC++.
Note:
Win32 environment
using Visual Studio
No Boost
No MFC
Not concerned with portability
Question:
How can I then port getopt() accordingly?
What guidelines should I be aware of while porting?
Known po...
Are there any major issues to be aware of running a PHP 5 / Zend MVC production application on Windows? The particular application is Magento, an ecommerce system, and the client is really not interested in having a Linux box in their datacenter. Has anyone had luck getting PHP 5 and Zend MVC working correctly on IIS?
...
I would like my computer to do specific tasks periodically or at a specific time.
Such as:
to wake up each 15 minutes, connect to the Internet, check e-mail, beep (if there is unread mail), then go standby again
to wake up at 8 am and play music
In the best case, it should be asleep and therefore, silent and going low-power.
It's n...
Once upon a time, a young, naive engineer thought it would be a good idea to separate out some of the functionality for his app into a COM component, written in C#. Visual studio had all the tools to do that, right? .NET was practically made for this, right? HA! He said, this will be easy. I'll have decent separation of components, ...
Most of my recent programming has been on 32-bit Windows using C/C++/C#/VB6 . Lately, my customer are asking if my code will run on 64-bit Windows.
I'm wondering what legacy features I might be using that will break on 64-bit Windows? What are some real-world issues I need to think about and worry about?
Obviously, I will test my code ...
I'd like to communicate with a USB device under Windows and Java but I can't find a good library to do so. I don't want the user to have to install any extra hardware or device drivers to make this work. That is, I want to be able to interact with USB just like other Windows applications do.
I am familiar with jUSB and JSR 80 but both s...
I was hoping someone could help point me in the right direction and/or provide a sample for me to look at. I need to get the WM/Picture field inside a WMA file that I decode using WM Encoder and C#. I have been able to get all the other tags fine, but media.getAttributeCountByType("WM/Picture", "") function always return 0. But Windows...
I have a windows exe app that used to sends packets to a server in the clear. This app (lets call it the client app) is definitely close sourced, but some clever hacker hex-edited the binary, and made it send packets that are scrambled.
Now, obviously, those packets are scrambled in a way that is decipherable (otherwise the server would...
I'm looking for an easy way to find the process tree (as shown by tools like Process Explorer), in C# or other .Net language. It would also be useful to find the command-line arguments of another process (the StartInfo on System.Diagnostics.Process seems invalid for process other than the current process).
I think these things can only ...
How to translate MS Windows OS version numbers into product names?
For example, in .NET the following two properties could be used to work out that the product is MS Windows Vista Ultimate Edition :
Environment.OSVersion.Platform returns Win32NT
Environment.OSVersion.Version returns 6.0.6001.65536
...
Has anyone tryed to install Nutch on Windows? I'm following this installation guide: http://zillionics.com/resources/articles/NutchGuideForDummies.htm
After a few bumps I'm stuck trying to run the crawler. It gives me this error:
bin/nutch: line 15: syntax error near unexpected token '$'in\r''
'in/nutch: line 15: 'case "'uname'" in
A...
Say you were mainly a C-syntax like programmer and Linux systems administrator, and you were tasked with creating some simple automation tasks on Windows (monitoring of back-up files, process monitoring, ...). Which language would you prefer to write your scripts in? There's a large collection of VBS-scripts out there (using VB syntax), ...
HI,
Can I start another application from a driver code? The code is written in C and compiled with DDK.
...