KhRo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. joystick
I am writing a game and attempting to enumerate the joysticks. Only problem is the program never goes into the EnumDevicesBySemanticsCB callback. Can anybody think of why it doesn't Here's the relevant code: enum xDIActions { INPUT_MOVE_LR, INPUT_MOVE_UD, INPUT_MOVE_LEFT, INPUT_MOVE_RIGHT, INPUT_MOVE_UP, INPUT_MOVE_DOWN, INPUT_VIEW_LR, INPUT_VIEW_UD, INPUT_VIEW_LEFT, INPUT_VIEW_RIGHT, INPUT_VIEW_UP, INPUT_VIEW_DOWN, INPUT_KICK, INPUT_GRAB, INPUT_USE, INPUT_JUMP, INPUT_PAUSE, INPUT_MENU, }; DIACTION xDIActionMap[] = { { INPUT_MOVE_LR, DIAXIS_ARCADES_LATERAL, 0,   ...Show All
Windows Live Developer Forums how to test launching an app directly
Hi, in the MSN Messenger Launch Site SDK it says that you can open a standalone (single user) application by doing this: var AppID = "10331003"; var emailID = ""; obj.LaunchApp(AppID, emailID); It says that '1033' is the country code and '1003 is the application code (Helix). How can I test this with my application The MSGRP2P.xml has an EntryID that needs to be 7 for test programs. I tried to launch me test app with the following AppIDs: 10331007 10330007 10337 but none of them worked. interestingly enough one can launch a P4 app from converseagent/buddyscript by using the test id of "7" function overrides MSNSLPGetAgentMainP4Application ...Show All
SQL Server Removing quotations from cvs export in SSRS
I am trying to export a report from sql server reporting services in a csv format, but I do not want the text qualified with quotations. Is there any way to do this You should be able to do that with a filter. See this blog entry for a similar (although not exact) match to what you're trying to do: http://blogs.msdn.com/bimusings/archive/2006/07/19/671743.aspx Buck Woody ...Show All
Windows Forms "dateTimePicker_ValueChanged" event
winforms 2.0 hiya, I want to run some code, based on the value that a user has selected within a dateTimePicker. However, if the user browses to a different month, then the event fires BEFORE the user has actually selected a date within said month. why which event should I use many thanks, yogi You can't, the user might not select another day. Or she might click on several days in a row while she makes up her mind. Why is this a problem As an alternative, consider the Validating or Leave event... ...Show All
.NET Development SerialPort issue
Hello, i've got GPS receiver connected to serial port, which sends data sentences in chars (terminated with CR+LF). I wanted to use ReadLine() method assuming it's reading whole sentence, but it's not. It's possible to tweak SerialPort setting to enforce SerialPort to read using lines (CR+LF), please Or i have to read byte after byte and concatenate or slice buffer, please Thank you for any hint. Jan Byvaly wrote: i've got GPS receiver connected to serial port, which sends data sentences in chars (terminated with CR+LF). I wanted to use ReadLine() method assuming it's reading whole sentence, but it's not. It's possible to tweak SerialPort setting to enforce SerialPort to read using ...Show All
Software Development for Windows Vista how to pass data between two activities
how to pass data between two activities ...Show All
Visual Studio 2008 (Pre-release) Media Element Formats and Player
My question relates to the video format and media player in WPF. In previous frameworks, while mostly used, Direct3D was used to play videos in specific formats such as AVI or WMV. While this may work in the new framework, it is under my impression that the WPF Media element only works with WMV. Plus, in order to play the media element itself the user must have windows media player installed in order to play (version 10 or 11). When I have used the Media element it only sometimes works while loading wmv files without any other codecs necessary. Is this an issue with WPF in general, or am I have I missed something here - Thomas I recently found a wiki entry on the technology behind media features of WPF and Vista in general. A lot ...Show All
Microsoft ISV Community Center Forums One COM Add-in for all versions of Office (2000 and up)?
If I create a COM Add-in for Office XP, will it also work for Office 2000/2003 Or do I need to create a new Add-in for different versions of Office Is there any reason to use COM Add-in vs. traditional XLA or DOT file beside having one dll that works for both Excel and Word Basically, microsoft suggest that you build a version of your add-in for each version of office you want to use. There's a good article on this issue at http://blogs.msdn.com/omars/archive/2004/04/26/120047.aspx which might help you to find a solution. ...Show All
Windows Forms ClickOnce and .Net Framework 3.0
Hi ! Do you know if the new version of the framework has any enhancements/changes/upgrades regarding ClickOnce Technology Planning new deployments, is there anything different that should be taken into account Thxs Daniel .NET Framework 3.0 doesn't have any changes to ClickOnce. This is the version being released with Vista (and should be available for downlevel platforms as well) and is basically the 2.0 Frameworks with the Windows Presentation Frameworks, Window Communication Frameworks, and Windows Workflow.... Until we get to the Betas, we can't discuss what will be in the next version of Visual Studio... but I have been busy :-). ...Show All
Windows Forms Newbie question: Common Binding Sources for several Forms?
Hi, I'm coming from Delphi world and learning from scratch VB.NET Express 2005 with SQL Server Express 2005. I'd like to develop a small database app. where I have a main data grid, and when the user press a "view button" on the Navigation Bar, a dialog box opens with data detail from the selected row on the grid from the previous form. Is it possible to have common Data BindingSources used by the 2 forms, so my detail form is loaded automatically with the same table record the user selected from the grid in the previous form In Delphi there was the DataModule, where one can centralize datasets and data sources for all the application, and if 3 forms referred to the same data source, all data was in sync on ...Show All
Visual Studio Team System Problem getting source from Foundation Server
Hi We have encountered a problem getting the source from VSTS source control. We have a solution folder that contains libraries such as the Enterprise Library libraries that we use in our application. Just recently however we seem to have run into a problem, in that if we try to do a get latest in whatever manner you try the contents of this library folder are not downloaded from the Foundation server to a local machine. If however I try to a tf get I do get the folder being downloaded or I go to a slightly older version of the solution the files come down fine. If I go into source control explorer and do a Get Specific Version force download the files come down as well. In addition when the solution is loaded up it complains tha ...Show All
Visual C# Couple of C# newbie questions
I am very new to C#, so please bear with me if these questions are rather elementary. 1) I wanted to get the system time, so I searched the forums for it, and found this example: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=424660&SiteID=1 while this is all good and well, are there no easier ways to format a date Maybe something similar to Java's DateFormat classes 2) I tried to apply generics to an ArrayList class, as such: ArrayList<MyObject> myList = new ArrayList<MyObject>(); but I got the exception that I cant use ArrayList with type arguements. Am i doing something wrong Or are there other lists reserved for Generics use 3) I cant seem to figure out how to add a Titled border to ...Show All
SQL Server Report doesn't work from client side
Hi everyone, Primary platform is XP as client side and 2003 as server. When I press F5 in order to see my report from IE appears this error: An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source 'SQL1.BDADMIN'. (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors However, preview button works properly and data are showed. Let me know where am I failing. Regards, Can you verify that the account that you are using to connect to the SQL1.BDADMIN database has permissions to connect Jarret ...Show All
Visual Studio Express Editions This drove me nuts
How can I save data entered in a dataset via the UI I tried the code suggested in the "VB Guided Tour", Private Sub Form1_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Me .AddressesBindingSource.EndEdit() Me .AddressesTableAdapter.Update( Me .SQLdbDataSet.Addresses) End Sub but all changes are lost when I restart the application. Thanks. Hi Guys, ran into the same problem last night and wasted 2 hours trying to figure out what was wrong. As was posted above, this issue can be fixed by clicking on the database in the solution explorer and adjusting the property to read 'Copy if Newer' instead of 'Copy Always'. I ...Show All
.NET Development Problem with send pointer of struct from C# to C++(VS6)
Hi, I'm dealing with an application written in C++ (VS6) which receive a pointer of a struct in one of its functions. The pointer should be sent from C# (VS2005) in a "Register" function. I wrote it like this: //call the "Register" function Register( GetStructPointer()); //Declaration of Register in C#: [ DllImport (CQS_ARBITER_DLL)] public static extern void Register( IntPtr EvntStruct); //declaration of the basic sturct public static SEvent mEvent; //Implementation of GetStructPointer() private static IntPtr GetStructPointer() { return VarPtr(mEvent); } //Implementation of VarPtr() --pinning the pointer static IntPtr VarPtr( SEvent obj) ...Show All
