douglane19's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DirectInput ConfigureDevices in Windows Vista
Hello, in Windows Vista (RC2) IDirectInput8.ConfigureDevices() simply doesn't work. This function is used to bring up the generic key/joystick mapping UI introduced by DX8. The return value is "the device is not registered with directinput". We use it in one of our titles because it does the job really well and writing our own mapper looks really unnecesarry. We've also tried DirectInput samples from DX9 SDK and this function fails on all samples that use it - they work normally under Windows XP. Is this a Vista feature or a bug I would be really thankful for any information on that. It would also be of help if you try the samples "ActionBasic", "ActionMapper" or "Multimapper" and try to bri ...Show All
SQL Server DISPLAY DAtes
Hello I have this as a calculated field for displaying dates like 1/1/2007 =DATEADD("d", Fields!TimeIncInteger.Value , DATEADD("n", Parameters!GMTOffSet.Value,Parameters!BDateTime.Value)) This format increments the day vaues fine but how can I get it to increment month vaues too. i.e presently it gives me day numbers perfect 1/2/2007 ..2nd january but for 5th february it gives date as 1/5/2007. month value remains 1. any help appreciated. thanks I haven't tried this, but it looks like you are adding the minutes instead of months. Change the 'n' to an 'm'. =DATEADD("d", Fields!TimeIncInteger.Value , DATEADD(" m ", Parameters!GMTOffSet.Value ...Show All
Visual Studio Team System Can I use one account instead of three accounts when I setup VSTS?
I'd like to use only one account -- TFSSETUP to set up VSTS. I don't want to use TFSSERVICE and TFSREPORTS accounts, because it's hard to manage. Due to our company policy, I have to change our password every three months. One account is easy to us to handle the server I tried that, but it didn't work, because TFSSETUP is required to be an administrator, while the other(s) are required not to be an administrator. best regards, /Tomas PS. As some other post mentioned, there is a tool for changing passwords in TFS. ...Show All
Visual Studio Team System Team Foundation Server and SharePoint
We are currently running TFS with SharePoint Services 2.0. We have a need to upgrade to SharePoint Services 3.0. If we upgrade the current installation to 3.0, should we expect any issues with the Team Foundation Server Thanks. Hi Rbenko, Unfortunately, TFS does not currently support Sharepoint 2007. Check out these links for more info: http://blogs.msdn.com/jasonba/archive/2006/11/08/warning-about-upgrading-wss-to-v3-0-on-team-foundation-server.aspx http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=441445&SiteID=1 -Matt ...Show All
Visual C++ Porting DLL from VS6 to VS.2005 no longer loads (Manifest problem?)
I'm relatively new to VS.2005. We've been developing and deploying our DLL using VS6 and the DDK (depending on the partner) since I can remember. I installed VS.2005 Pro (Version 8.0.50727.42), tried upgrading my projects (one is the DLL itself, the other is a stand-alone test harness that loads it and tests it by passing it various parameters). So, of course, I'm not positive the projects have all the settings correct. With that caveat, though, I'll explain what I've tried. The test app calls LoadLibrary() with the full path to the dll, and the call fails with error code 14001. After some searches online, several people appeared able to solve this problem by somehow correcting or eliminating their manifests. That led to me to learn ...Show All
.NET Development Increase Heap Size?
I am reading in a huge data set which I need hold in memory all at the same time and I need more memory. Either: 1) Can I increase the heap size for my application 2) Can someone explain to me how to write and read my objects to unmanaged memory " "wsstefan"@discussions.microsoft.com " < "= UTF-8 B d3NzdGVmYW4= ="@discussions.microsoft.com > wrote in message news:406332c6-db37-4650-a7bf-29a088626fa8@discussions.microsoft.com ... Time to get Vista. Currently I'm using all managed C# .Net 2.0 code. Are there any pitfalls I should expect when migrating my solution to a 64 bit machine. I assume I should go back and change all of my int declarations to int32. If your "giant hashtables" ...Show All
.NET Development Validating Xml with the longer form of EndElement fails
' First create Xml document (Visual Studio .NET 2003 VB) Dim oXmlDocument As New System.Xml.XmlDocument oXmlDocument.LoadXml("<Trees><Oak TreeType=""deciduous""></Oak></Trees>") oXmlDocument.Save("Trees.xml") ' .NET save xml document with spaces <Trees> <Oak TreeType=""deciduous""> </Oak> </Trees> ' Because there is spaces between <Oak ...> and </Oak> validation against an xsd schema will now fail. Complains about white space. ' However, if the endelemnt </Oak> was removed and we closed the orginal Oak like this: <Trees> <Oak TreeType=""deciduous""/> </Trees> ' Validation succeeds. How can this be ' validation code Dim oXMLReader As ...Show All
Visual Basic How do you wire event to function
I'm new to the .net framework and I have a question. Here's what I'm trying to do: I am developing a role base security software(Winform) and want to declaratively test whether the current user has the rights to a specific function. Example: Once a user tries the following: Form1.Show() Before the form is shown an event is raised and the user's credentials are tested. I can do this programmatically: if (User.isInRole("Administrator")) Form1.Show(); else MessageBox.Show("Insufficient Priviledges"); But I want to know if I could do something like this: <Declarativefunction(role:="Adminsitrator")> _ public void Form1_Load(sender,e) { .....Code..... } PriviledgeEventHandler(sender,e) { MsgBox("In ...Show All
Software Development for Windows Vista Can you use custom RuleAction outside of Workflow?
I've looked over the Custom Rule Action samples and would like to do something similar, but w/out the use of a Workflow. I've made a reference to the custom action, specifically the LogAction, in my project and using the ExternalToolKit, I try to write the action portion stating Log("sometext"). Unfortunately, I cannot gain access to this class via the editor. Is there something I am missing or can Custom Rule Actions not be used outside of a Workflow Kavita Kamani - MSFT wrote: The ExternalRuleSet Toolkit sample doesnt allow you to add additional assembly references (only the assembly containing the target type). So it is a restriction of the sample, not the rules runtime. You can extend ...Show All
Software Development for Windows Vista Using wimgapi.dll with VB6 - WimApplyImage causes VB6 IDE to freeze?
I'm writing some code to use the wim imaging api wimgapi.dll with VB6. The code works 100% on capture, with the callback function correctly getting progress information and updating my form with progress bar etc. This works fine when run from within the IDE or from the compiled .exe. The apply image code is a problem though - the WimApplyImage code locks up the IDE part way through. When run from the compiled exe, I get no progress messages to the callback - I do get all the process messages though, and it actually works in that it correctly applies the image, but it stops updating my form until it exits the WIMApplyImage function. Anyone have any ideas I've tried registering the callback both immediately before the WimApplyIma ...Show All
Visual Studio Team System Proxy reports "Service unavailable"
When performing a forced get of a complete folder, using the proxy on a remote site, the following error occurs. " The source control proxy 'pgx206' is not responding, so the request will be sent to the main server ... HTTP code 503: Service Unavailable" According to VS's output window, some files were get successfully because the error is listed only after some files were replaced. Replacing W:\Main\TestFiles\foo.cs The source control proxy 'pgx206' is not responding, so the request will be sent to the main server. Please verify your settings. Additional information: Please contact your administrator. There was an error contacting the server. Technical information (for administrator): HTTP code 503: Service Unavailable ...Show All
Visual Studio Express Editions Visual Studio validator hang
I got problems vith validator. First ting is that it makes problems in all versions of VS2005 (as i read on net). Problem causes asp: tags not to be detected correctly and it disables normal function of suggesting sub tags of current tag in webcontrol or any asp:controls. (sorry if i had explained this badly.) thing is that all this sometimes works and sometimes doesn't. First thing i have done is that i had turned off xhtml validation. Then, when i work i work with page that doesn't use master pages and that i located in root folder. There, there is no problem. From there i write and copy necesary things to target pages. I think this is VS general bug (as i read on web). So if there will be update or something i would like to know o ...Show All
Visual C# How do I create and post a custom message to the process message loop
I want to post a 'message' (preferably a custom message) from a child thread which I have created to the message loop in the main thread. This will allow the thread to interleave its communications to the main thread whilst the main loop is servicing other interface messages. I could do this with a form timer which generates messages but this needs a form. A timer running without a form just starts a thread each time it fires and I am back with the same problem. I can also achieve something similar using a 'Background Worker' but I want a variable number of threads so I can not use the event mechanism which needs a single instance. Using C and the Win API I used to be able to create a custom message and post ...Show All
Visual Studio Team System Changing the layout for a task work item form
I have been using the Team Foundation Server Process Template Editor to make some changes to the work item forms. It works great, but it seems I cannot control the vertical size of two controls placed on the same tab. I am attempting to put the history control under the description text box on the Description tab. When I do this it makes the Description box very small vertically and the history control takes most of the room. I have tried all of the settings available in the template editor and the vertical size will not change. Basically, my question is, before I dive in too deep, is there a way in the work item type xml to do what I am attempting and set the vertical height of the Description and History controls Or is there another ...Show All
Windows Forms Access Controls or Variables on other forms
Without using Properties.Settings how would a form access a variable on the default form or another form How would it access a control (either its property, or perform a control method) the code I provided was an example to which you will have to modify..... Form1 is the default form yes, to which you just change the names/references etc... appropriately. Form1 - you just need to place the code in form1, as for form2, you place to code in form2 ...Show All
