f.ritz's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XNA - Redistributable License Clarification Please
Hi all, Hi all, I realise the XNA is only beta form, but I would like to make 100% sure that we would be allowed to distribute the xna dlls ourselves with any game we made. In my case this isn't for a commercial venture, rather there are a couple of development competitions I'm interested in, particularly at gamedev.net and xbox360homebrew.com - that I would like to enter a game based on xna for. For the xbox360homebrew.com competition, the rules are lax and the audience is basically other people messing with the XNA too. The gamedev.net 4E5 competition however is more strict as far as what has to be installed on an end-user machine to get a game working. I expect demanding them to download and install the 100s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Readback render texture
I have a created a texture as a render target, like show below: md_nWidth = pBackBufferSurfaceDesc->Width; md_nHeight = pBackBufferSurfaceDesc->Height; pd3dDevice->CreateTexture(md_nWidth,md_nHeight,1,D3DUSAGE_RENDERTARGET, D3DFMT_A16B16G16R16F, D3DPOOL_DEFAULT, &md_Texture, NULL ); md_Texture->GetSurfaceLevel(0, &md_pSurface); Once I have completed a render pass and reset rendering to ordinary framebuffer I would like to be able to retrieve floating point values for validation checks, how can I readback the data now stored in the md_Texture into system memory No. But you are already creating texture for render target. And in system memory you can create either texture or plain su ...Show All
Visual Studio Express Editions Arguments passed to an event
Hello, I'd like to know how I can acces the arguments passed to an event function. For example, let's say I have a button on my screen. To make a click event, I double-click on it in the designer. Then I get code like this in my code screen: private void button1_clicked( object sender, EventArgs e) { sender.Text; e.X; //Both not working } Now the object sender should be the button, right But I can't do things like sender.Text or e.X. And according to some resources on the web, things like that should be possible. Also, changing EventArgs e to MouseEventArgs e, is not working. It gives an error when trying to run the program saying: Error 2 No overload for 'button1' matches delegate 'System.EventHandler' ...Show All
Visual Basic Seek statement on very large file
I would like to use something like "Seek [#]filenumber, position" (VB5 Pro) on a file of ~3GB. In this statement Position should be a long integer (range 1 – 2,147,483,647), and my file is longer than this range. Any ideas for a workaround (apart from breaking up the file into smaller files) Gert gjcv _ do not spam @hotmail.com (just four chars before @ in email addres) VB6 and earlier questions should be posted here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.vb.general.discussion&cat=en_us_ab067bc0-bda5-4921-a1ec-e76402873945&lang=en&cr=us since these forums are for .NET :-) ...Show All
Visual Studio Using the ReportViewer with a Code Created DataSet - PLEASE HELP!
Hi everyone, I've been struggling with this for a while and decided to finally see if I can get some help from the pros!! I have an application that reads and writes to XML files and creates a dataset from within my code (no dataset exists in my solution until the code runs). I'm at the point now where I want to implement some better reporting and after all the research I've done, the ReportViewer seems to be exactly what I need. The problem I have is that I can't link the RDLC file to my dataset because the dataset does not exist until the enduser runs my application and does his/her thing. I came across one forum post that seemed to point me in the right direction. Here is that post: http://channel9.msdn.com/ShowPost.aspx PostID ...Show All
Windows Forms Set DataGridView display order, independent of the Class object
I have a DataGridView which is binded to a Class Object, which contains 6 fields. Im not sure how it decides to order it, its not alphabetical, but either way, it does not display the class data in the order it was Added to the class object, which is fine. First, can anyone tell me how the DataGrid decides which order to display it in Second, I would like to be able to set the Column display order, but I want it independant of the class. I do not want to have to use a statement like this: DGVInv.Columns["ID"].DisplayIndex = 0; DGVInv.Columns["Name"].DisplayIndex = 1; I do not want this because I have to use the field names, I would like to have it come from the class in the order I want it. Any suggestions o ...Show All
Visual Studio Express Editions Move to cell in previous row?
I need to write a code to move to a cell in the previous row. I have looked at (offset) , (currentcell) & (currentcelladdress) but i can't quite get the hang of it. This is what i have so far in a button click event: Me.MaintableDataGridView.CurrentCell.Selected = False Me.MaintableDataGridView.Rows(0).Cells(0).Selected = True This works great but i just want to move 1 cell up, not by coordinates. Is there some way to utilize code to mimic the arrow keys (sendkeys, etc...) Any help would be great. Thanks Jeff I entered the codes exactly as you show them and the selection stays the same. The only other thing is that in the butto ...Show All
Visual C++ error C3641 - invalid calling convention
Hi all, I'm new to VS2005 C++ / .NET and I've inherited some code that requires porting to VS2005 C++ .NET. I get the following error when compiling with clr/pure: error C3641: 'CWThread::Redirector' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe The relevant offneding class code is: //The method to cast the inheriting classes Run method to the required type. static DWORD WINAPI Redirector( LPVOID Arg ){ CWThread* ThreadPtr = (CWThread*) Arg; return ThreadPtr->RunWrapper(); } //Wrapper method for the Run method DWORD RunWrapper( void ){ TVoidPtr ResultPtr; //Call the run method R ...Show All
SQL Server counting records in all tables
Hello all, I was wondering if there is anyway to find number of records in all tables instead of count one table at a time by select count(*) from table_name. thanks Hi All, Please find the query which will help to find the total number of records in all the tables in a SQL Server Database. Select substring ( obj . name , 1 , 50 ) as Table_Name , ind . rows as Number_of_Rows from sysobjects as obj inner join sysindexes as ind on obj . id = ind . id where obj . xtype = 'u' and ind . indid < 2 order by obj . name Regards AKMEHTA ...Show All
SQL Server share variable with child
How a parent package can share its variables with child when calling it using Execute Package Task Hi Fahad, Phil is correct. A couple things to note: the variable shared between the parent and child packages must have the same name and data type. Hope this helps, Andy ...Show All
Visual C# Printed .NET Framework Class Library for 2.0
I was wondering, Microsoft Press put out a multi-volume print version of the .NET 1.1 Class Library Reference in 2003. I've inquired Amazon and Barnes and Noble technical support to see if there was a .NET 2.0 reference available, and I've already looked at Microsoft Press' published books list. I know that all of it essentially is available on MSDN to anyone, but having a professionally printed version from the source would be truely beneficial to have. I find most online versions of books, even those well organized and indexed such as O'Reilly Safari Online library not good enough to reference and learn from unless you somehow can get yourself to concentrate on a screen for hours on end. Books seem to be less impacting on your eyes, crea ...Show All
Visual Basic getting binary from file.
Private Function TextFromFile( ByRef fInStream As String ) As String Dim i As Integer Dim strText As String i = FreeFile strText = "" FileOpen(i, fInStream, OpenMode.Input, , OpenShare.LockWrite) System.Windows.Forms.Application.DoEvents() strText = StrConv( InputB (LOF(i), i), vbUnicode) --- this is the original code strText = My .Computer.FileSystem.ReadAllBytes(i) ---- I just added this to try FileClose(i) TextFromFile = strText End Function I just converted this code from mVB6 to 2005.net, but you will see a one of the functions don't exist any more (inputB), which is grabbing the binary info from a text file. I attempted to do the same ...Show All
SQL Server Slow backups and restores
Hi all, A few weeks back I had a problem with setting up Maintenance Plans on my SQL Server, the only fix in the end was re-install the SQL along with SP1. Since then backing up or restoring our developers database takes around 15-20 minutes whereas before it would take 1-2 minutes. The server doesn't seem to be the problem as I have restored it to a 2nd server and get exactly the same problem there. Other databases on the same server of around the same size backup as expected. The database is approximately 150MB's with the log file being 800MB's. The server in question is a Dual Core Opteron 2.2Ghz with 4GB's of RAM, running Windows 2003 x64, fully patched and up to date. The SQL version is 2005 Standard Edition x64 also incl ...Show All
Visual Studio Tools for Office Word 2003 customization load time
Hi, I created a VSTO 2005 customization DLL for WORD 2003. This customization DLL is attached with various WORD templates on users machine. My problem is that sometimes this DLL takes a lot of time to load. I have noticed that this happens when a template with customization is opened for the first time after reboot i.e. on the cold startup, not when the templates is opened subsequently i.e. on the warm startup(except for few cases where it takes the same time as of the cold startup, even when some of the templates are already opened). The load time at cold startup is large. This might be because it performs various steps before exceuting customization assembly, such as 1) Loading of VSTO runtime 2) Creation of app domain ...Show All
SQL Server Can not install SQL Server 2005
Hi, I'm unable to install SQL 2005 - it says I have some proevious beta components that must be uninstalled first, but when I go to ARP, there are no beta components listed. Some time back I did install a beta version of SQL Server 2005 BOL and I did have problems with it and I thought I had removed it. Something from it must still be on my machine. How can I get rid of it Thanks Hopefully Aaron Stebners blog will help you. http://blogs.msdn.com/astebner/archive/2005/10/27/485987.aspx It covers many scenarios and help to uninstall to prepare for the released versions. ...Show All
