windows

Import mysql database in osx

Hi, I have a mysql dump generated from phpmyadmin in a windows environment, when i try to import in osx (using mysql command line) there are encoding problems, the databases have the same encoding and collation. I've also noticed that this problems occurs also when i try to import a diferent database from a unix virtual machine. When ...

Simple Thread Programming

I have started to play with threads in c#, but need now help, here is my code: public partial class Form1 : Form { public Form1() { InitializeComponent(); DoCount(); } public void DoCount() { for (int i = 0; i < 100; i++) { objTextBox.Text = i.ToString(); Thr...

Windows/.NET Load Distribution & Balancing

Hi all, Is there a vetted Windows-friendly, or even .NET-native, load-distributing/load-balancing utility out there along the lines of HA Proxy? We have a .NET stack product, and the one piece that we step out of the stack is for load-balancing. We need something with configurable rules for distribution -- perhaps subdomain-driven -- t...

Which C/C++ GUI toolkit does support Office 2003/2007 styles

I don't need ribbons but i would like to have the blue/orange style. Currently i planned to use WxWidgets but it seems to be not able to do anythink like this. Do i have an alternative other then MFC + Featurepack ? ...

Where to store X509 certificate for Windows service?

I have a Windows service that will normally be run using the Local System Account (although in some installations it may as a specific user account). The service is using WCF, with communication secured using X509 certificates. My question is, where is the best place to store the certificate (and private key)? If using a certificate s...

Is it possible to duplicate a GDI handle?

Or in my particular case a windows region (HRGN)? Updated: The problems is the following: I've a collection of objects, each of these objects can hold a HRGN. These region once acquired is released when the object is destroyed. Since some of those objects are stored in a std::vector I've to define an assignement operator. Until now I...

Setting application info in Qt

Anyone have an tips on setting the application info (ie. right click on .exe->properties) from Qt? I can add arbitrary version strings to Qt resource file (qrc) and display them. But most Windows installers check the version number and I can't find a Qt way of setting these fields other than manually maintaining a separate .RC file So...

find window text and save txt to file named that wont work.

hi, my code wont work and idk why. the point of my code is to find the top window and save a text file with the name the same as the text on the top menu bar (task bar i think?). then save some data to that text file. but everytime i try to use it the write fails if i set the name of the text file before hand so it wont change it will wr...

Windows disassembler: looking for a tool...

Hello. I'm looking for a (preferably free) tool that can produce "proper" disassembly listing from a (non-.NET) windows PE file (*.exe or *.dll). Important requirement: it should be possible to run the listing through a windows assembler (nasm, masm or whatever) and get working exe again (not necessarily identical to original one, but...

Tool to convert .Glade (or xml) file to C source.

I am looking for tool that can convert .Glade (or xml) file to C source. I have tried g2c (Glade To C Translator) but i am looking for windows binary. Any one does know any good tool for window. Thanks, PP. ...

UNC path to a folder on my local computer

Hi all, What's the UNC path to a folder on my local computer, and how can I access it? I have tried: 1. Security for the folder -- set to Everyone Full Control (for now!) 2. Sharing permissions -- set to Everyone Full Control (for now!) I can see the folder in \, but can't go in ( is not accessible.) Error message: "You might not have p...

Windows API Textfield with offset characters

Hi there! Is it possible using the Windows API, to create a textfield that lets me offset characters by exact pixels? if so - how? for example, I would like to place two O letters on top of each other, such that they form something like an 8 ? context is an application for a language where most of the glyphs are written left to right,...

Environment Variable to determine the OS type (Windows XP, Windows 7)

I want to differentiate between Windows XP and Windows 7 in a XML file. Thought i will use an environment variable for it inside the XML. However I could not find any system environment variable defined in windows that gives this information. I see the %OSTYPE% variable but it is only available in Windows 7. It is not defined in XP. ...

How to get information about a Windows executable (.exe) using C++

Hi, I have to create a software that will scan several directories and extracts information about the executables found. I need to do two things: Determine if a given file is an executable (.exe, .dll, and so on) - Checking the extension is probably not good enough. Get the information about this executable (the company name, the pro...

Perl Windows Automation Scripting

I want to learn it. Where can I get some good information to start learning? ...

IIS7 permit access only to local network

Hi, I am having a problem with the IIS 7 on a Win 2008 server. I only want to have access to it inside my network and denied access from anyone outside the network. I had created a rule to permit access to the group of computers with the IP: 192.168.0.1 (255.255.255.0). In the IIS6 this was enougth to prevent access of any IP that don't ...

Problem calling std::max

I compiled my bison-generated files in Visual Studio and got these errors: ...\position.hh(83): error C2589: '(' : illegal token on right side of '::' ...\position.hh(83): error C2059: syntax error : '::' ...\position.hh(83): error C2589: '(' : illegal token on right side of '::' ...\position.hh(83): error C2059: syntax error :...

How can I run Octave under Emacs on Windows (Vista)?

Hello, I installed Emacs 23.1.1 and Octave 3.2.3 on my computer running Vista. To make Emacs find Octave, and to make Octave's prompt what Emacs expects, I added the following to the end of my .emacs file: (setq inferior-octave-program "C:/Octave/3.2.3_gcc-4.4.0/bin/octave-3.2.3.exe") (setq inferior-octave-startup-args (list "--eval...

starting a process from a .NET windows service

Hello, I am trying to start a console application from a .NET Windows Service. The service is running on a Windows 2008 server. I use Process.Start to run the console application and it runs( I can see it in the task mgr), but I never get the process id back and the call to Process.Start just hangs. If I run the same service from my W...

How do I let my console window always on top with Python?

How I let the window always on top? ...