Dewsh's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Framerate Independent Movement
Hey all, GameTime gives us ElapsedGameTime and ElapsedRealTime. I'm used to using real time for my framerate delta values to move objects - but it appears that Update() is locked at 60 frames per second. So should I be using ElapsedGameTime.TotalMilliseconds as my delta Thanks all. I have the same problem but to disable this add : graphics.SynchronizeWithVerticalRetrace = false; IsFixedTimeStep = false; graphics.ApplyChanges(); The problem is that i use realtime and all become more fastly if 60fps is desactived... ...Show All
Windows Forms C# .Net 2005 - Question about .Row.Add(new object[]{...,...}) Please help!
Hello everyone, Greetings from Brazil! As shown in the code below, is it possible for me to add the new objects for tipoDT and sementesDT without having to do it one-by-one Like, for example, getting the values automatically from the tables .... How would I do that The sementesDT table is quite large and would take me forever to add the new objects one-by-one! Here's the code: public frmBA() { tipoDT = new DataTable("tabTipoSemente"); tipoDT.Columns.Add("CodTipo", typeof(int)); tipoDT.Columns.Add("Tipo", typeof(string)); tipoDT.Rows.Add(new object[] { 0, "Nocivas Probidas" }); tipoDT.Rows.Add(new object[] { 1, "Nocivas Toleradas" }); tipoDT. ...Show All
.NET Development Allocating buffers using callbacks
Hi, How can I allocate buffers using callbacks in pinvoke to allocate memory as needed. Can someone provide an example for this. Thanks! The memory will be allocated from native heap. An unmanaged dll function call is made by the managed side. Each time the unmanaged code needs to allocate memory, it does so by a callback to the managed side. The managed side will then allocate required memory(buffer) and return an IntPtr to the unmanaged side. Once the function returns, the managed side needs to read the contents of the buffer. The callback takes two areguments IntPtr Callback(IntPtr a, Int32 size). ...Show All
Visual Studio Express Editions array for IP address range
im trying to get an IP address range into an array so that i can scan for example 192.168.1.1 to 192.168.1.12 the array that i created was in vb6 and even that one errored out because of the "." between each octet.. Im not using vb6 anymore, just express Update on progress.. I added ListBox1.Items.Add(currentAddress) to the code and it seems that the output is only modifying the 3rd octet and outputing every loop to 255 on the 4th like so staring ip address = 192.168.1.1 ending ip address = 192.168.8.14 scan begins/output 192.168.2.255 192.168.3.255 192.168.4.255 192.168.5.255 192.168.6.255 192.168.7.255 192.168.8.255 it needs to run all the way through from 1 to ...Show All
Software Development for Windows Vista conime.exe procedure issue in console application
Hi all, I am using a non-western language Vista, when I start my console application, the extra procedure conime.exe (as I know, it's shared to use for all console application) is launched automatically. But when my console application exits, the procedure conime.exe still has some relationship with my console application, I can't remove my console application folder (my console application is installed, I launch it, exit it, and remove all files and folder of my console application). But after terminating the conime.exe procedure, I can remove my console application folder. On Win2l/XP, I can remove the folder after exit my console application, without terminating the conime.exe procedure. Since conime.exe is used for all console ...Show All
Visual Studio Express Editions Tackling an issue
Hi all, I'll try to describe this as best I can. If it gets a little confusing, let me know and I'll try to rephrase everything I've said! For the past few weeks I've been trying to get my head around VB2005EE. After reading a few books and tutorials I feel that I'm almost ready to go ahead and build my first "real" program to distribute. The program I have in mind should be nothing complicated, but I'm a little confused on how to build the key feature. Without giving too much away, my idea is to build a large database on every ride, roller coaster and theme park in the world. Each entry will feature statistical information on the particular attraction, along with media (video/pictures), location etc. - this will mean I'll have ...Show All
Windows Forms How do I programmatically add checkboxes to a form at runtime
The problem i'm having is programmatically adding checkboxes to the form. So far I have this code which works: Checkbox cbk = new Checkbox(); cbk.Location = new Point( 10, 10 ); cbk.Text = "I was created at runtime"; this.Controls.Add( cbk ); But I need to have the checkbox name generated by the database, I am unable to figure out how to assign a value from a SQLDataReader to be the name of the checkbox, my attempt below will not work (just replacing the hard coded name with the value from the db): while (reader.Read()) { CheckBox reader[1].ToString() = new CheckBox (); reader[1].ToString().Location = new Point (10, 10); reader[1].ToString().Text = "I was created at runtime" ; this .C ...Show All
Visual Studio Team System How do I get this product working?
I am attempting to evaluate VSTS for use in our environment and have run into problems before I have begun. What I have so far: The VSTS server is installed and running Visual Studio enviroment has been installed from En_vs_2005_vsts_180_Trial.img I am going through the Introduction to VSTS Guide (Walk-Through Only).doc and heven't been able to get past the first step with Excel, How do I enable the "New List" button and the VSTS toolbar I am using Office 2003 SP2 and have just run through Windows Update applying all patches associated with Office. Any help would be extremely appreciated at this point. My two main areas of concern are project management and defect tracking, if anyone can point me to the ...Show All
SQL Server No more datatype TIME in SQL 2005...what to do???
I understand that SQL 2005 doesn’t support TIME ( which is, for me, incredibly weird). Now, could anyone please help me solve my problem. I want to make it possible to insert into database a start-time for the first runner in a team. And when he finishes, a finish-time. This finish-time I will also use as a start-time for the second runner....a.s.o. Furthermore I want to be able to get the results from the database to present them in several ways. This also means I can't simply insert the time as a string since it won't change hour at every 60 minutes. I have read somewhere that it should be possible to create own datatypes, but I have absolutely no knowledge to that. Could anyone please help me ...Show All
Windows Forms datagridview cell selecting
hi, i have a datagrigview with columnheader and rowheader . the default behaviour for the topleftcell click is to select all cells. is there a way to bypass this functionality ( none cells selected ) or to disable that cell thanks thank you, Zhi-Xin Ye i verified that ... succes i worked with OnMouseDown but i did not 'see' the HitTest solution ... thanks again and to all others ...Show All
Visual J# COM object that has been separated from its underlying RCW cannot be used exception within threads
Hi, We are having code in which we start a new thread and set it as STA. This new thread initializes IHTMLWindow2 object and then starts another thread. But, in that second thread if we try to access the IHTMLWindow2 which is initialized in the first thread we are getting this exception "COM object that has been separated from its underlying RCW cannot be used". If we do not set the first thread to STA, we coudn't access the windows in that thread itself, so it needs to be in STA. So how can we access the window initialized in the first thread Please give any suggestions. I am giving the code here. Class1.java: import com.ms.wfc.html.*; import com.ms.wfc.core.*; import com.ms.wfc.ui.*; import com.ms.wf ...Show All
.NET Development Installing .net 2.0 on windows xp service pack 1 is this possible
Installing .net 2.0 on windows xp service pack 1 is this possible. I have developed a .net 2.0 windows application but not all the PCs have service pack 2, there are 100 with SP1. I have of course suggested that they upgrade their machines to SP2. well this is the requirements for .NET 2.0: Supported Operating Systems: Windows 2000 Service Pack 3; Windows 98; Windows 98 Second Edition; Windows ME; Windows Server 2003; Windows XP Service Pack 2 it states it requires Windows XP SP2. So it's a tricky one, I would suggest trying it out on 1 machine/test machine and see how it goes, then deploy it on afterwards. however I would strongly suggest upgrading to SP2 ...Show All
Smart Device Development Mobile SQL Issue
Hi I am developing a Smart Device App that will talk to a SSCE 2005 DB, but i am having some problems with the DB engine and communicating with it. I have the same problme on the device it's self and on the emulator. If i copy a sdf file that i have crated using SQL Server Mangment studio on to the device the SQLCE App will not talk to it and i get the following error The Database file cannot be found Check the path to the database [,,,File name,,] Native error :25046 I get the same error if i connect it with code. If i create the DB on the Device SQLCE reads it fine but i get the same error message when i try to get the app to connect to it. also if i move a SDF file that i have created on the Device SQLCE gives me the error message. ...Show All
Windows Forms Stored procedure with combo box?
On a Windows form, I have textboxes to show data rows of a main table. The main table has a foreign key to a minor table which is a list of status values ("Pending", "In Progress" and "Done"). The object is to display the status in a listbox or combobox. I want to know how to do this. Some notes: 1) The code to set up connections, DataAdapters, CommandBuilders, bindingsources, Datasets, etc works fine. 2) I would like to set up any constructs in code rather than with a wizard. 3) Unless I have to I want to avoid creating the relationship between the tables in the wizard. 4) I get the sense that one Dataset can access and update both tables, but I don't know how to tell the dataset about additional tables. ...Show All
SQL Server SSIS "OLE DB Source" "SQL command from variable" DataType problem
Hi, I have to read data from an MDB file into SQL Server. Simple, but I need to place a literal into every row. In my OLE DB Source I would use: SELECT '001' AS col1, foo, bar FROM Table1 But the problem is that I pass my value for col1 into the package from C# using Managed DTS. So I set up my OLE DB Source using "SQL command from variable." And I have two variables one to receive the value of for col1 (col1) and one that is an evaluated expression that has a dynamic sql statement (dynSql). col1 is a String as is dynSql. dynSql looks like this: "SELECT " + @[col1] + " as col1, foo, bar FROM Table1" Now as long as I set the value of col1 to '001' that should work. Right Well not exactly. T ...Show All
