windows

Problem Inserting Report Viewer into WPF Application using WindowsformsHost

Hi I am trying to create a popup from my WPF application which shows a report viewer hosted in a WindowsFormsHost however I am having problems with the following Xaml <Page x:Class="FIS3.ReportViewer.ReportViewer" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

HTMLControl on WM 6.1 - VGA

Hi All, I am facing trouble enabling "High Resolution" mode in WM6 Professional. I am using a HTMLView.dll to embed an HTMLControl in our application. By default the "HTML" Shown is not in "High Resolution" Mode - The App is appearing all zoomed up and as how it is displayed in lesser resolution Emulators/devices.(QVGA) I have already ...

Problem using oracle.dataaccess.dll

Hi, I have an web application which uses Oracle.DataAccess.dll to communicate with and Oracle db. The web application deployed on 32 bit windows system works but not on windows server 2008 64 bit. I installed 10204_vista_win2k8_x64_production_db package, referenced the installed dll (version 2.102.4.0) from the project but I get the fol...

DLL redirection using manifests

Hi, I need to reliably redirect an applications look up of a specific DLL. Using the app.exe.local approach does not work because local files are ignored if the application has a manifest (embedded or separate file). So I am trying to do DLL redirection by defining the DLL as a private assembly in the manifests. I have a test applicati...

Capturing network status change event

I am trying to get events when the internet connection is reestablished after it is lost. It is for a data transfer software that I am developing. If I lose the network during data transfer, I would like to be notified when it is back and continue the transfer automatically. I can of course create a separate thread and check the network...

What is the performance cost of a Win32 process switch?

I know the cost of a physical Win32 thread context switch is estimated at between 2-8k cycles. Any estimates on the cost of a process switch? ...

how to tell when an external application ends in delphi

Hi I am using ShellExecute to run external application How can i tell when the external application ends ? Here my code theProgram := 'MySql.exe'; itsParameters := ' -u user1 -ppassword -e "create database abc"’; rslt := ShellExecute(0, 'open', pChar (theProgram), pChar (itsParam...

IIS7 Home Premium requires Windows Authentication

Browsing many websites, I came to a know that IIS7 does not support "Windows Authentication" if computer is running on Windows 7 Home Premium version. When tried to creating "Virtual Directory" for an web application from "Solution->Properties->Web" it is giving an alert that "Windows Authentication" component should be installed. If H...

Product Name define for visual c++ and c#

Our product contains a bunch of modules spread out over several visual studio solutions and uses C++ and C#. I'd like to define a product name and use it as part of default folder locations, registry keys, etc. What is the simplest way to define this product name in one place? And if I have to use a different approach for C++ and C#, ...

Loading a dll that depends on other dll ..?

What happens when I load some dll at run-time (let's call it Lib1.dll) but Lib1.dll also depends on Lib2.dll but Lib2.dll is not there? ...

QtScript: crash on 64-bit windows.

I have compiled Qt for 64-bit architecture under windows and all works fine except QtScript. The following simple code, working perfectly with 32-bit Qt for windows installed from qtsoftware.com, crashes if compiled with 64-bit Qt . Maybe it's an error in my code? Or Qt is not compatible with 64-bit? Or something else? Any comments are w...

Force Windows Classic Theme for Application

Hey Guys, I've searched around for this question but couldn't come up with anything. The Problem: If a user changes the Color Scheme on their Windows Desktop, it tweaks some functionality in my .net application. Is there any way for me to FORCE my application to use the Windows Classic Theme, regardless of what the user's theme has be...

MemoryLoadError when trying to run py2exe application

I am attempting to bundle up a Python application using py2exe 0.6.9 and Python 2.6.4 on Windows. While the executable runs just fine on the system I used to build it, it fails when I attempt to run it on another system: C:\Documents and Settings\Administrator\Desktop\dist>.\backend.exe install Traceback (most recent call last): File...

Why might trigger a breakpoint when I return TRUE from my OnCopyData?

I'm using Visual Studio to debug an ATL application. When I step over return TRUE in this code, the error occurs: BOOL CMainFrame::OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct) { // Code snipped from here - maybe this causes stack/heap corruption? // I have a breakpoint here, if I step over (F10), AFX trace message ...

unicode in powershell with python? alternative shells in windows?

I want a shell that supports unicode in windows, powershell as it ships doesn't seem to. Powershell V2 (win7 x64) : PS C:\> powershell Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS C:\> python Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copy...

How to programmatically determine the installed version of IE from a script

We have an automated testing cluster based on selenium-grid. To manage the cluster, I have built a collection of Rake (Ruby) tasks which can start, restart, ping, and stop nodes. I'm testing our application across a number of browsers including IE6, IE7, and IE8. This means each node in the cluster has to be aware of which version of IE...

Inconsistent operator new/delete calling

I'm having some trouble with a dynamically linked library calling my overloaded operator delete but not my operator new. My exe looks something like this: class A { public: void func() { t = dynLib::Type::CreateObject(); } dynLib::Type t; }; void main() { A a; a.func(); } And then I have a statically linke...

Opening a php file in eclipse from windows

I have changed my .php file extension association in windows to use eclipse to open .php files. When I double-click a php file, it opens just fine as long as eclipse is not already open. If eclipse is already open it tries to open ANOTHER one. None of my other programs (UltraEdit, Winzip, etc) are retarded like this. How do I get e...

Windows: How do I calculate the time it takes a c/c++ application to run?

I am doing a performance comparison test. I want to record the run time for my c++ test application and compare it under different circumstances. The two cases to be compare are: 1) a file system driver is installed and active and 2) also when that same file system driver is not installed and active. A series of tests will be conducted ...

recv() functions flag for taking the while buffer in one string [windows C]

This code sends and recv s txt file perfectly but cannot do it to otehr formats like .exe or .img. Please help me with these as I need to use htonl or htons?? Take a look!! Here is the server side recv function :: if (socket_type != SOCK_DGRAM) { fi = fopen (final,"wb"); retval = recv(msgsock, ...