windows

Temporary ASP.NET directory: Which folder for which website?

Hi there! We have a multi-use web server that has a bunch of separate web applications hosted on the same server (IIS6, Windows 2K3). Now, I'd like to clear the contents of the temporary asp.net files for a certain web application, however, how do we find out which directory in the temporary asp.net files maps to the appropriate websi...

Switching the "Files of type" pull-down in .NET OpenFileDialog clears the list of files bug.

I'm trying to use the .NET class OpenFileDialog in C++ and getting a weird bug. My basic code is below. OpenFileDialog^ openFileDialog = gcnew OpenFileDialog; openFileDialog->InitialDirectory = "c:\\"; openFileDialog->Filter = "Bitmap|*.bmp|All Files|*.*"; openFileDialog->FilterIndex = 1; openFileDialog->RestoreDirectory = true; if (ope...

Loading a config file from operation system independent place in python

Hi, under Linux I put my configs in "~/.programname". Where should I place it in windows? What would be the recommendated way of opening the config file OS independent in python? Thanks! Nathan ...

Using Windows Python from Cygwin

I've been using Cygwin on Windows recently. I want to use the Windows installation of Python, so during testing I'm using /cygdrive/c/Python26/python.exe myfile.py rather than python myfile.exe. This is working almost perfectly, except for printing. When I run the Windows Python from Cygwin the output doesn't print until execution finis...

Execute console applications without creating a new console window flickering on the screen (C++, Windows)

I'm writing a windows application and I needs to run some console applications from it and get their output. I tried two different approaches: 1) Using _popen(command, "rt") 2) Creating a child process with redirected output (CreateProcess(), CreatePipe()) They both work but during the execution of some command a new console window is ...

Ruby: Get currently logged in user on windows

In C# I can get the current user of a web app using the HttpContext, however, I can't figure out how to do this in Ruby. Is there any way of doing this? FOR THOSE OF YOU SAYING IT IS IMPOSSIBLE, HERES PROOF: http://www.codeproject.com/KB/aspnet/How_to_NT_User_Name.aspx ...

Resizing windows using Ruby?

I am trying to resize the window of another open application via ruby but I am not sure how to go about doing this. I am guessing this may be possible using the Ruby Win32API, but to be honest I don't really know where to start looking. If one of you guys could point me in the right direction it would be greatly appreciated. ...

How can I see the output of my program in the Turbo C IDE?

How do I print #include<conio.h> in C #include<stdio.h> #include<conio.h> void main() { printf("#include<conio.h>"); } How to get the output as #include<conio.h> you have to put getch(); and press Ctrl+f9 instead of alt+f5 ...

Is C++ name mangling (decoration) deterministic?

I hope to LoadLibrary on an unmanaged C++ DLL with managed code, and then call GetProcAddress on extern functions which have been mangled. My question is are the mangled names you get from a C++ compiler deterministic? That is: Will the name always by converted to the same mangled name, if the original's signature hasn't changed? ...

Implementing the clrscr() funtion to understand its working

I am trying to make the copies of the builtin functions and adding a x to their name so i can understand each functions working.While writing a function for clrscr() i am confused about how it works.Does it use 2 nested loops and print (" ") i.e space all over the screen or it prints("\n") over the screen?Or what? I tried this: #include...

Resources and tools for TCP tuning

I'm developing an application where, to satisfy the performance requirements, tuning of low-level network stuff (such as TCP window size etc) seems to be required. I found the magnitude of my knowledge to be a bit better than "there's TCP and there's UDP", which is far from enough for this task. What resources might I study to get a be...

windows xpe sdi deployment problem

Hi everyone. It is the second week I am trying to deploy xpe images, I read all tutorials and papers but nothing happend:S My problem is easy in fact; I am trying to deploy windows xp embedded images to my target machine's harddisk. I am using a xp embedded (via usb boot) that I developed for basic utility services(tap vs...). I bu...

Print any document with a textual identifier on it

Is there any possibility of printing any document (e.g. image, PDF, Office document, etc) with a text label at the top of page? Modifying actual files isn't an option for me. I'm wondering if there's anything like that provided in Windows printing system. Thanks. ...

UnstatisfiedLinkError while trying to use jepp in windows

Hi all! I am new to java.I have written some python scripts and need to run them from java as desired by my mentor(these scripts are to be deployed on a server).So I have installed Jepp on my windows xp.However when I run C:\Program Files\Jepp>java -classpath jep.jar jep.Run console.py I get java.lang.UnsatisfiedLinkError: C:\WINDOW...

What is the most efficient way to read a big text file backwards?

What is the most efficient way to read a big text file backwards, line by line, using Windows API functions? For example, if a file is: line 1 ... line 108777 line 108778 the output should be: line 108778 line 108777 ... line 1 I want to write a C program for this. You don't need to write a code (but if you want, that's great), I a...

PEAR directory problem on Windows

I've downloaded the ZIP archive of PHP and extracted it under my profile. I then needed some PEAR packages. go-pear.bat apparently installed PEAR just fine, I just needed to go into the pear.bat file afterwards and adapt the path to php.exe – no big deal and after that it ran. However, when I try installing something I get the following...

Minimum DirectX 9.0c version and how to check for it

Dear all, Our Windows C++ Ogre-based game is nearing completion. Before we publicly release it, we have to solve this matter : Ogre crashes on many test-computers if they are not updated to the latest Dx9.0c version. All these computers already had 9.0c installed, but that must have been an older OS-pre-installed sub-version, hence the...

Bat file set command

Hi, I have the following echo off set installType = /t set msBuild=c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe set adminBuild = %msBuild% "d:\Projects\Test\Test.csproj" /T:Package /P:PackageLocation="d:\Projects\MSBuild\Package\Test.zip" set adminDeploy = d:\Projects\MSBuild\Package\Test.deploy.cmd %installType% echo %ms...

Automating adding sites to IIS7

I'm building some scripts for automatically setting up a developer's machine so everyone has an identical setup & configuration. One thing in particular I want to automate is the configuration in IIS7. We have a bunch of web apps which need to be hosted locally and would ideally like them all set up automatically. Does anyone know of a...

How do I get STL std::string to work with unicode on windows?

Hello All, At my company we have a cross platform(Linux & Windows) library that contains our own extension of the STL std::string, this class provides all sort of functionality on top of the string; split, format, to/from base64, etc. Recently we were given the requirement of making this string unicode "friendly" basically it needs to s...