bobbins's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. new to directx
Hi eveyone, i am new to directx and i want to be a game programmer.Please tell me where i can find useful tutorials for a beginner. We are going to really need more information.. For example what languages are you interested in.. and experience you have. One way to start is to start scanning these groups as this question has been ask hundreds of times in different ways, you might also want to look at the XNA Game Studio Express group on this site. for general Information you could look at www.gamedev.net , for managed directx (.Net) there is always www.thezbuffer.com or www.mdxinfo.com . There is also this following thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=7702 ...Show All
Software Development for Windows Vista Print Ticket/Print Capability Support in Monolithic driver.
We are working on providing PTPC( IPrintTicketProvider) support in monolithic drivers. But we are facing issues with GetPrintCapabilities ( THIS_ IN IXMLDOMDocument2 *pPrintTicket,OUT IXMLDOMDocument2 **ppCapabilities ) When I select our driver in a test application, the PTGetPrintCapabilities call is failing with the following error : “0x80040004: There is no connection for this connection ID ”. The error string(last parameter of PTGetPrintCapabilities ) is empty , but I receive this error string using _ com_error(hr). The ppCapabilities xml document seems to be valid.What can the reason for GetPrintCapabilities failing Is the xml header < xml version="1.0" encoding=&q ...Show All
Windows Forms Binding text box fields to combo box selected value
I have a small C# windows application with few text boxes and a combo box. I need to bind text fields to the value selected in the combo box, it works fine for the first selection but when I try to select another another item during the same session it gives me an error: "This causes two bindings in the collection to bind to the same property. Parameter name binding" . I think I need to bind the text boxes to may be the selected index change event of the combo box, but I am unable to implement that correctly. private void cmbEmployeeList_SelectedIndexChanged( object sender, EventArgs e) { txtFirstName.DataBindings.Add( "Text" , objDSEmpTrkSys, "EmployeeInformation.FIRSTNAME" ); txtLastNa ...Show All
Windows Forms Finding Path
I have created a setup and deployment project.for custom action i have also created class library. so i have two project: CustomAction Installer my requirement is as follows: after clicking setup.exe.i have to find path from where it is running. if i place both Installer.msi and setup.exe in "c:\FindPath\Test" so i need to display this path "c:\FindPath\Test" i tried many options but it gives me either "c:\windows\system32.. path or program file path. how we can find path. I'm sure there are more elegant ways to do it, but this should do the trick: FileInfo fi = new FileInfo(Assembly .GetExecutingAssembly().Location); string path = fi.DirectoryName; ...Show All
Visual C# About Windows EventLog's Explanation
//**************************************************** For more information , see Help and Support Center at | http://go.microsoft.com/fwlink/events.asp . //************************************************************** The up information is always showed in the Explanation of windows eventlog. Now I want to delete the Explanation when I write the enentlog. Below is my source. //***********************SOURCE*********************************** if (!EventLog.SourceExists("Test")) { EventLog.CreateEventSource("Test", "Application"); } EventLog ev = new EventLog("Application"); ev.Source = "Test"; ev.WriteEntry("test& ...Show All
Architecture Using Object Relation Mapping Tools
I am planning to use Object Relation mapping tool in our project, presently we zeroed on Nhibernate. Just before implementing i want to seek advice on the below points Any cons of using OR mapping tools Any known issues Any performance issues TIA, Sudheer. You can also take a look at a paper I wrote on O/R mapping pros and cons http://www.rgoarchitects.com/blog/content/binary/ORMappin.pdf ...Show All
Visual FoxPro How to create FLL using C#?
is it possible to create FLL library using C# Regards, Lawr3nc3 You may check: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_foxhelp9/html/a185d080-15c9-4187-a534-c105108dbd15.asp ...Show All
Visual Studio 2008 (Pre-release) FlowDocumentReader Find problem
Hi, I'm using the FlowDocumentReader and the problem I have is that I can't use the find feature, When I click on the Find Button, the search text box opens, but I can't write anything in it. But I set the IsFindEnabled property to true and it still doesn't work. I use this to set the text in the document, is this that cause my problem set { TextRange sourceDocument = new TextRange ( this .Document.ContentStart, this .Document.ContentEnd ); using ( MemoryStream rtfMemoryStream = new MemoryStream () ) { using ( StreamWriter rtfStreamWriter = new StreamWriter ( rtfMemoryStream ) ) { rtfStreamWriter.Write( value ); rtfStreamWriter.Flush(); rtfMemoryStream.Seek( 0, SeekOrigin ...Show All
Visual Basic How do I make a application close on button click?
Topic Thanks Private Sub cbEverLovinButton_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles cbEverLovinButton.Click end ' or application.exit End Sub ...Show All
.NET Development net send recieving
Hello again, I am creating a program so I can access my comp from school and send files back to myself using msn messenger's remote assistance capablity. I need to know how I can sit at school and get my computer on the other end to accept the remote assistance by my command. When I say by my command I meen because I have already found out how to accept the invitation on the other end by doing a sendkeys of alt and t which accepts the invitation, now I just need something to trigger the sendkeys event. If anyone knows a bit about the command prompt they might have herd of the net send command. You can send a message to any ip adress or network address you know as long as the messenger service is enabled under control admin tools / ser ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render Target For Effects.
I am having a problem here. In PC development I love the availablity of StretchRect. You can render an entire scene at a high resolution then stretch it to a low res map to create all sort of fun effects. The problem is XNA does not support stretch rect ... so then is the only option to: A. Render the whole scene to a render target and use it to create lower render targets for use in effects. (Currently using) Pros: 1. Very Fast. 2. Only 1 scene render Cons: 1. Locked to texture resolutions 1024x1024 or 512x 512 2. Will never be a perfect monitor resolution match thus muddy areas will always be there. B. Render the whole scene once at full rez then render it a second time to a Render targe ...Show All
Visual Studio Express Editions syntax highlighting in visual C++ express...
Hi all, just a quick question. I noticed that when you close a brace { } the braces turn bold for only a second. If your brace is far away, you cannot scroll back fast enough to see the block that it closed. Does anyone know where I can set it so that if the caret is after the closed brace it automatically highlights the opening brace for that block and remains highlighted until I move the caret rather than scrolling or only a 20ms delay Or maybe is there a shortcut key to have it reflash the open-close brace pair in bold It seems frustrating to not be able to detect the brace pair for more than half a second. Thanks for the help! There is no way to control the length of the highlighting: but ...Show All
Visual C# how to convert int to float
Hi all, I have two variable, count and totalcount, both are integer My result is declared as float, When I perform result = count/totalcount; it did not return a float as it should be. Instead, it return 0 (eg 5/25) How can I convert it to float Thanks Matthew Watson wrote: That won't work Rizawan... totalCount/count will still be calculated in integer precision. The correct answer is: float result = count / (float)totalCount; Sorry Matthew, You are right I just took the quesiton wrong as you can assume from my answer above. Best Regards, Rizwan aka RizwanSharp ...Show All
.NET Development Need Help converting XML to XSLT
When I run the XML file which is referencing the XSL file, the data is directly displayed as "CeciliaZuniga3710 Cedar St. Suite 220Austin". There is NO transformation to the XSLT format. The table structure is not displayed and also the TEXT in the XSL file. Please do let me know how to correct the problem. Thanks for you help. This is the XML file I get from a typed dataset < xml version="1.0" encoding="UTF-8" > < xml-stylesheet type="text/xsl" href="ConfirmationOfAppointment.xsl" > <ConfirmationOfAppointmentDS xmlns=" http://tempuri.org/ConfirmationOfAppointmentDS.xsd "> <ConfirmationOfAppointmentLetter> <REQUESTOR_FIRST_NAME>Ceci ...Show All
SQL Server Why for SQL 2000 max row size can not be more than 8060 characters (Japanese) nvarchar(4000)
I want the reason for the above statement where I user nvarchar(4000) to insert the japanese text it give the same error , why we cannot have maximum size if we can have maximum size than 8060 what is the setting Please help me .. Thanks in anticipation Ashish Tahasildar Hi, NVARCHAR (which is Unicode) uses two bytes per character, therefore you are only able to store additional 60 bytes (to be safe, although you might do not occupy the full 4000 chars) HTH, jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
