Mike Thurber's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?
Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream I develop serious games/simulations at my job and we use C++ exclusively, and any loss of performance would put us below our minimum requirements for framerate, etc. However, I plan on downloading the new XNA software and learning C#. Since hardware can make up for some performance loss in the future, and for some smaller applications it would be great to reduce dev time and the number of lines of code when performance is not as important. At some point the total cost of developing an application is offset by the perfo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA - Microsoft lack of vision
Its real sad that Microsoft, once again, shows this lack of vision for a games development tool: 1: Get visual: Don't force users to write such a lot of code to do just very little. It reminds the Charles Petzold's "Hello Window" hell of code days. 2: Provide visual tools: Let users choose the components, change their properties and write just the required code for the events. 3: Quick development means quick prototype and minimum learning curve. XNA has a lot of things to learn. Definetively it is NOT for students and hobbists. We will have to wait until someone encapsulates XNA framework into a group of visual components, that can be easily drag & dropped, inspected and tested very easily without having to learn lots of n ...Show All
Visual Basic VB.NET raising events to COM clients
I have a COM-visible VB.NET component (made with VS2005) which raises events to its COM clients, and the act of raising an event seems to cause an exception in some circumstances. The circumstances seem to be where a COM client object has registered for (or indeed received) events from the VB.NET object and then been destroyed; The next time the VB.NET object raises an event it causes an exception, as follows: If the client object has received one or more events before it was destroyed: Error Number: 0x80010007 Error Source: mscorlib Error Description: The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed. (Exception from HRESULT: 0 ...Show All
SQL Server Set maxtransfersize for a DB Maintenance Job Log Dump
My SQL 2000 installation has been running along very well for many months now with SP4 installed, but I've begun to have the "insufficient system memory to run this query" error outlined in KB904804 ( http://support.microsoft.com/default.aspx/kb/904804 ). I can add the maxtransfersize parameter and get it to work in QA, but I have all of my log dumps configured under Database Maintenance Plans. Is there any way I can force the maxtransfersize to be applied within a database maintenance plan Yes, a plain TSQL statement is an option, but one I'd rather avoid. I don't want to reinvent the maintenance plan functionality if I can avoid it. I must be overlooking something on the hotfix page. I can't ...Show All
SQL Server Error while Browsing Cube
We have a cube with only one partition.While trying to browse the cube it is showing the following error. OLE DB error: OLE DB or ODBC error: You do not have permission to run 'SP_TRACE_CREATE'. ;42000 My user name is in the admin group and I am able to Procecc the cube successfully. Please Help. You should set your storage mode to MOLAP to disable proactive caching. You also go through all of your partitions to make sure the storage mode is set to MOLAP. Edward. -- This posting is provided "AS IS" with no warranties, and confers no rights. ...Show All
Microsoft ISV Community Center Forums Convert worksheet to DOC
Hi everyone, i working on a project for my workplace at the moment and I'm finding it very difficult to do a few things using vba, its the first time i am using it and so many things make no sense to me. So far i have been able to create a in excel a login with password system using a database of Access and this was hard enough to do. now my next problem is exporting a range from an excel sheet to a word documents, it is very important how the document will look like as it will be emailed to other companies for payments and time processing, so I'm trying to give it a look as professional as possible.(see picture below) http://i35.photobucket.com/albums/d187/moobz/untitled-1.jpg (this is the look i would like it to have.) To produce the pi ...Show All
Visual C++ Advice needed
I have been tasked with providing a front end interface to an existing MFC-based DLL. It is a plain, old DLL - no COM interfaces. The DLL has some APIs that have parameters that involve template types and pointers. The goal of the project is to provide a .NET DLL that acts as a "pass-thru interface" into the existing DLL so new, .NET clients can easily utilize the DLL. My question is, would there be any benefit one way or the other in using C# or Managed C++ for my new front end application thx in advance, todd I would create a C++/CLI class library project, and add your C++ code to it (except the DllMain entry point). Design a managed class wrapper that instantiates the C++ (native) ob ...Show All
Windows Forms Visual Inheritance
Hi, I have created a base form with few default controls. I create derived form based on my base form using Visual Inheritance. It works fine. I added a group box to derived and try to move my default controls into this groupbox. But it is not working. Is it possible to do what I mentioned above Thank you Yes , you can do it while the controls still private in the base Form .............by create a method in the base class that take a Point as its argument. this method set the location of the controls in the base class. I hope it work. ...Show All
Visual Basic WebBrowser Refreshing Problem
I've got a WebBrowser control in my current program that, every minute and a half, loads a web page and parses some string information out of it. The problem is, after running for a while, it stops reloading the page; everytime it 'loads' the page, it loads the exact same contact the page had the last time it was loaded, although the actual page content has changed. Viewing the page in IE outside the program, I can see visually that the site really has changed; but the program continues only to see an older version of the page. Why is this happening, and how can it be fixed Note: the problem persists when I log on/off the computer, and when I restart the computer entirely. It doesn't happen for all pages being dealt with in thi ...Show All
Visual Studio Express Editions How to search listbox for "Full Name" using lastname/firstname
I'm using vbexpress with MSAccess backend on WINXP sp2. I want to be able to search a listbox which is pre-populated with "lastname + firstname". I want to type my search string in a textbox and have the listbox select the first occurence of a match. I know about the "findstring" method but my quest is slightly more complicated. I want my search string to be a combination of lastname and firstname with a de-limiter. For eg: Listbox contains: Bloggs Joseph; Blocks Jim; Bloggs Joe; My search string may be "Blo / Ji" where forward slash is the delimiter between the lastname and firstname. This should have "Blocks Jim" automatically selected by the listbox. NB: The delimiter can be anythin ...Show All
Community Chat Heads up! Reinstalling Vista to the same partition wipes your docs...
Hi, this is just a heads up for anyone that's experimenting with Vista (RTM inc. I have this from MSDN). I just reinstalled Vista back over my existing install (because I installed MCE2005 to another partition after installing Vista and had to get my boot menu back), and although it warned me that it was going to stick my existing Vista install in windows.old it neglected to tell me that it deletes everything in c:\Users before it recreates it!! A few TV shows and some painstakingly touched up photos were lost - luckily I still have the Kodak CDs. Good luck, Luke tags: setup delete backup repair data public documents hard disk personal ...Show All
Windows Forms Advanced data binding (two way)
I'm wondering if anyone out there has seen a good assembly that implements two way databinding with ASP.net controls. I'm thinking that it's sorta silly that I have to type: drPerson.FirstName = (( TextBox )item.FindControl( "tbFirstName" )).Text; It seems like I could just type: drPerson.UpdateData(repeaterItem); I'm looking for a more intelligent web control. What's out there Hi, I think you are looking for 2 things: First Typed Datasets and then 2-way databinding for the first thing, take a look at this article , which will help you with the typed dataset. For the second one, there is no way to have a 2 way databinding - if you mean to notify the client if something ...Show All
SQL Server accessing another database on the same server
Let's assume we have 2 databases db1 & db2 and we have a table named "MyTable" which is located in db2 database in the db1 database I create a stored procedure by using following code: << use db1 create procedure myproc as begin select * from db2.dbo.MyTable end; >> this code does not execute successfuly and I face an error which says << invalid object db2.dbo.MyTable>> and as you know we are not allowed to use USE database key word in stored procedures I can's access a table which is located in another database, whithin a stored procedure which is located in different data base but on the same server thanks ...Show All
Visual C# inserting theEntry.name to treeView.
Hello! i got problem when inserting entryes to treeView. How i can insert the "treeView1.Nodes.Add(directoryName, directoryName);" so it will be see only one time. its creating a rootnode named by directory for X times, and x is number of files inside the folder Here is the code: public void viewzipfile() { try { treeView1.Nodes.Clear(); ZipInputStream s = new ZipInputStream(File.OpenRead(@"d:\file.zip")); ZipEntry theEntry; while ((theEntry = s.GetNextEntry()) != null) { string directoryName = Path.GetDirectoryName(theEntry.Name); string fileName = Path.GetFileName(theEntry.Name); // need somehow make this single time, this one creates a new node foreach theEntry.name... treeView1.Nod ...Show All
Visual C# C# DLL from Javascript?
Is it possible to call a C# DLL from server-side Javascript Or would that be too much of a security issue Thanks in advance, Chris I think you may have inadvertently caused some confusion in your post, since people are equating this to mean "expose a UserControl in a Web Page". Your question asks if you can call a C# assembly from SERVER-SIDE Javascript. If you use JScript.Net, which is a full-fledged .NET - compliant language, you can have a reference to your C# assembly in your SERVER-SIDE code and make method calls on it. Is this actually what you meant Peter ...Show All
