windows

HTTP request with Windows script host (.hta)

I can't believe I'm stuck here, but I can't seem to make a simple HTTP request using Windows script host or simple .hta file. This is my code: <script language="Javascript"> window.onload = function() { var http = CreateObject("Microsoft.XmlHttp"); }; </script> When I start the .hta file I get a JavaScript error saying something ...

Working out version of windows

Possible Duplicate: How to detect Windows 64 bit platform with .net? How do you know if the operating system is x64 or x86 from a c# .net 2.0 windows applicaiton? Also the applicaiton is 32bit. Thanks ...

Setting & finding a svn repository on a system in LAN

Hi There, I have installed TortoiseSVN on machine 192.168.1.56, & want to synchronise with it from 192.168.1.60, when i insert the repository address in URL like this "file:///192.168.1.56/D:/Repository" and click finish, i get the message "Location information has been specified incorrectly" what is the proper format...Thanks inadvance ...

How to modify the PATH variable definitely through the command line in Windows

I would like to make a .bat file that would add some string at the end of the value of the Windows PATH variable. Warning, I want this change to be definitive, not working only for the current session. Does somebody know of a way to do this ? As much as possible it should not be dependent on the version of Windows ...

Install DLL Server on x64 Windows

I need to install a shell extension (64-bit DLL server) for the contextual menu on any version of Windows x64. I'm able to register the extension just fine (regsvr32) if on the target system I have installed the redistributable files for VS 9.0 SP1 x64 (setup file from Microsoft). However I have to make a setup and cannot require the us...

Slow shared memory performance when moved to 64-bit OS

I am having an issue with a 32-bit legacy app running on 64-bit windows. The app in question uses CreateFileMapping to create shared memory. When this is run on 64-bit Windows any attempt to access this shared memory from another process takes about 1 second. The shared memory is created using page protection flags: flProtect = PAGE_REA...

How do you find out who created a private heap?

I have an Windows C++ application which has a memory leak. I am pretty sure the leak is in one of our (many) linked libraries. I have instrumented the global new and delete function in our app and the app calls to allocate memory seem fine. They account for about 10% of the process working set though. When I walk the heaps // http://...

How to use static members and singletons in dll's?

Hi all, actually i'm working on a windows (MSYS/MinGW) migration of our Linux project. With Linux everything works fine, but with windows i got trouble with static members and singletons which have to be used over the context of different dlls. I.e. I've an configuration mapper, which is a singleton build in a config.dll. If i use this...

Compiling libshout using QT/qmake

I'm trying to link my QT application to a DLL (libshout), while building for Windows. I've added the appropriate lines to my .pro file: LIBS += -L/local/lib -lmp3lame LIBS += -L/local/lib -lshout LIBS += -L/local/lib -logg LIBS += -L/local/lib -lvorbis LIBS += -lwsock32 I've also successfully built and installed libshout to /local/li...

Third party service to trigger web service

I am looking for a third-party service or tool that can trigger or hit a web page at scheduled times. Does anyone know of any? I currently use my windows scheduler to hit these pages, but there are gaps in this since I don't run my computer 24 / 7. ...

Easiest porting path from OpenGL Performer?

I have an existing program written in OpenGL Performer. Because new licences aren't available and the existing code base is old and poorly documented I was thinking about going through, fixing up the code (eliminating warnings and other bad programming practices). As part of this process I was thinking about switching the rendering ove...

RegisterClass failed: class already exits

When I create a child window for the second time, if (!::RegisterClass(&hwClass)) { throw std::runtime_error("RegisterClass failed!"); } It throws an exception that the class already exists. but the child window class was deleted when the child window was destroyed at: WM_DESTROY: { delete this; //destroy child class } It w...

C# How do you get the operating system architecture (x86 or x64)?

Possible Duplicate: How to detect Windows 64 bit platform with .net? How can I retrieve the operating system architecture (x86 or x64) with .NET 2.0? I have not found any good method to get the OS architecture on Google. What I found was how to tell whether the process is 32-bit or 64-bit. If there isn't anyway to find out i...

Rails development on Windows

I have been developing Rails applications on windows platform for a couple of month now and I'm still looking for right tools how to do it more effectively. I'm using Netbeans IDE and running all rails commands through windows CMD (including GIT). But NB feels kind a bloated and slow. I have tried using gVim but i did not have so much t...

Trouble with variable. [Python]

I have this variable on the beginning of the code: enterActive = False and then, in the end of it, I have this part: def onKeyboardEvent(event): if event.KeyID == 113: # F2 doLogin() enterActive = True if event.KeyID == 13: # ENTER if enterActive == True: m_lclick() return...

Programmatically Installing the Windows Recovery Console (Without a CD)

How can I programmatically install the windows recovery console, without using a CD? Note that I suspect most of the steps would probably be unneeded if the windows recovery console was redistributable, but I doubt it is redistributable. Examining http://www.bleepingcomputer.com/combofix/how-to-use-combofix#manual_recovery leads me to ...

Cannot implement meter in windows API

I am using the windows API (in C++) to create a windows application. Now, I have a progress bar which I want to show like a meter. A meter is blue and has no animation. I cannot figure out how to implement this, and if I have to, I will just settle for the usual green progress bar. Please help. EDIT: At least, is it possible to disabl...

C++ SetConsoleCtrlHandler routine issue

I'm writting a console application in C++. I use SetConsoleCtrlHandler to trap close and CTRL+C button. This allows for all my threads to stop and exit properly. One of the thread performs some saving that require some time to complete and I have some code to wait in the console crtl handle routine. MSDN specify that a box should pop u...

Install Visual Studio 2008 AFTER 2010?

Have a shiny new Windows 7 64-bit machine and got a bit over zealous and installed Visual Studio 2010 before I installed VS 2008. Still need 2008, can I install 2008 after 2010 or do I need to uninstall 2010, install 2008, then SP1, then reinstall 2010? ...

Create thread just like if it were a separated application in C#

I've been having a bunch of exceptions when trying to use a WebBrowser on a multithread application. COM component, protected memory and other exceptions everywhere I do stuff with the WebBrowser. I just gave up and went back to my single thread version which works fine. I would post code but it's hard to localize the cause of the proble...