windows

mysql import on windows

I have a file, db.sql. I have tried to import it using: mysql -uroot -p[password] db < db.sql All I get is a listing of mysql commands, or I get a syntax error. The weird thing is I used this file last week and, as far as I know, I'm doing it the same way. I create the database, then in command line enter the above but it's not workin...

Parse information from programs added to taskbar with C++

Basically what I am trying to do is write my own pseudo task bar in C++. The program needs to idle until another program is started up, at which point it needs to visually depict that the other program is running. For each other program that is running, the user should be able to click on the visual representation and have Windows switch...

How can I program software using Python for Linux/Windows?

For example, using C# I can make software fairly easily for Windows. I downloaded Python but all I get is a terminal like window for executing single lines of code. Is there a free IDE/Visual editor for designing GUI's in conjunction with Python? Thank SO. :D ...

Coming from making Windows-only programs in C#, what steps are there for developing for Linux AND Windows?

I want to start making a little window-based program that runs on both Linux and Windows flawlessly. It must have a GUI. What are the things I should be reading about? I'm completely in the dark regarding this. Thank you. ...

Open form before windows login c#

I have a c# computer locking system and I am trying to make it so that it shows my unlock form before you log into the computer. I know this is possible because I have seen it before on another program. Thanks. ...

Change startup order c#

Possible Duplicate: Open form before windows login c# Hey, how do I change the startup list? Basically I have a program that is a computer locking system and when I enter it into the registry to start up when login, it is like the last thing to open, Thanks. ...

Out of memory on _beginthreadex

I currently debug a multi threaded application, which runs without errors until some functions where called about 2000 times. After that the application stops responding, which I could track down to _beginthreadex failing with an out of memory error. When examining the Application in ProcessExplorer I can see a growing number of thre...

How can my Ruby "Time.now" timings be so low when my "ping" timings are so high?

I'm using MongoDB for the first time and trying to time its performance. I'm running ruby on a VirtualBox Ubuntu 9.10 guest with a Windows 7 64-bit host. MongoDB is on a remote host, not on my lan buit somewhere in the internet cloud. Here's my code: time1 = Time.now rows = coll.find(some_criteria) puts ((Time.now - time1) * 1000)....

C# - Determine if user is moving a window

I am going to be checking if the user is moving any window around (my application does not have an interface) and respond accordingly. What do you think is the best way to do this? Can I determine if the user is clicking on a titlebar? Can I determine if a window is being moved? I then need to grab the hWnd of the window after I know it'...

Send message to a Windows process (not its main window)

I have an application that on a subsequent start detects if there's a process with the same name already running and, if so, activates the running app's window and then exits. The problem is that the main window could be hidden (only a notification area icon visible), thus leaving me with no window handle. At startup, previous instance...

PCSC-Lite Codes on Windows

I've successfully built a program that can read Mifare 1K Card using Qt on Linux. So now, I would like it to run on Windows. From what I've gathered, there's no PCSC-Lite port on Windows and I need to use winscard from Windows SDK. I've downloaded it and I got lots of undefined reference errors from my Qt in Windows (with MingW). For exa...

Manually Installing ActiveX component

I'm trying to view a surveillance camera system. The remote access is available through a website, and that website seems to need to download a CAB file full of goodies to let me view the cameras. On some of my systems this install process goes over nicely. On a few, particuarly the ones with slower Internet, I get into an endless-l...

Global Shell Hook only registering local events

I am trying to use a global shell hook to listen for windows created and destroyed events, but it seems as though my program is only registering the destroyed event for the local thread. No creation events at all, and definitely not the global events that I think they should be. I have spent the last day scouring the googles as well as ...

Unicode support in Web standard fonts

I need to decide whether to render geometric symbols in a web GUI (e.g. arrows and triangles for buttons, menus, etc.) as Unicode symbols (MUCH easier and color-independent) or GIF/PNG files (lots of hassle I would like to avoid). However, I have seen Windows clients that have trouble displaying even advanced punctuation symbols declare...

Slow response from getaddrinfo

I'm using getaddrinfo to do DNS queries from C++ on Windows. I used to use the Windows API DnsQuery and that worked fine, but when adding IPv6 support to my software I switched to getaddrinfo. Since then, I've seen the following: My problem is that some times getaddrinfo take very long time to complete. The typical response from getaddr...

Recommendations for getting started with WiX?

I found a WiX Tutorial, but it's really long-winded and seems like more than I wanted. What's the best way to get started quickly? My end goal is nothing really complicated: an installer that installs an ISAPI filter. ...

How Windows Portable Executables are portable across machine architecture

Is Windows Portable Executables are really portable across machine architectures? If so how it works? If not then what does "Portable Executable" mean or which part of executable is portable? Thanks, Siva Chandran ...

Python programs coexisting on Windows

I'm looking for a way to let multiple Python programs coexist on the same Windows machine. Here's the problem: suppose program A needs Python 2.5, B needs 2.6, C needs 3, and each of them needs its own version of Qt, Wx or whatever other modules or whatever. Trying to install all these dependencies on the same machine will break things...

How can I make my batch script for deletion of old files work?

Inside a folder (say c:\test) I want to delete the oldest file if the number of files are over 21. This is what I came up with, issue is that it one time deletes the oldest file, second run it does nothing and deletes the oldest for third, continues like that. Also it doesn't care if the file amount is lower than 21, deletes even if it ...

Z-Index div hover overlay issues with [windows] Webkit (Safari, Opera, etc)

Edit: This ONLY occurs on Windows Webkit, does not occur on Macs I am trying to set up a grid with fixed sized cells with a background image. When you hover, the background image and height of cell is changed/increased and overlays the row below it. I tried a few ways to create this idea and came down to that a table with z-index ...