windows

"Android Create" call fails in windows 7 - missing JDK

I'm having a problem getting my android dev environment setup in Windows 7. I follow the instructions here, as well as several environment sublinks. I am using Eclipse with the Android plugin. I have installed the Java JDK several times, in various locations (jdk-6u20-windows-i586.exe) - but I am obviously missing something. Every ...

Retrieve Heap memory size and its usage statistics etc...?

Lets say I open some application or process. Did some work with that. Now I closed it. Need to know whether this application caused any memory leak. i.e used up some heap memory and not cleared it properly. Can I get this statistics some how? I'm using Visual Studio (for development) under Windows OS. Even I would be interested in kno...

Programmatically Enable / Disable Connection

Hi, on Windows 7 I can enable and disable connections via the Network Connections Manager panel (in system settings). How can I do this programmatically in C#? Thanks ...

How to control Open MP thread pooling?

Hi, I have been using Open MP to speed up an application. However I seem to be having a problem with the creating of additional thread pools. I am compiling on Windows XP using Visual Studio 2005 (Open MP 1.0). The program is similar to a web server, a request from a client comes in and I spawn a thread (using beginthread), this thread...

Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why?

I'm running GacUtil.exe from within Visual Studio Command Prompt 2010 to register a dll (CatalogPromotion.dll) to the GAC. After running the utility, it says Assembly Successfully added to the cache, and running gacutil /l CatalogPromotionDll shows that the GAC contains the assembly, but I can't see the assembly when I navigate to C:\WIN...

Visual Studio 2010 -- how to reduce its memory footprint

I have a solution with just under 100 projects in it, a mix of C++ and C# (mostly C#). When working in VS2005, the working set of Visual Studio is considerably smaller than that of VS2010. I was wondering if there are some things that can be turned off, so I can develop in VS2010 under 32-bit OS without running out of memory. ...

CommonAppData in vb6

Basically the same as this question, but for VB6. A customer's application "AppName" has its configuration files stored in CommonAppData. Under Windows XP that is C:\Documents and Settings\All Users\Application Data\AppName Under Windows Vista that is C:\ProgramData\AppName How do I get the correct foldername ...

SVN public DNS access problem

Hi All. I met a problem on Subversion configuring behind an Apache under the windows. The server is in domain. If make a check out with the local DNS from the server via HTTPS I have no a problem , if I (or someone else outside from the company) tries make checkout by specifying the public DNS via HTTPS failed by saying : This is not ...

How to send stream data via Bluetooth from an iPhone/iPod Touch to a Windows C++ application?

Hello, I need to develop an iPhone/iPod Touch application that creates a server to send some data stream (characters or bytes) to a Windows C++ application via Bluetooth. I'm thinking of creating a TCP connection, but don't know where to start. What iPhone API should I use do to something like this? Does anyone knows some code examples...

.NET Windows Service - Pulling Updates with Service Restart

Hi All, None of the following has been attempted - I have no idea if it's possible, or, for that matter, where to start. I'm presenting a hypothetical scenario for a project I'd like to attempt. Situation: I provide a windows service to a remote client (customer), where they install the service on their server. Issue: Somewhere ...

Still some questions about USB

Hi, few days ago I asked here about implementing USB. Now, If I may, would like to ask few more questions, about thing I dind´t quite understood. So, first, If I am right, Windows has device driver for USB interface, for the physical device that sends and receives communication. But what this driver offers to system (user)? I mean, USB...

Delete link to file without clearing readonly bit

I have a set of files with multiple links to them. The files are owned by TFS source control but other links to them are made to them. How do I delete the additional links without clearing the readonly bit. It's safe to assume: The files have more than one link to them You are not deleting the name owned by TFS There are no potential...

Where does VS 2010 Tools' gacutil.exe install assemblies?

I used the Visual Studio 2010 Command Prompt's gacutil.exe to install an assembly. I expected the assembly to be added to C:\WINDOWS\assemblies, but it was instead added to C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL and is not showing up in C:\WINDOWS\assemblies. Is this a problem and should I be concerned that it's not showing up ther...

Extracting RAR archive into multiple directories on Windows

Hello, On a Windows box, I need to extract a RAR archive so that individual files in it go into specific directories. I can provide, say, a text file that lists each file and the target directory for it. Then I need help creating a batch file that will actually extract these files into their target locations. Please help. E.g. RAR a...

How to extract all dependencies from a Windows file in Python or grep

How do I extract all the dependencies from a Windows file in Python? So I basically want to extract all the used exe,dll,osx,sys etc. files. I would like to to this in Python or directly with grep. ...

How to "pathconvert" under Maven?

I am having a similar problem as http://stackoverflow.com/questions/1799684/ant-basedir-slashes-escape-problem except that I'm running under Maven. I'd like to generate cross-platform paths relative to Maven's built-in property ${basedir}. The problem is that under Windows, ${basedir} resolves to a path containing Windows-style slashes....

Is Private Bytes >> Working Set normal?

OK, this may sound weird, but here goes. There are 2 computers, A (Pentium D) and B (Quad Core) with almost the same amount of RAM running Windows XP. If I run the same code on both computers, the allocated private bytes in A never goes down resulting in a crash later on. In B it looks like the private bytes is constantly deallocated a...

How to find the real problem line in my code with Application Verifier ?

I am now trying to use this Application Verifier debugging tool, but i am stuck, first of all: it breaks the program at a line that is simple variable set line (s = 1; for example) Secondly, now when i run this program under debugger, my program seems to have changed its behaviour: i am drawing image, and now one of the colors has chang...

Launch application from a browser

Hello, Is it possible to launch an application from a browser? I am not talking about opening a file from a browser (like open a PDF with Adobe Reader), but rather opening a new (blank) instance of an application that is installed on the user's machine. Hypothetical situation: User browses a website that lists computers that can be man...

c++ callback syntax in a class

I am trying to figure out the syntax to register a callback with this 3rd party software. I think it is probably a basic question, I just am not too familiar with c++. They have a method for registering a callback function so their code can call a function in my code when an event happens. They provided a working example that register...