Jedrzej's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Draw() called before Update()
I noticed Game.Draw() is being called before Game.Update(), which doesn't (seem to) make sense. Is there any suggested way of dealing with this If Update() is supposed to, umm, update the state of the application to a certain local time, before the first Draw() there is no state ready to be painted to speak of. Update() should definately be called as often, or more, than Draw(). Physics should be decoupled from draw rate anyhow and there are lots of logic which needs to be done as often as possible; putting network reads in Draw() just doesn't feel right... ...Show All
Visual Basic ADO Recordset Filter Query
Hello, I have a recordset that will have data looking something like the following C1 C2 C3 C4 C5 C6 AAA BBB CCC DDD EEE FFF AAA BBB AAA DDD EEE FFF AAA BBB DDD DDD EEE FFF I want to consolidate the ADO Recordset on C1, C4, C5, C6 and discard C2/C3 . If this was pure SQL I would write a query something like: Select Distinct C1, C4, C5, C6 ... Is there a way to do this to the ADO Recordset maybe using the Filter() method The recordset I am working with is quite large (10,000+ records) so I wanted some optimized way of doing this. Thanks. Dwight One last thing I forgot to add... If you would like to stick with ADO and can't seem to filter out columns(fields) prior to retrei ...Show All
Smart Device Development UPNP_E_EVENT_SUBSCRIPTION_FAILED
Hi all !!! This project on developping upnp device will definitely make me crazy. I'm getting a UPNP_E_EVENT_SUBSCRIPTION_FAILED error whereas I'm using the microsoft sdk implementation. I don't understand anything. If you know the microsoft platform sdk UPnP API, I'm using the implementation of DCO_DimmerDevice. The registration works fine but the service cannot be gotten because of the UPNP_E_EVENT_SUBSCRIPTION_FAILED error. The hosted service failed to subscribe to event source I think. I don't know the reason. Do anyone know hpw to solve this, I am waiting for help. Thanks a lot. You need to check your implementation of the Connection Point. It looks like the host is calling AdviseSink on ...Show All
.NET Development Newbie Q Connecting VS 2005 with SQL-server Express 2005
Hi there. To start with i am confused. ;) I have managed to crash VS 2005 with my own code. Here's the thing. I have created an addin for excel, and in it's simpleness it works fine. But now i want to add som DB functions . So i used a template, Sql-server, it created the database project. And i was able to connect with it locally (After i had set the connectionstring). Anyway. I also want to connect to it over network so i have made some adjustments to the Database (SQL-server Express (TCP/ip and so on. I can send the exact settings if it is important)). Anyway. It worked fine. I was able to browse the database from VS 2005 from Server Explorer over the network. But .... when i try to debug, to run my application VS 2005 crasches... any i ...Show All
Visual Studio Team System Error when two rules with same check Id exist
Hi David, Now I'm facing another problem. I've 2 dlls of custom rules in my VS2005 fxcop and I've kept the checkID for some of the custom rules in the 2 dlls same. But now when I run the code analysis tool with one of the dll selected and the 2nd one not selected, it's giving the error warning as shown below. CA0001 : Error loading rule 'AvoidFinalize': Item has already been added. Key in dictionary: 'CA5032' Key being added: 'CA5032' Now the problem is that the above rule is not from the dll which was selected. The above rule "Avoid Finalize" is from the 2nd dll which was not selected when I ran the code analysis tool. Can you tell me what's going on with my code and the reason for this error Thanks & Regards, Th ...Show All
Visual Studio VS2005 SP1
hi to all, I've installed on my desk VS2005 Pro and the SP1 Beta. now that SP1 was finally release, i tried to install but it tell me that my VS2005 version isn't right to apply SP1. I think it's depend from SP1 beta installed, so tried to remove but SP1 beta uninstall required VS2005 DVD and I have not the DVD because I installed it from the ISO downloaded from MSDN. is there any way to uninstall SP1 beta wthout the DVD or is there any way to install SP1 over the SP1 beta thanks ive just installed it on my production/main machine - no problems what so ever but ive also NOT had the beta installed. I never use beta on production machines as Microsoft also clearly states everytime :-) ...Show All
SQL Server Mining XML from file
Right now, when i want to load contents of XLM file, i have to use openXML which looks this way: declare @idoc int declare @doc varchar(max) set @doc='< xml version="1.0" encoding="windows-1250" > <root> <tag> <content1>xxccxcx</content1> . . . <contentXY>sf</contentXY> </tag> </root> exec sp_xml_preparedocument @idoc output, @doc select * from openxml (@idoc, '/root/tag',3 ) ( and here is whole select procedure) insert into ( table name) from openxml (@idoc, '/root/tag,3 ) (and here it is again) This is quite "useless" for daily using, unless someone fills the text field with new data. Is it possible to load cont ...Show All
Commerce Server Need MessageManager configuration in Web.Config
Hi guys i am developing some proof of concepts in the Commerce Server 2007.I done some of the things in cs 2007, now i moved to do some basic things in Pipeline concepts. i created some some code and add the basket.pcf in the Pipelines folder in my project . while i running throgu i got an error message like this, Please configure the MessageManager in the configuration file. How to configure for my basket.pcf file. Hi Joe Thanks for the link, its really ver helpfull for me to learn how to work with MessageManager and configure in web.config file. I followed all the instruction have mentioned in that link and every things created in my application with the same name and build was created successfully , but i have an error wh ...Show All
Visual Studio Tools for Office How do you work with repeating areas in C#/Word?
Filling in an XMLArray from C#. I have been searching and searching but I cannot fint a good example on how to make a part of a word doc dynamic and use C# to populate it correctly. This is a sample to show what I want to do. The word document is a simple page that shows a Customer Name, Address, Zip, Phone Number and then has a area for Contacts (Name,Cell,Work) that can happen from 0 to 100 times. When a button is clicked (Figure 2 below) the document loads information from a Web Service and populates the screen with information from a passed XML Object (Figure 3 below). The XSD(Figure 1 below), based on what I have researched, should be set up to accept the fields required, but I cannot figure out how to fill in the repeating Cont ...Show All
Visual Studio Express Editions change the origin.
could someone please tell me how to change the origin from the top left corner to the center of the screen when using the Win32 API I am trying to make a character go where you click, but I can't seem to figure out how, for DX uses the center as the origin and Win32 uses the top left corner as the origin. Thanks for all your help. Hello Re: change the origin. This forum is for “Questions about Visual C++ Express Edition and getting started with C++.” For questions such as yours please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Damien ...Show All
Visual C# Lauch IExplorer
How would i lauch IE in a button click event....would i need to add any special reference to any libraries, Or would i just use the System.Diagnositc and start a Process and pass it the exe of IExplorer Any one have any links on this or know how to get this accoplished Hi Ahmedilyas If I remember correctly, you can't use System.Diagnostics.Process.Start( http://www.yoururl.com ); because URL is not a document. The correct expression is System.Diagnostics.Process.Start("iexplorer.exe"," http://www.yoururl.com " ); How about this ...Show All
Visual Studio Problem building
I have been successfully using VS 2005 Beta 2 (VB.NET) for about a month now. Yesterday, I started getting the error: Error 5 Unable to copy file "obj\Debug\BO.dll" to "bin\Debug\BO.dll". The process cannot access the file 'bin\Debug\BO.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 2274 9 This error does not occur the first time I build the solution after just opening it in VS. But all subsequent build attempts fail with this same error. If I exit VS and reopen the project then I can again build one time and all subsequent attempts fail with the same error. Using SysInternal's Handle program, I was ...Show All
SQL Server ODBC TCP/IP Dynamically Determine Port check box
Hopefully a simple answer: *editted for clarity* Where does the "Dynamically determine port" check box come from when creating a ODBC connection using TCP/IP in the client configuration Only shows up in the control panel/adminstrative tools/Data Sources (ODBC) when it is installed. I have 3 computers here that have it (they are for development) but I am finding my users desktops do not have the box and so I am getting errors trying to connect from their desktops. I am using Excel and Microsoft Access 2000 to connect to the server using the ODBC connection. I need my users to connect to SQL Server 2005 so I need the "Dynamically determine port" box checked to find the port. Tried typing in the port but that isn't ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems obtaining the GraphicsDevice in a component
Everytime I try to write something I get hung up on the same problem. I can't get access to my GraphicsDevice so that I'd be able to draw things through components. I've tried several methods listed, such as these: graphics = Game.GameServices.GetService<IGraphicsDeviceService>(); (Where graphics is of type IGraphicsDeviceService) I then call a graphics.GraphicsDevice, but with no success. Another way I've tried to do things is getting to the GraphicsDevice directly through a public property in my component. The obvious thing to do would be to pass the default "graphics" GraphicsComponent into the component, and then use the GraphicsDevice property to draw things in my code. No luck. IntelliSense and the IDE wasn't able to ...Show All
SQL Server Saving Auto Recovery Information
Hi I am using the Microsoft SQL Server Management Studio to manage our database objects over a VPN connection. At scheduled intervals the system saves recovery information. The problem is that the location of the recovery files appears to be located on a remote server. This causes the UI to completely freeze while the operation is in progress. How can I change the location of the recovery files or turn off the Auto Recovery functionality completely. In VS2005 this is configurable in the Tools-->Options-->Environment settings. Thanks. Enterprise manager and SQL Server Management studio can be run side by side on the same box. Answer is, you do not need to uninstall SQL 2005 to get ...Show All
