Duane Haas's Q&A profile
Visual Studio Express Editions Browser waiting
I'm trying to put together a relatively simple script for a webbrowser game that provides a service in-game by interacting with the site and doing some stuff with the material within it. I have gotten around most of the problems of how to make it work, but there's one thing that I don't know how to do properly: making the script wait for the browser. In short: I'd need some way of making the script check that the browser has finished downloading the page before attempting to do anything else. Here's a snippet of what I currently have: Public Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles MyBase .Load WebBrowser1.Navigate( "http://www.WEBSITE.com" ) End Sub ...Show All
.NET Development Problem with Authorization Manager IAzApplication.InitializeClientContextFromName method
I am having an issue with the InitializeClientContextFromName method. I am running AzMan on my Win XP machine and it is acessing an ADAM store on a remote Win 2K3 Server. Here is my code: //get the application store store = new AzAuthorizationStoreClass(); store.Initialize(0, _connectionString, null ); //open the application app = store.OpenApplication(application, null ); //get the client context ctx = app.InitializeClientContextFromName(username, domain, 0); The last line of code fails with a System.IO.FileNotFoundException {"The system cannot find the file specified."} I understand that normally this error means that I do not have access to either the AzMan or the ADAM store, but in th ...Show All
Windows Forms setup project and satelitte assembly
I have problem in build setup project. I have SomeExeProject that have referense to 3party multilanguage assembly, it placed on some net share like \\someWarehouse\3partyAssembly.dll So when i build SomeExeProject, it copy to bin folders like ru-RU/3partyAssembly.resource.dll and it works fine. But when i create setup project(SomeSetup) for SomeExeProject and add PrimaryOutput of SomeExeProject and Localized resources of SomeExeProject it not copy to msi folders ru-RU/3partyAssembly.resource.dll And so when i run SomeExe installed from SomeSetup it not work, because application can't find ru-RU/3partyAssembly.resource.dll. I can add File (ru-RU/3partyAssembly.resource.dll) because 3partyAssembly periodically changed and Setup Project i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A message for the XNA team...
Could I just take this opportunity to wish all of the XNA team a happy holiday / Merry Christmas (Shawn - hope you made it back into 'old blighty' through all the fog). Thank you for all of the hard work the your team has put in, so that we could have such a cool product to play with over the holidays. I can almost imagine what it would be like to be a 10 year old finding an XBox and creators club membership under the Christmas tree - I can still remember the thrill of finding a Sinclair ZX81 there and all the pleasure it brought... All too often as professional software engineers we loose sight of all of that, with the daft level of pressure, expectation (and overconsumption of caffeine!) that is prevalent now. F ...Show All
SQL Server Measure group related question
I have a cube with two fact tables, two measure groups. I also created few calculated measures. On client side I see two measure groups and below the calculated measure. Is there any way I can show that calculated measure in one of the measure group. It's easy for end user to see number measure and % measure both next to each other. I hope this can be possible using MDX some how update mdx for measure group or some thing... Thank you - Ashok Ashok, You can easily associate your calculated measure with any existing measure group. To do this, please follow these steps: - Open your project in SQL Server Business Intelligence Development Studio & double click your cube - In the ...Show All
Visual Basic isnull in vb2k5
In vb6, i used isnull to test if the value of my database field is null. in vb2k5, when i tried to use isdbnull, its working well when the field is actually null but if it has a value, it causes an error. how do i resolve this thanks! Isdbnull Method http://msdn2.microsoft.com/en-us/library/tckcces5.aspx Returns a Boolean value indicating whether an expression evaluates to the System.DBNull class. DBNull Class Represents a nonexistent value. This class cannot be inherited DBnull is in fact system.dbnull and is a class, Null (Nothing) in vb is not the same as dbnull. So you need to be careful that you are using the right one otherwise it may provide ...Show All
Visual C++ /QIfist deprecated, but bad fp conversion still sometimes generated?
I've noticed that specifying the /QIfist switch to the compiler in 2005 raises a deprecation warning; according to the documentation this is because the compiler now generates the correct code under all circumstances without it. With the /fp:fast option set, most of the time this seems to result in a call to _ftol2_sse. However I have noticed that in some cases, specifically the assignment of a float onto an unsigned int (such as the one detailed below), the compiler still generates the terrible fnstcw..fldcw..fistp...fldcw instruction stream, which is a serious performance hit for us. At first I thought this was because of the unsigned nature of the output, but upon examination the fldcw is simply setting the rounding mode of the FPU t ...Show All
Windows Live Developer Forums Error
I cant get windows live to work. I keep geting this error code:8004882c Anyone know what this error is What I did was, go to hotmail and sign in, and right after it, I could sign in into the Messenger I don't know why it was acting this way all day long ...Show All
Visual Studio 2008 (Pre-release) Memory Leaking in client when returning a typed dataset from a service.
I have a services that returns a dataset and the clients that accesses this service are all leaking (Even when the client does not call the operation that returns the dataset). I made a small test service and a client and it turns out that a newly created client leaks about 18kb per time a client is created. //Service def [ ServiceContract ] public interface ICalc { [ OperationContract int Add( int x, int y); [ OperationContract TestData GetData(); &nbs ...Show All
Visual C# Seems simple enough ... but how?
I want to temporarily disable event handlers in my Winforms app. I have some code that I only want run when users are changing field values, not when code is setting them. Is there someway to say: DisableAllEventHandlers Some Code Re-enableAllEventHandlers Keith Adler wrote: I want to temporarily disable event handlers in my Winforms app. I have some code that I only want run when users are changing field values, not when code is setting them. Is there someway to say: DisableAllEventHandlers Some Code Re-enableAllEventHandlers the problem is I need to tell whether user events or code is causing things to happen. ...Show All
SQL Server sp_executesql, Stored Procedure, UPDATE, parameters
Hi, I'm beating my head against the wall with what I suspect is a rookie error. I'm using SQL 2005 Express Here is my Procedure: set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo] . [usp_Ridercomment_REQ] -- These parameters are coming from Access front end @PID nvarchar ( 150 ), @REQcom nvarchar ( MAX ) AS -- This create table works: CREATE TABLE NewEntry ( oldcomment nvarchar ( MAX ), newcomment nvarchar ( MAX ), providerID int ) -- this also works to populate the NewEntry table: --(of note, there are lots of web site that discuss the difficulty in passing arrays, but this next section seems to work without a problem) declare @NewEntr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct3D Textures
I am unable to create a Texture from a bitmap, but everything else works correctly. The same code works perfectly in Visual Studio 2003. DX3D = New Device(0, DeviceType.Hardware, MainForm.picDrawArea, CreateFlags.SoftwareVertexProcessing, PP) GetTexture = New Texture(DX3D, bmp, Usage.SoftwareProcessing, Pool.Default) Problem solved with: Texture = TextureLoader.FromFile(DX3D, "filename") Texture = TextureLoader.FromStream(DX3D, texstream) ...Show All
SQL Server Global variable: MaxPledgeID used in Parameter mapping of a property in a DTS
I need to understand why someone would use a global variable in a parameter mapping inside of a DTS package. The reason I ask is that I have (finally) successfully recreated a production environment involving ASP pages that push user data into a table on a SQL server across a firewall. Everything works great up to getting into the T_Pledge_Web table on my test server. However now I need to add to the DTS, an execute SQL task that in essence deletes the user data from the table on the other side of the firewall. It's basically a house keeping step. Here is the current code for this step: Delete FROM T_Pledge_Web Where ID <= The live production DTS has this house keeping step at the end of the DTS and uses this same code but with a dif ...Show All
Windows Forms Difficult to fix focus on main form after splash screen....
Hi, I am new to Windows Forms programming.I need to display a Splash screen and then a Login Form. The problem is that I am not able to get the focus onto the Login form after the Splasher.The Login form just blinks in the taskbar around 3 times after the Splasher.What could be the reason My colleague has used 4 forms.... Apploader.cs,Form1.cs,Splasher.cs,SplashForm.cs. ============================================================================= SplashForm.cs contains the following code... private string _StatusInfo = ""; private System.Windows.Forms.Label lStatusInfo; public void ChangeStatusText() { if (this.InvokeRequired) { this.Invoke(new MethodInvoker(this.ChangeStatusText)); return; } lblStatusInfo.Te ...Show All
Visual Studio Tools for Office VSTO Invalid Reference
I just downloaded and installed VSTO and attempted to create a new solution from the Excel template. I get the following error messages when I compile. The type or namespace name 'Core' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference ) The existing Microsoft.Office.Core reference has a yellow triangle: Copy LOcal: False Name: Microsoft Office 11.0 Object Library Identity: {2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.3\0\primary Version: 2.3.0.0 I can remove the reference and re add the refrence from the COM tab. Copy Local: True Name: Microsoft Office 11.0 Object Library Identity: {2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}\2.3\0\tlbimp Version: 2.3.0.0 and the defalult application w ...Show All
