jdrawmer's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. input strategy
Is getting a input device state heavy Should I only do it once per tick and save the info to some global variables that the rest of the of the program can access. Or can I use GetState() everytime I need to check the state of a input device Its probably a good idea I also made an input state manager (InputStateTracker) so I only call GetState() on mouse and keyboard once per frame as I am also using an action mapping implementation where you can map the input to enums of actions, and it got out of hand with all the GetState() calls I had :P ...Show All
SQL Server Able to run packages outside Designer, but not one containing FTP task
Hi. I have read most of the threads on not being able to run packages outside the Designer, in Agent. I believe my problem is different: I am able to run some packages with Agent. In fact, we have a couple scheduled and running every night. However, when we try to run a package that contains an FTP task it only runs in debug mode. If we import it into our server or run it without debugging it keeps failing and giving us the now famous: The task...... cannot run on this edition of Integration Services. It requires a higher level edition. So, we have some packages already scheduled and running, but we can't run this specific package with the FTP task. We (two of us) have created this package in the same way we created the other o ...Show All
.NET Development c# serial port enumeration
I need to enumerate the available serial ports. I'm using c#. Anyone know how cheers, gareth System.IO.Ports is a namespace/class that was added in .NET 2.0 and not available in .NET 1.0/1.1. But as suggested you can go through the reg keys as NoBugz has shown - did not mean that no its not possible end of - :-) ...Show All
Visual C++ ref class VS. value class
HI everyone, I am new in C++.NET 2005 world and there is something that makes me a little crazy: What is the difference between ref class and value class also ref struct and value struct Which type of classes ( ref or value ) I should create for my applications I hope anyone who have the answer helps me to figure this out of me. No one wants to help me!! with this little issue that considered a basic level in the MC++ world I am really disappointed :-( ...Show All
Visual Basic Crystal Report And Similar Tool For Printing Document
May i know is there any tutorial on Crystal Report, i want to retrieve some data from database, format it and print it out. Apart from Crystal Report, what other tools is suitable for this Thank you. THANK YOU !!! THANK YOU !!! THANK YOU !!! The code you wrote helped me a lot. I mean it worked perfectly. After 2 + days of different coding. If this helps, what I found was that it doesn't metter the values that result in the crystal report table. The only condition is to be the same fields and the name of the table to be identical . In the report will appear the values that result in the code you write, like above . Thanks again, Mihai - RO. ...Show All
Smart Device Development What is the root directory for the emulator?
On my development machine I'm trying to make the following code read XML files using VS 2005, VB and the new Device Emulator and I keep getting the file cannot be found exception: Dim xmlStr As String Dim newDS As DataSet newDS = New DataSet() newDS.ReadXmlSchema( "Judges.xsd" ) newDS.ReadXml( "Judges.xml" ) xmlStr = newDS.GetXml() tbResults.Text = xmlStr Does anyone know what folder the emulator is using as it's root folder, or where I should put these files so the emulator can read them I tried using xmlStr = Path.GetFullPath("Test.txt") but all it returns is "\Test.txt" Any help would be greatly appreciated and thanks in advance. ...Show All
.NET Development How to make Windows forms responsive to buttons while main thread is busy?
Hello, I don't want to do thead programming. Is there an easy way to make form to resond to button click event while main thread doing some processing If I need to cancel that long process what is prefered way to handle this with minimum amount of code. Thanks, G Use BackgroundWorker Component to do this its recommended! See this for details and sampel code: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=847014&SiteID=1 If you face any problem feel free to ask. Best regards and best of luck! Rizwan ...Show All
Windows Forms ListBox Drag-n-Drop Change Background Color of just one item
Is there a way to change the background color of just one item in a listbox and still allow drag-n-drop In my code I am using a list where there is only one entry that can be TRUE (or activated) and I would like to change it's background color in the listbox. I want to change the item once the user selects another item as the activated one. I am getting an error on this line e.Graphics.DrawString(ListBox1.Items(e.Index), e.Font, Brushes.Black, New RectangleF(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height)) ...Show All
Visual Studio 2008 (Pre-release) using WPF in MTA applications
My application runs in MTA thread. WPF needs STA, so I created a new STA thread that creates and shows a window. This works, but only one time. If I start this thread one more time, I get this exception: System.InvalidOperationException was unhandled Message="The calling thread cannot access this object because a different thread owns it." Source="WindowsBase" StackTrace: bei System.Windows.Threading.Dispatcher.VerifyAccess() bei System.Windows.DependencyObject.GetValue(DependencyProperty dp) bei System.Windows.Controls.GridViewHeaderRowPresenter.CreateAndInsertHeader(GridViewColumn column, Int32 index) bei System.Windows.Controls.GridViewHeaderRowPresenter.OnPreApplyTemplate() bei System.Windows.Fr ...Show All
Visual C++ Application to send Windows messages
I'm looking for a program that would allow me to send Windows messages to Windows in general and to specific windows. Say that I want to send WM_LMOUSEBUTTON and see how that affects a window. Is there such an application or will I have to write my own U can do this very easily. First locate the window where u want to send the messsage using FindWindow/FindWindowEx API. The u can use SendMessage of PostMessage API with that window handle. HWND hWnd = FindWindow("MyWnd", NULL); PostMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(100, 100)); U can refer MSDN documentation for each message specific information that WPARAM and LPARAM carries. Regards, Sudeesh. ...Show All
Visual C# Assign a bmp resource to a bitmap variable
I create a resource bitmap as bmp. I can not assign this resource bmp to a Bitmap variable. What I would like to do is change or swap between two bmps every second in a picturebox image. thanks in advance for your help and time, Edward ok the problem was that the image was not embedded as a resource. After changing it to be embedded as a resource, everything worked fine. Once embedded, the resource name will be in the format of, generally, : applicationName.filename.ext if its in a folder (1 folder deep): applicationName.folderName.fileName.ext remember, the folder name and filenames are case sensitive ...Show All
SQL Server Installing SQL Server 2005 Express
I am working on Win2K Pro & had SQL Server 2005 Express & SQL Server Management Studio installed. The SQL Server name was Merver\SQLEXPRESS . Due to some unavoidable reasons, I had to repair (& not re-install) Win2K but after doing so, I found that I am not able to connect to the database server. I uninstalled all the components related to SQL Server 2005 Express (like Management Studio, Support Files, BOL etc.) from my m/c & then restarted my m/c. After doing so, I first re-installed SQL Server 2005 Express & other related components (I intended to install SQL Server 2005 Management Studio after installing SQL Server 2005 Express). While installing SQL Server 2005 Express, all the steps get executed successfully ex ...Show All
SQL Server export the query result to html
I am using the query window n SQL server 2005 express to execute some sql statement but i want to export the resut to html.. is that possible within the sql statement Could you try to export your query result as XML and then create style sheet to transform it to browser Just a thought. I didn't try this, but you can try if you like. ...Show All
Visual Studio Addition to main_castle.xsl for tables for lists
I added the following to the bottom of main_castle.xsl for Sandcastle to create nice looking tables/lists for the <list> elements in your xml documentation. It's not complete, but it's a start. < xsl:template match = " list " > < xsl:choose > < xsl:when test = " @type='table' " > < table class = " authoredTable " > < xsl:apply-templates select = " listheader " /> < xsl:apply-templates select = " item " /> </ table > </ xsl:when > < xsl:when test = " @type='bullet' " > < ul > < xsl:apply-templates /><!-- select="item" /> --> </ ul > ...Show All
SQL Server What happens at midnight ?
Everyday at just gone midnight, my MSSQL server won't accept connections. About 25 minutes later, it seems to be OK. There's no third party backup software running on this machine which is MSSQL server aware. Has anyone any suggestions as to why this might be happening The client app trying to use the db reports 17/10/2006 00:02:04 Email2DBServer Cannot open database "Email2DB" requested by the login. The login failed. From OpenLocalDatabase and there's an entry in the event log Event Type: Failure Audit Event Source: MSSQL$EMAIL2DB Event Category: (4) Event ID: 18456 Date: 17/10/2006 Time: 00:02:04 User: NAVIGATOR-BATH\navigator-service Computer: NAVIGAT2A Description: Login failed for user 'NAVIGATOR-BATH\navigator ...Show All
