windows

Receiving Multicast Messages on a Multihomed Windows PC

I'm developing a diagnostic tool on a PC with several Network Interfaces based on multicast/udp. The user can select a NIC, the application creates sockets, binds them to this NIC and adds them to the specific multicast group. The sending of multicast messages works fine. However receiving of messages only succeeds if I bind the sockets...

Is it possible to allocate memory to the Flash IDE on Windows?

When editing a large fla (400mb - don't ask!) Flash will sometimes run out of memory and tell me to allocate more memory (in Finder I think). Obviously these are instructions for Mac that have erroneously made it to the Windows version - but is there anything I can do to allocate more memory in Windows Vista? ...

Can Tiny C compiler be used for Open CV code compiling?

Hi Gurus, I am new to OpenCV and I have only Tiny C compiler configured on my Windows XP machine. Can I use this tiny C compiler to compile opencv programs for image manipulations. I have alredy installed python2.6 and opencv2.0 on my windows xp pc. If we can compile how can we do that? I tried on net but found nothing of use.. Please he...

How can I preselect a file in windows explorer using .net ?

How can I popup a windows explorer on a specific folder with a specific file highlighted ? I'm interested in solutions for XP, Vista and Windows 7. ...

Receive Drag'n'Drop in entire wxWidgets window?

I'm receiving drag'n'dropped files in my WxWidgets application via the common wxFileDropTarget manner. In windows, a file can be dropped anywhere on my window, however in OS X only if I drop the file over a blank area of the window does it work. I'm doing the SetDropTarget to my main window and would like to avoid having to do this to ev...

How to optimize paging for large in memory database

I have an application where the entire database is implemented in memory using a stl-map for each table in the database. Each item in the stl-map is a complex object with references to other items in the other stl-maps. The application works with a large amount of data, so it uses more than 500 MByte RAM. Clients are able to contact th...

C# Windows Service Access denied when trying to write in a folder

Hi guys, I have deployed successfully a C# windows service on a windows 7 machine. Now, when I try to create a file using this code : FileStream os = new FileStream(String.Format(folderName, fileName), FileMode.Create); I get Access to filepath is denied. In the service Installer I set the following parameters to : this.serviceProc...

Windows C++: LPCTSTR vs const TCHAR

In my application i'm declaring a string variable near the top of my code to define the name of my window class which I use in my calls to RegisterClassEx, CreateWindowEx etc.. Now, I know that an LPCTSTR is a typedef and will eventually follow down to a TCHAR (well a CHAR or WCHAR depending on whether UNICODE is defined), but I was wond...

Writing module to get video/audio from HDMI

I would like to write a small module that can check if anything is connected to my computer's HDMI input, and if so write a frame of video to bitmap once in a while. Can anyone point me to resources regarding grabbing audio/video from HDMI on windows? ...

Impersonate SYSTEM (or equivalent) from Administrator Account

This question is a follow up and continuation of this question about a Privilege problem I'm dealing with currently. Problem Summary: I'm running a program under a Domain Administrator account that does not have Debug programs (SeDebugPrivilege) privilege, but I need it on the local machine. Klugey Solution: The program can install i...

mysqldump problem with case sensitivity? Win->linux

When i dump a table with uppercase letters using mysqldump it comes out as lower case in my > dump.sql file. I found a report here in 2006, almost 4 years old http://bugs.mysql.com/bug.php?id=19967 A solution here suggest making linux insensitive. I rather not if possible. Whats the easiest way to copy a win32 db into linux? ...

Keeping a window always on top -- including menus (win32)

I would like to have a layered window that is always-on-top, which I can accomplish, but there are certain screen elements that still get drawn over it, such as menus (including the start menu). Is there any way to make a window or child window of my application have a high enough top-ness property that it will draw over another applic...

What is fastest way for a .Net program to index all images on a user's computer?

What is the fastest way for a .Net program to index all images on a users' computer? Using Open Source .Net Libs and native .Net classes. In a way good for XP sp3 ,..., Windows 7 Fastest - Same pc configuration, different time (seconds) .Net program - better C# To index - get a list of absolute links (like c://bla-bla/file ) and sa...

How can I simply "run" lisp files

Python When I learned Python I installed it on windows with a nice gui installer and all .py files would automatically run in python, from the command line or explorer. I found this very intuitive and easy, because I could instantly make plain text files and run them. Lisp I'm starting to learn lisp and have decided (from reviews) th...

tchar safe functions -- count parameter for UTF-8 constants

I'm porting a library from char to TCHAR. the count parameter of this fragment, according to MSDN, is the number of multibyte characters, not the number of bytes. so, did I get this right? My project properties in VC9 say 'use unicode character set' and I think that's correct, but I'm not how that impacts my count parameter. _tcsncmp(ac...

Autorun a removable device in Linux

I have a removable device setup so it autoruns when plugged into a Windows machine and pops up a message giving the owner's information, so it can be returned if lost. Is there a way to do this in Linux as well? It doesn't need to be complex, it can be an option in a right-click menu, or a splashscreen, or anything. ...

Need a fast test to see if a remote printer is available or not. Using CreateIC now, and when printer not up, 20 second delay.

My application does a CreateIC (and later, an OpenPrinter) for the user's default printer. When this is a remote printer, and that printer is powered down or otherwise not present on the network, it takes over 20 seconds for the CreateIC to return. I'm looking for some call I can make that will give me a quick answer if the server is...

Hex editor for viewing combined string and float data

I have a binary file of unknown format that I need to be able to read. I have access to a program which can 'unpack' the file, but the user interface is terrible for exporting data. I've extracted a few points in an attempt to search for them in the file and discover a pattern, but it's not an efficient method. What I'm trying to do is ...

How to run a .class file in Windows 7 OS?

Hi, This is probably a stupid question, but how do I run a class file on windows 7? I usually create my own .java files and then use a basic IDE (with JDK6) to compile it to a class and run it automatically. My professor gave a .class file that we are supposed to play with extensively but I have no idea how to to run it here. Note that ...

Easy way to lock a file on a remote machine (windows)?

I've tracked down an error in my logs, and am trying to reproduce it. My theory is that a file sometimes gets locked in a specific folder, and when the application (ASP.NET) tries to delete that folder it hangs. I don't have the application running on my own machine so I'm debugging this on a remote server. But for the life of me, I ca...