Deraldo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Problem installing XNA Game Studio Beta 2
I previously had XNAGSE beta 1 installed, however I am unable to install beta 2. I read around on the forums a bit, and this is what I tried: 1. Uninstalled beta 1 2. Ran Visual C# then closed it 3. Tried to install beta 2 However when I try to install beta 2, it gets through most of the install, but after it does "installing DirectX redist" it goes to "rolling back action" and tells me that the install ended prematurely due to an error. Anyone have any ideas what could be going wrong Should I try reinstalling Visual C# as well I do not recommend going back to beta 1. There have been a lot of changes and you will just make it harder on yourself converting in the future ...Show All
Visual Basic Custom Button Control flickers - Paint event gets fired continuously
Hi All, I have a custom button control in VB 2005, ported from VB 6.0. I faced many hurdles before i got it working with all the functionalities that it had in VB 6.0. I draw the graphics of the button in paint event. I need clarifications on the following things. 1. When there is a change in property. example the text property, it needs to be reflected in the control. So i call Invalidate method. Is it the right way to refresh the button 2. This button control works fine when there is no change in the form that uses it while running. i.e. What i mean is, if there is a label in form that updates the timer count down, the custom button control received paint event every time the label in the form that also has this control chang ...Show All
Visual C# Build errors problem
Hi guys I'm new to using .NET and I'm having a problem, when I try to run my asp.net app in vs.net 2003, Iget the message that there were build errors and when I click the btn to stop the execution I get the task list window with 0 build errors filtered. I dont have a clue what my errors are please help Yes thank you very much, enable build warnings was checked, but treat warnings as errors was unchecked so i checked it. I changed a Sub that was giving the prob to a Function and the warning disappeared Thanks a lot ...Show All
Visual Studio Team System Changes since a label was applied
I'm trying to find out what's been checked into a branch of my repository since a particular label was applied. I'm trying: tf history /format:brief /version:L mylabel ~T /recursive * This does indeed produce a history, but exactly which items are included is a mystery to me - it's clear that it's not what I'm looking for though. I've also tried: tf difference /version:L mylabel ~T /format:brief /recursive . This shows which files have changed, but the output is mostly noise (listing names of directories where nothing's changed). But what I really want to see is a list of changeset numbers and descriptions - not the list of files that are different. So, what's the secret sauce for getting history since a lab ...Show All
SQL Server MSCS SQL 2005 Clustering
Hi, I have installed Windows X64 with SQL 2005. I have also installed MSCS Clustering. Question what I have is when I do a Failover from Node 1 to Node 2 it works fine. But if I do a frequent failover from node 1 to node 2 and back Windows crashes. There is a Blue screen when I do a frequent failover between nodes. I have observed that if we wait for 3 min between node failover it works fine, but continous operation cause blue dump Has anybody ever faced this problem ...Show All
SQL Server SQL Server Everywhere Edition gets a new name
After a huge customer feedback, we are rebranding SQL Server Everywhere Edition to SQL Server Compact Edition. More about it @ http://blogs.msdn.com/stevelasker/archive/2006/10/31/sql-server-everywhere-gets-yet-another-name.aspx Thanks, Laxmi OMG, is it too hard to figure out that MS SQL Server Everywhere is different from Sybase SQL Anywhere Can we figure out some more name changes along the way so that all documentation is out of sync and two people who want to talk about the technology can have a contest to see which one knows the latest 'correct' name to use ...Show All
Windows Forms DnD TreeNode between two instances of an app
As shown below, I want to open two instances of a program that contains a TreeView control and drag a TreeNode from one instance to the other. The DnD works for text, but not for a TreeNode. The TreeNode drag works within a tree, but not to the second tree. // There is a Form (frmKeywordManager) and a TreeView (kwTreeView) // // The objective is to open two instances of the program, // populate the treeviews in both instances, and drag tree nodes // from one instance to the other. // // Dragging as text works, but dragging as a TreeNode does not work. // // ------------------------------------------------------------ // TreeView drag and drop events // ------------------------------------------------------------ private void kwTreeView_ ...Show All
SQL Server Using LIKE in SSIS
Greetings SSIS friends, How can I perform the following in SSIS ! case when myColumn like '%HCAP% or '%HANDICAP%' then 1 else 0 end Thanks for your help in advance. In a derived column transformation, try: (findstring([myColumn], "HCAP", 1) > 0) || (findstring([myColumn], "HANDICAP", 1) > 0) 1 : 0 ...Show All
Visual C++ fatal error LNK1104: cannot open file 'mfc42d.lib'
Hi, I'm running Visual Studio 2005 Professional Edition and am having the same error as the guys running Express! How am I to get my MFC applications built on the new platform We are trying to migrate several previously working apps, for better future proofing. I can see MFC 7.1 libraries in there, but they are not being used. It keeps looking for MFC42D.LIB. Regards, Colin R. Begg Senior Analyst - Serco Integrated Transport A long shot: is your application explicitly trying to link with mfc42d.lib, if you check Properties > [projectname] properties > Configuration properties > Linker > Input ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mysterious EffectMaterial Error...
I am trying to draw an x-file, specifically the skybox01.x file included with the DirectX SDK, using XNA. The Code: foreach (ModelMesh mesh in Skybox.Meshes) { //This is where it Crashes, on the next line. foreach (BasicEffect effect in mesh.Effects) { //Effect Settings Goes here } //Draw the mesh, will use the effects set above. mesh.Draw(); } The Error: Unable to cast object of type 'Microsoft.Xna.Framework.Content.EffectMaterial' to type 'Microsoft.Xna.Framework.Graphics.BasicEffect'. I know why it crashes, since what is inside the meshes.Effects is a EffectMaterial and not a basic effect... But how to fix it I have not a clue. I have all 3 files for dra ...Show All
Smart Device Development Printing on WindowsCE
Hello, I'm trying to print from an CF-Application on an usb-printer. I can print a screenshot on the printer by using some API-Functions. But now I'm trying to print my own Graphic (All Data of an DataTable; the result should look like a datagrid). I've been starting with this code: DEVMODE dm = new DEVMODE (); dm.dmSize = System. Convert .ToInt16( Marshal .SizeOf(dm)); dm.dmOrientation = ( Int16 ) PageOrientation .DMORIENT_LANDSCAPE; dm.dmPrintQuality = DMRES_DRAFT; //IntPtr hPrinterDC = CreateDC(null, "PCL Inkjet", null, ref dm); IntPtr hPrinterDC = CreateDC( "pcl.dll" , "PCL Inkjet" , "LPT2" , ref dm); // --- 2--- mit DeviceContext Dokument Starten //DO ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Earth Orbit Demo - Merry XMas
It's finally all working, thanks for all the help! I've created a Sky Sphere demo to help me figure out how to do such a thing for my game. The texture for the sky sphere gets distorted around the poles, and I haven't figure out how to fix that, but otherwise it looks pretty cool. If you're interested, I've uploaded the source code and artwork to: http://www.spellflight.com/GameModels/SkysphereDemo.zip Here's the readme: Skysphere Demo By Michael Billard mike@sbillard.org This Windows XNA demo displays a sky sphere and a simple model that flies around the game world. You can control the model's rotation and position. You can also control the camera rotation and camera position. Background texture by NASA. Models and te ...Show All
Visual Studio Team System Creating a new build type..
Hello, I have set a workspace on a local machine and I'm able to build any .sln without issue, when I attempt to create a build type I run into the following issue; Under the 'From which workspace would you like to select solutions to build ' section - I have two options 1). 'All solutions under team project' or 2). 'xxx' (local workspace) - when I attempt to select my local workspace the following error appears 'TF472027...... please verify the workspace mapping is correct and it contains one or more solution files.' The workspace exists and contains all solutions in the Team Project, it's mapped to a local directory. Has anyone run into a similar issue Thank you. Hmm... Based on the info yo ...Show All
Software Development for Windows Vista How do I get an AutomationElement directly from a WPF control?
We used the UI Automation framework to do some unit testing of a windows forms application on my last project. We have some code that can do some basic asserting and some manipulations of AutomationElements. Now we have started a WPF application and we would like to reuse the same code. For a windows forms control I can do the following Button button = new Button (); AutomationElement element = AutomationElement .FromHandle(button.Handle); In WPF I can't figure out the equivalent. I know I can get a ButtonAutomationPeer from the Button but I don't know how to get the AutomationElement. I'm trying to avoid using TreeWalker or AutomationElement.FindFirst(...). Those aren't as efficient as direct access in a unit testing sce ...Show All
Visual Studio Team System Unable to delete workspaces for moved users
Hi, We have had some misfortune in our active directory domain. Some users where moved by accident to a sub-domain and after discvovering that moved back to the originating domain. This caused of course an update of all SID's of the moved user accounts. The apptier recovered wunderful well with one glitch. The existing workspaces of the users still remain leading to the strange effect that they cannot map a new workspace to the same folder and some users had still checkouts in that workspace. Listing the workspaces shows the troubled workspaces with usernames postfixed with a number (unhappyuser:13) where there also exists workspaces for unhappyuser. I tried the tf workspace /delete option and /tf workspaces /updateUsername:unh ...Show All
