Ray Hayes's Q&A profile
.NET Development SendKeys and DirectX
I've been trying to send keystrokes to a directx application, however normal sendkeys does not work. Assuming this is because DirectX is its own virtual domain, or the keyboard is exclusive to the application, is there anyway to send key strokes using direct input or similar I've just started playing around with adding voice recognition to games I play. I was able to send keystrokes to a direct x game using the SendInput() function. The DIK_ keycodes are from the dinput.h directX header file. I found that if I sent normal scancodes they were ignored. Hope this helps. The code below wil ...Show All
Visual Studio Team System VSTS Architect vs. VSTS Developer
With he proposed changes in MSDN subscriptions and Visual Studio licensing, I now have to make a decision between VSTS Architect and VSTS Developer. As I understand, MSDN Universal subscribers will have a choice - they can either go for VSTS Architect and VSTS Developer. I believe that I need both architecture and development tools. Which out of two should I go for The information was interesting but too high-level to be really useful or answer the questions I feel most developers have. I hope you folks will be releasing something with a bit of meat on it like a feature by feature breakdown of what is included in each edition in t ...Show All
Microsoft ISV Community Center Forums Openening an Excel file from within Project
Does anyone know how to open and read/write to an Excel file from using Microsoft Project Visual Basic Thanks, Per our support engineer: Hi Mark, you can use excel automation from visual basic to open /read/write to an excel file. How To Automate Microsoft Excel from Visual Basic http://support.microsoft.com/kb/219151/ INFO: Using Early Binding and Late Binding in Automation http://support.microsoft.com/kb/q245115/ Automate Excel to Create and Format a New Workbook The examples automate Microsoft Excel to create a new workbook and transfer data to a worksheet in the new workbook using ...Show All
Visual C# Capturing output from an external console app
I have an external application which out puts debugging code in console but rather than calling it from my program and it popping up I want to be able to have all of it's text displayed inside a panel or something in my app. Is this possible Regards Jason Thanks for that. Appreciate the heads up on that deadlocking issue as well. ...Show All
Visual Studio 2008 (Pre-release) Should I use the Constructor, the Initialized or the Loaded Event?
hello I have a .XAML Page class. I want to bind some data within a ListView object within it. I am confused as to when one would use the Constructor, when one would use the Initialized event and when one would use the Loaded event. Could anyone clear this up for me thankyou. Initiliazed event is generated by Visual Studio: you don't need (and don't have) to modify this method. If you want to bind your data after the loading of the page, use the Loaded event. If you want to bind your data while you load the page (and so display the data when the page will be displayed), use the constructor. HTH ...Show All
.NET Development Single Program instance
In .NET 2.0 is there an easy way of ensuring you only have one instance of a Windows Forms app running at any one time Thanks Graham For this I just found a great peice of code on the Code project that makes this much easier... http://www.codeproject.com/csharp/singleinstance.asp ...Show All
Windows Forms how to use "SocketType.Rdm" to create a socket?
Hello,all. Socket has many types,one of them is "SocketType.Rdm". As it says,this type of socket supports connectionless, message-oriented, reliably delivered messages, and preserves message boundaries in data. Rdm ( Reliably-Delivered Messages) messages arrive unduplicated and in order. Furthermore, the sender is notified if messages are lost. If you initialize a Socket using  ...Show All
Visual C++ Help Errors
First of all I have no idea on the forum where this is suppose to go so forgive me if it is the wrong place. I have been trying to compile my programs but i keep getting these same errors everytime. Compiling... stdafx.cpp C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3043) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, may be due to missing #pragma pack(pop) C:\Program Files\Microsoft Visual Studio 8\VC\include\winnt.h(3335) : warning C4103: 'c:\program files\microsoft visual studio 8\vc\include\winnt.h' : alignment changed after including header, ...Show All
Windows Forms Build MSI with no uninstall
How can I create a Setup Project that doesn't leave an entry in the Currently installed programs list I just want to install some files on top of an existing installation. If your first setup was an MSI install, I believe the Visual Studio recommended way is to use RemovePreviousVersions so that the old version is removed and the new one replaces it. ...Show All
SQL Server ForEach Config validation errors
I have a Config file for a Data Flow that is utilizing a Configuration file. I have specified in the Configuration file to capture the Directory and FileSpec for the ForEach Enumeration. When I open the package, I get the following error: Warning 1 Warning loading ISOTypeLoss.dtsx: The package path referenced an object that cannot be found: "\Package\Foreach TC03 File.ForEachEnumerator.Properties[Directory]". This occurs when an attempt is made to resolve a package path to an object that cannot be found. i:\visual studio 2005\projects\claimtran\isotypeloss\ISOTypeLoss.dtsx 1 1 Warning 2 Warn ...Show All
Visual Basic How to Use MailMessage to Send MHTML?
I'm attempting to send an MHMTL document out as an email and am having issues getting it to do so. What I've done is created a windows service to poll reporting services for a "Web Archive" report (read in as a string or byte array via System.Net.WebClient) that I then want to send out to a set of people via System.Net.Mail.MailMessage. I'm aware that reporting services has subscriptions built in, but the situation is a little more complex than that and requires a seperate program to poll the report. What I'm looking for is some sort of code sample or something that demonstrates sending MHTML as part of the body of an email us ...Show All
Visual Studio Express Editions question about viewing output
I am just using visual C++ 2005 express as a base to program simple programs in C++. I have a couple problems with the program. 1, after i compile the program, how do i execute the program so that i can see the output of the program. 2. how can i view that in a different window Any help would be appreciated. thanks PRessing F5 will compile and run your code. If it's a console program, try setting a breakpoint on the last line, or add code to accept input, such as int i = 0; cin >> i; to force your code to stop and let you view the output. What sort of project is it It will run in it's own ...Show All
Visual C# could not see results after sql server stored procedure row insertion
private SqlParameter CreateSqlParameter( string sLabel, object oValue, string sDirection, string sDbType) { SqlParameter sDummySqlParameter = new SqlParameter (sLabel, oValue); if (sDbType == "Int32" ) { sDummySqlParameter.DbType = DbType .Int32; } else if (sDbType == "DateTime" ) { sDummySqlParameter.DbType = DbType .DateTime; } else if (sDbType == "String" ) { sDummySqlParameter.DbType = DbType .String; } else if (sDbType == "Boolean" ) { sDummySqlParameter.DbType = DbType .Boolean; } if (sD ...Show All
Visual Studio VS2005, Full replacement for VS2003
We are looking at adopting VS2005 for our 150+ employees. One of our simple questions is.... Can we support web application built in VS2003 (.Net 1.1) with the new VS2005 IDE In other words, if we don't have the time/energy/bandwidth to upgrade our .Net 1.1 apps to .Net 2.0, can the VS2005 IDE handle this Thanks very much for your help! That is great news, and I can see (after research) that you are on the Microsoft Visual Studio 2005 development team, so that really helps in validating your answer!... :-) ...Show All
SQL Server error after renaming server hosting SQL Server 2005
STEPS LEADING UP TO THE ERROR 1. renamed server 2. rebooted 3. ran the following script: -- delete the server name currently stored in SQL Server EXEC sp_dropserver @@servername GO -- set the server name stored in SQL Server to match the server name DECLARE @srvr sysname SET @srvr = CAST ( SERVERPROPERTY ( 'ServerName' ) AS sysname ) EXEC sp_addserver @srvr , local GO -- Enable a loopback linked server after renaming the server. DECLARE @srvr sysname SET @srvr = CAST ( SERVERPROPERTY ( 'ServerName' ) AS sysname ) EXEC sp_serveroption @srvr , 'data access' , true GO 4. reboote ...Show All
