windows

Font enumeration on Windows

We're currently using fontconfig for enumerating and matching/selecting fonts on windows. FreeType is used for rendering. It's a bit of a pain, because fontconfig's cache needs to be initialized at least once for every user and installation. And that can take a long time. Windows also seems to provide an interface for font enumeration. ...

What language is used to write operating systems (Windows)?

What is the language used to write operating systems (Windows) or a boot CD? ...

Windows Service Stops Unexpectedly

Hi All, I've written a windows service in C# which for the most part sits very nicely and processes away, but it seems that with load it becomes liable to stop unexpectedly. It basically feeds records from a database with a timestamp, queues them fires off another process at the correct time. It just stops completely, doesnt raise any...

Visual Studio, Flash & ActiveX pickle

About five years ago I wrote a touch screen kiosk application in Visual Studio 2005 (.net 2.0) with an embedded Flash ActiveX movie in it, which ran a Flash application written in Flash 6. Fast forward back to the present and I've been tasked with upgrading our kiosk platform to allow for video conferencing. This requires communicating ...

GetVolumePathName() failed with ERROR 158: ERROR_NOT_LOCKED

GetVolumePathName() API failed and GetLastError() returned ERROR 158: ERROR_NOT_LOCKED. What is the reason for this error and how to overcome it? ...

font is not the same in Linux FF and in Windows FF

Hi, Please check this screenshot! This is the same page in Linux FF (on the left) and Windows FF (on the right, also it's displayed in the same way in IEs). I love how it looks in Linux FF and want to have the same look in Windows. However after playing with all CSS properties I know of, I didn't manage to change its look in Windows....

a problem with creating a site in IIS 7.5 which is using PHP

hey all, I am trying to run web application scripted in PHP on windows server 2008. I have configured PHP (as fastcgi) and IIS. Everything goes fine except the following scenario. In the php.ini document "doc_root" edited with the correct root path for my php projects which is "c:\inetpub\wwwroot\". I created a new site on IIS and mapp...

gtkmm redist. dll (windows) - add_pixlabel -> png-files are not displayed

i just finished a little gtkmm/windows app. my only problem is that if i use the redist-dll´s of gtkmm the button-images (used with add_pixlabel) are not shown. there is a button with a red cross (missing). when i install gtkmm on the computer and run the app without the redist-dll´s in the directory the buttons are shown. any sugge...

j9 vm crash on windows, not on linux

Hi all, An eclipse plugin for IBM RSM launches a java process to make some computations (realized in C/C++ via JNI). The problem here is when the process is started, it crashes...but only on windows. Moreover, if the process is started using Oracle/Sun jvm, it works fine. Under linux, java -version gives java version "1.6.0" Java(TM) S...

C++ link error on Visual Studio 2010 x64

I'm upgrading a C++ code base from VS2005 to VS2010 and I'm rebuilding some third party C++ dependencies. I have no problem building these 32-bit but keep running into problems linking 64-bit (x64). I'm getting unresolved externals for a number of standard library functions. For example: error LNK2001: unresolved external symbol "__decl...

How to check programmatically the OS of remote host?

I need to check if remote host is Windows or Unix/Linux. I can't assume that it has web server configured. All I can do is to try to connect to several TCP or UDP services. Which TCP services (TCP port numbers) usually will be opened on Windows and not on Unix/Linux and vise versa? The other way is to try to ssh to it, and if it fails...

window.Owner (behavior expected)

what am I missing having this code behind on a XAML window // Create a window and make this window its owner Window ownedWindow = new Window(); ownedWindow.Owner = this; ownedWindow.ShowDialog(); I don't see the behavior http://msdn.microsoft.com/en-us/library/system.windows.window.owner.aspx Once this relationship is established, the...

Are there nice kernel32 beep sounds (onboard beep)?

I was wondering if anybody found a nice combination of beeps, that actually sounds like music. This is how to call the method. [DllImport("Kernel32.dll")] public static extern bool Beep(UInt32 frequency, UInt32 duration); // ... // call Beep(2000, 400); My first attempt: for (int j = 1; j < 20; j++) { for (int i = 1...

How can I control the size and position of a new process Window from a WinForms app?

My WinForms app uses Process.Start() to open files in their native app. I want to split the screen in half, showing my WinForms app on one half and the new process on the other. I know I can use Process.MainWindowHandle to get the window handle, but how can I set its size and position? I imagine I have have to use some kind of Windows ...

Multipe Send()'s and Recv()'s using Winsock2

Hello, I am working on a small networking project using Winsock2. I am using a TCP connection and actually am working with IRC as an example since IRC is fairly simple. What I am doing is connecting to the server and sending an initial buffer so the server recognizes a connection. This works fine. What concerns me is that I cannot writ...

Determining the CPU architecture of a static library (LIB) on Windows

I just built libpng on a 64-bit Windows machine using VS2008. It produces a libpng.lib file inside the \projects\visualc71\Win32_Lib_Release directory (Configuration used being "LIB Release"). I used dumpbin to inspect this LIB file: C:\Temp\libpng-1.4.3>dumpbin projects\visualc71\Win32_LIB_Release\libpng.lib Microsoft (R) COFF/PE Dum...

Is there a way to hook into the windows file system so that for a particular directory I controlled every bit with custom code?

I'm interested to know if there's any method/mechanism to roll my own virtual file system that will run on modern windows. The idea would be that no matter what part of the operating system tried to access files under the directory I "control", all of the operations are filtered through some kind of callback code. If not, is there a fu...

How can I make the Win32 API window more modern looking?

Hey, I ordered Programming Windows Fifth Edition a few days ago, and started working with it. I'm starting to learn the win32 api, however, I got a question. The windows do not look modern winxp/win vista/win 7 style at all. How do I fix this? It currently looks like this, crap font and all. Thanks in advance! Machiel ...

How to install a program so it can be launched at startup with admin rights on Windows Vista/7

I read how to do it with a service, but i wanna know if it's possible with a simple application. I'm using c#. Thank you ...

Is there any better MFC 2008 Feature Pack Documentation

I'm trying to figure out how to use the CDockablePane. But the just a few total overloaded demo samples (look like marketing samples not intended for programmers) i can't find any Tutorial kind. And the reference is heavy for a medium skilled MFC hacker like me. EDIT: This is the only documentation i have at the moment: MSDN VS2010 M...