CodeButcher's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. load content without Game
I started a new GSE project and deleted the game instance. Instead I am using a windows form with a graphics device attached to a panelonthe form. This works fine. My problem is I can't get any content to load. Can I load content through a ContentManager without an instance of Game Thanks for any input on this. Thanks for the reply. The constructor for a GraphicsDeviceManager wants a Game as an argument. How can I create one to register with my serviceProvider if I dont have a Game instance ...Show All
.NET Development Binary stream '0' does not contain a valid BinaryHeader Exception
Hi, I'm having trouble using the BinaryFormatter class. When I call Deserialize (see below for code sample), I get this exception: System.Runtime.Serialization.SerializationException: Binary stream '0' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization. Public Overrides Sub WriteXml( ByVal writer As System.Xml.XmlWriter) writer.WriteStartElement(XmlConstants.NamespaceQualifier, XmlConstants.ObjectElementName, XmlConstants.XmlNamespace) If m_Formatter Is Nothing Then & ...Show All
Windows Forms Windows forms with database
How to populate data from database to windows forms and save as xml file with TABLE's AUTONUMBER as the file name. Hi I have a lookuptable with two field. (ID , Description) When user clicks the combox's drop down menu, both field (ID, Description) should display in the drop down list (i.e The row of the table). Once the user selected from the drop down list only the ID will be shown in the control or Combobox. ...Show All
Visual Studio Express Editions I want to insert an Event for my lstBox
I want to insert an event for my listbox... when my program executes I want to select from the listbox an Index that is event controled by the return button on my keyboard can I just use a return Event (return event is fired when control received the focus) from listbox events... Set the forms keypreview property to true and then use the forms key-up event to detect for the return key being pressed if you want the reurn key to do something no matter what control has focus...If you are wanting the return key to do something only when the listbox has focus use the listbox's keyup event ...Show All
Software Development for Windows Vista MSNETOBJLIB.RMGetLicense License storage is not working
I work for a company that provides video content protected by Windows DRM and I am encoutering some issues with delieverying licensing to Windows Vista machines. In particular, I am able to generate a license for the machine but when I attempt to install the license I get the exception below. I thought it was odd that the exception woudl tell me to call product support. Has anyone else encountered this issue Just about everytime I resort to posting to a Forum I figure out the problem myself with a few minutes/hours. My problem was that I wasn't configuruing the license into a response. This is the correct code is below. However, we are unable to deliever the license to *any* machine that was upgraded from XP to Vista Ultimat ...Show All
Visual Studio Express Editions Problems compiling code
Hi I am totally newbie with VC++ Express 2005 and I am learning this language. So trying to compile the code in a command line I have tried this: cl /EHsc source1.cpp source1.cpp source1.cpp(1) : fatal error C1034: iostream: no include path set But I have the path configured for include dir. Does anyone have any idea halmeida wrote: cl /EHsc source1.cpp source1.cpp source1.cpp(1) : fatal error C1034: iostream: no include path set But I have the path configured for include dir. Did you use the Visual C++ 2005 IDE Tools | Visual Studio 2005 Command Prompt to start your console session If you do that, the session starts with a batch script that sets the separate ...Show All
SQL Server TRANSACTION
Hai, I want to ask about LOCKING and TRANSACTION: 1. If i want to lock a tuple when 1 user read it so the other user can't see, what should i use And how to make the lock 2. Does Implicit and Explicit Transaction really - really different in using them In the result also 3. How do i implement the LOCKING and TRANSACTION in programming language (such as VB 6) *The last question, i don't know where to ask. Is it here or in he VB forum* Thank you, Febbo 1. If i want to lock a tuple when 1 user read it so the other user can't see, what should i use And how to make the lock --That happens automatically within a DML operation, if you are updating values in the database row level lock ...Show All
Visual C# how to set back color in hex
Hi all, I would like to set the panel back color to hex value "#ffff99". May I know how to do that Thanks ...Show All
Windows Search Technologies Vista Machine with Office 2007- Outlook not finding emails. Instant Search/Indexing issue
Hi, I have search everywhere for a solution and still I do not seem to find a solution. Outlook is not finding any emails (instant search). I think it is not really indexing anything. Vista search works perfect (seems like it). The index says it is done (outlook is included on it) As I receive emails, the list of pending items to index just grows and grows. I am using pop accounts not exchange. (I already checked the instant search options, the indexing thorugh control panel). Any ideas. I spent the last two weeks searching for a solution, and I have read and follow the suggested solutions from microsoft, but still is not really finding anything.. so frustrated!. Thanks for reading this, and I hope somebody can help me ou ...Show All
Smart Device Development Disconnecting GPRS
Hello, After calling a web service and my device connects to gprs, I want to shutdown the gprs connection via code. Does anyone know how to do this Unfortunately .net compact framework does not offer the handle to the connection object up in managed code to developers. As a result, developers cannot explicitly close out the GPRS connection. If the network is not used however, the http implementation should shut down the GPRS connection after it has finished using the connection. Thanks, Sandy ...Show All
Visual Basic Change Connection String At Run Time
Is this even possible I want the user to be able to select a database file from a open file dialog box. From there I know how to create the string however by using: My.Settings.connectionString is read only. Any ideas on how to be able to change the connection string based on what the user selects Thanks, chris Price, I should've stated my problem a little more clear. I've used the database connectoin wizard in VS 2005 because of it's drag and drop features. I completely follow your code and have went about doing it that way in a previous project. My problem is that I need to modify a connection string that I have already created using the wizard available in VS 2005. The question is, ...Show All
Visual Studio Team System VS2003 against TFS
Hi, I have migrated VS2003 project from VSS to TFS. I have installed MSSCCI Provider for connection with TFS from IDE VS2003. In IDE VS2003, I have connected to TFS. When I checked out some file under Source Control, then I changed it and Checked in, this file, project and solution kept in check out state. And I might to do undo check out. Sometime, this action made the problem, by rolling back the actions, which I did. I have also noticed that, TFS made double folder structure to local folders (It was copying parent folder to new folder which had the same name as parent folder), because TFS added new mappings to current workspace. It's expected behavior And what can I do instead of undo check out Thanks Janko Hi, ...Show All
Visual Studio Express Editions Watch
Is there a watch list in VS express like the one in borland c++ compiler I need to watch an element to see how it changes. Thank you. The express edition is a much lighter version than Visual Studio. One of the features that are not included are extensive debugging. There is no list but you can see values of objects by hovering over them in the editor when the code is paused. ...Show All
Visual Basic Classic triangle program
Could you help me write a program that requests an odd number, and display a triangle similar the image with the input number of stars in the top row. The computation should be carried out in a Sub procedure. ~output at the listbox~ THX~~~~ MattDe_MS wrote: I'm sure whoever gave you that nice screenshot would be willing to tell you how he developed the program. Not if the screen shot came from the teacher who assigned the project!! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I input multilanguage in Directx?
I try to use the sample CustomUI, but I found I can't input other language except English in the IMEEditBox,who can tell me what happens and what can I do to achieve that goal ...Show All
