Jonas Beckeman's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Depth of GameComponents?
Hey, I've been trying out some features of XNA and I noticed that one really necessary feature is missing... there is no way to set the order in which game components are drawn in the existing framework. I would really appreciate a Depth or ZOrder property of the GameComponent class and a Sort() method for GameComponentCollection. Maybe there is another way to do this, but I would find it a lot easier than using the Insert() method, since developers may want to change the order after adding the component. This is probably a pretty crude explanation as I haven't given that much thought to it, but it still seems that some sort of solution to this would be very useful. Please tell me what you think or plan to do - thanks. ...Show All
Customer Care Framework Servers For CCFs
Hi, We are just doing a pilot test on CCF. In the deployment guides , 4 servers namely CCFDC, CCFSQL,CCFIIS,CCFRS are metnioned . However, since there is only server with 3 GB RAM with me as it is being for demo purposes. Please let me know the things we should be careful of Many Thanks SankaraNarayanan N I’m not sure I am following your environment.. however, Agent Desktop is the “heaviest” part of CCF and requires the most memory / cpu to operate. CCF is normally initially demoed all on one server For a pilot however, Agent Desktop is generally deployed to the users workstations. Depending on the server pilot we can then r ...Show All
.NET Development Connecting to wrong address takes too long!
Hi, Im using sockets to connect a client to a server.. i provide the ip address for the socket to connect to.. but if i mistype the ip address or for some reason the listener socket is not available, the client hangs.. and it takes a long time before it returns any errors. how can i reduce that time thnx Look this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemnetsocketssocketclasssetsocketoptiontopic.asp to specify a timeout, you can try also to make a asyncrhonous client: http://msdn2.microsoft.com/en-us/library/bew39x2a.aspx Regards. ...Show All
Visual C++ Errors when compiling a VC6 project in VC2005
Hi All, I try to compile a project built several years using VC++6 in VC++ 2005 and got following errors when trying to build the project after clearing out all the other errors in *.CPP file: error C2248: 'CObject::CObject': cannot access private member declared in class 'CObject' file afxwin.h line#1814 The line#1814 in afxwin.h is the end of class definition for CCmdTarget. This is a GUI interfaced application. I read somewhere that this might be caused by some private constructor in CObject. But the problem is the error did not even show me which .cpp file has the problem just pointing to the afxwin.h file and I have close to 100 .cpp file in this project. Any help is appreciated. H ...Show All
SQL Server still struggling with flat file into multiple tables
So here's the issue 16 flat files all fixed width. Some over 350 columns. Open flat file 1 extract id and go see if its in table 1, if true update table 1 with first 30 columns otherwise insert into table 1 first 30 columns. goto table 2, lookup id, insert/update next 30 columns...etc..etc..for 10 different tables So I've got my flat file source, I do a derived column to convert the dates, i've got a lookup for table 1, then 2 ole db commands, 1 for update if lookup successful, 1 for insert if lookup fails. How can I pass the id as a param into the update command so it updates where x = 'x' also I need a pointer on doing the next lookup, eg table 2, would I do this as some sort of loop . If you can help great, bu ...Show All
Windows Forms AcceptButton not working
I am setting the default button on my form, like so: this .AcceptButton = this .noButton; But the other button ("Yes") button click is still being envoked. In the designer the noButton appears to be set as the default (it has an outline). Then when I run, the"Yes" button has an outline and acts as the default. The debugger also seems to think that the noButton is the default button: this.AcceptButton {Text="No"} [System.Windows.Forms.Button]: {Text="No"} DialogResult: None Any thoughts/ideas Click on another control on your form - a textbox or radio button or something. I suspect you'll find that your No button gets outlined as you expect. ...Show All
SQL Server Remote Connection to SQL Server 2005 on Windows 2003
Hi Fellows! I am trying to connect a SQL Server 2005 Server setup on Windows Server 2003 and failing. I have checked few other related posts but i think so i am still unable to find the solution. My configuration and problem is following; I want to enable access for my SQL Server to my network as well as through internet using our Fix IP address server. Configurations: Server: Win XP Server 2003 along with VS 2005 and SQL Server 2005 Clients : WinXP Laptops (home addition) installed SQL Server Connectivity tools and Express addition and also community edition of Management Studio for Express edition. I am able to connect the server when i try to use my servername but failed when i try to use ipaddress in the connection. ...Show All
Visual C# NullReferenceException
System.NullReferenceException: Object reference not set to an instance of an object. at article.article.addarticle() ASPX file: void add(Object Sender, EventArgs E) { if (butimage.PostedFile != null) { strTemp = DateTime.Now.ToString(); strTemp = strTemp.Replace(":",""); strTemp = strTemp.Replace(" ",""); strTemp = strTemp.Replace("-",""); strImage = "D:/c/upload/" + Session["name"].ToString() + strTemp + ".jpg"; butimage.PostedFile.SaveAs(strImage); } article art = new article(); string temp_subject; temp_subject = Server.HtmlEncode(subject.Text); temp_subject = temp_subject.Replace("'","`"); art.subject = ...Show All
Software Development for Windows Vista Fault handling in RC2
I can't seem to get fault handling to work in RC2. It worked for me in Beta 2.2. I have a state machine workflow that I've published as a web service. I've added a fault handler activity with one code activity as a child. My code activity gets executed, but then, when I retrieve the Fault property of the fault handler activity, it's always null. Any thoughts I'm accessing the property directly as a member of the fault handler activity. In my code activity, I access this.faultHandlerActivity.Fault. This property is always null. It doesn't seem like I can bind to the Fault property using the workflow designer. ...Show All
SQL Server Insert Into with Duplicate Filter Check on Destination Table
Dear friends, I keep getting "The column prefix 'Item' does not match with a table name or alias name used in the query" when running this query. INSERT INTO item (Notes, [ExtendedDescription],[Description],ItemLookupCode) SELECT notes, [Ext Desc], [Desc],ILC FROM TEMP Where TEMP.ILC <> Item.Itemlookupcode What is wrong with using the where clause as such What is the correct way to achieve the stated result in the query I just want to use the Where clause as a means to avoid inserting duplicate records into the item.itemlookupcode field. Thank you, Jack INSERT INTO item ( Notes , [ExtendedDescription] , [Description] , ItemLookupCode ) SELE ...Show All
SQL Server Subreport with a matrix
Hello, I got a report with a landscape format, and inside it i got some subreports, but two of them are subreports with matrixes. Those two subreports are making the page to be printed into 2 pages, but the second page is always empty, is there a bug, a misconfiguration or misusage of the subreport Because instead of having 42 pages i will have two times more. How can i avoid this Using borders i noticed that it is the subreport that grows much more than when it is generated individually, since individually it fits in one landscape page, as a subreport it needs 1, 5 that makes it 2 pages, and the last one always empty Thank you Hello, What renderer are you using Does this occur with each of them or only when using a certa ...Show All
Visual C# Append new column into a existing Access Database by c#
I'm using C Sharp and I want to append new column into Access Database. Please help me if you have source code for this issue ...Show All
Smart Device Development how to detect the available network connection in pocketpc
is there any sample code to detect whether wifi or gprs connection is existing in pocketpc or not help me thanks Hi Laja, If you want to check the Gprs Connection is available or not in your application you can use unmanaged code. Hope this one works for you... [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ); public static bool IsConnectedToInternet( ) { //value which wilbe returned bool valres= true ; try { int Desc ; //returns true if the Connection is available or else false valres = InternetGetConnectedState( out Desc, 0 ) ; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } ...Show All
Visual Studio Express Editions Login screen not getting focus
-Visual Basic Express 2005- This should be simple to fix but it has me stumped. I'm writing a program that allows a user to login. The login form is called by another (startup) form. The login form never has the focus on startus (neither does the main form) Things I've tried: Setting the main form to enabled = false hiding the main form login.focus login.t_username.focus and load the login form just before the end sub It doesn't get the focus until I actually click on it. Any suggestions on what I'm doing wrong Thank you both for your help. I do appreciate it. the form.ShowDialog() fixed the problem perfectly. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. SpaceWars SceneItem implemenation
I've been going through the code files for the SpaceWars sample game. I was somewhat confused by the SceneItem class, because it inherits from List<SceneItem>. This throws me off because I wouldn't expect a "scene item" "is a" list of scene items. Does anyone have any insight into the logic here SceneItems is a hierarchy - and can have child items below it. So it makes sense that a scen item is indeed a collection of other SceneItems Yes this could have been handled buy having a member which contains the child items but its just a design choice I made. ...Show All
