khen's Q&A profile
Smart Device Development Saving DataTable new Rows Comming From Other DataTable to the DataBase ?
Hi i have a small question and i hope an answer or it as soon as possible . i have copied the rows of a datatable to another datatable in order to save the other datatable to my database by using the methode DataAdapter1.update(OtherDataTable.GetChange) but i surprised that the new rows have the DataRowState.UnChanged how can i change the DataRowState of them to : DataRowState.Added please help . You can add rows instead of copying them. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. RectangleF?
I've seen a thread here regarding the fact that XNA framework is currently missing the RectangleF class. Can I confirm that you are or aren't adding this class to the framework It's really almost essential for my game - I can't use the normal Rectangle class for the bounds of sprites/GUI controls because often I need to increase the location and/or position by values such as 0.25F. Anyway a quick yes/no/still unsure would be great please. Can't speak for the XNA guys, but I hope they don't add RectangleF. It would be sufficient if they added some overloads to SpriteBatch.Draw that take Vector2 values or float scalars. Even if they don't do either of the above, its VERY easy to write your own SpriteBatch equ ...Show All
Visual Studio Team System msmdsrv using 50% cpu for minutes
When running reports with cumulative account response time because extremely slow. Msmdsrv on the server starts using 50% cpu for minutes. You are right, my version of the query works in SQL Management Studio but I didn't test it in the report designer tool. You are seeing the error because the [Date].[Week] dimension attribute is a hidden attribute. [Date].[Year Week Date] is the right one to use. The key is " [Date].[Year Week Date]. CurrentMember . Member_Key " would give you what you need, which is the date for the week. You can use this expression to create a calculated member in the Query Designer so you don't have to write the whole query out in MDX. Thx, Jim ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quake XNA update
Since the XNA 1.0 release I have been quite busy at first trying to run stuff on my XBOX360 and then doing the jump to a fully working port of Quake (best deathmatch ever!) So after 3 week of hard part time work on this I can now see something that look not too bad =) The lightmaps still have issues but I'm quite happy of the result so far. Before starting I had a good knowledge of C# but I my C/C++ skill are still far behind but enough to understand what the Quake code was about in most case. This is my first 3d engine ever but in RL I'm an animation TD for a major game publisher, meaning that I do understand quite well what I had to do and how to do it. So far I'm having a really good time using this and I don't have much to complain abo ...Show All
Visual Studio 2008 (Pre-release) Need help turning off security on my WCF Service and client
I am getting a security error when I run my program. I am using WSHttpBinding in both my client and service, but can not access the service on a remote client with my client, but it works great on the host machine. (IP's are not real in the examples below) Below is the error I am getting: Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: An u nsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.Fa ultException: An error occurred when verifying security for the message. --- End of inner exception stack trace --- ---- Below is my HelloSe ...Show All
Visual Studio Team System how to delete the file or folder in version control and keep disappeard?
in the source code explorer, I check in some files and folders mistakenly into the teamproject, I want to delete them, so I rightclick them, select the "delete" menu, I found the status became "Deleted", but those files and folders still appeared in the source code explorer, how to make them disappeared Thanks a lot! As Michal points out you have to commit the pending delete via a check-in. The delete operation does not delete the file from the store; the check-in of the delete operation does. --Ben Ryan ...Show All
Visual C# Debugger access error
I am working on a machine running MS Visual Studio 2003. After I create and code a project, when it comes to compile&run I get the following message: Error while trying to run project: Unable to start debugging. Access is denied. Verify that you are an administrator or a member of the 'Debuger Users' group on the machine you are trying to debug. After being added to the 'Debuger Users' group, you must log off and log back on for the settings to apply Unfortunately we are currently dealing with pure C# codes. But one of our co-workers think that debugger of of a Java Development Software might change the settings of the debugger and might cause this error. Could this possible, and how can we fix the problem ...Show All
Visual Studio Express Editions How to output above ascii character set?
Hi, I am trying to ouput commands that are above the ascii character set. What I am doing is this: com2.writeout("128WAKE") But what I need is the decimal equivalent of 128 and not the ASCII representation of 128. I need to do the equivalent of Printf("%d128"); if that is possible. Thanks!! I think you need the binary equivalent. I assume you want these in bytes Esentially what you are saying is that you want a string of bytes with but 7 set as I understand you. ...Show All
Smart Device Development GetKeyState Method
hi, This is for an application in VB.Net on .Net Compact Framework (1.0). (PocketPC) I need to trap the Tab key as it is moved over the controls on the panel. There is a function GetKeyState in user32.dll. But I get a "NotSupported" exception when I try to use this function. Is there any substitute or alternative function that is compatible with CF. Thanks, Hi, Thanks for the quick response! I read through the link and tried using the GetkeyState function.... But i couldnt find as to which dll it belongs too. The normal statement to import a method would be...For Example Declare Function GetCapture Lib "coredll.dll" () As IntPtr Now for GetKeySt ...Show All
Visual C++ Passing Unmanaged Class by reference to Managed Class Constructor
I have a MainForm. It has two child forms. The program reads in large SEGY files (2gb -> 100gb), appropiate data and read settings are stored through the class system that has a main controller "SEGY.H" & "SEGY.CPP". They a coded in pure C++. My two child forms are managed. I want to pass a reference for SEGY from the MainForm to each child form when they are required to be shown to the user, obviously to avoid copying large amounts of memory. I cannot pass a native class by reference to a managed class through the managed classes constructor. I have tried (code in mainform): private: SEGY *Segy; //it then gets constructor call when filename is chose CHILDFO ...Show All
Visual C++ C2248 error again
Hi, I have seen a few instances of this problem described in relation to derivation from classes with private copy constructors in VS 2005, but the behaviour does not seem consistent. Here is a simple example class: #include <sstream> class MyException : public std::stringstream { public : MyException( void ); ~MyException( void ); MyException( const MyException & x){} MyException & operator =( const MyException & x){ return * this ;} }; And some code that calls it: int _tmain( int argc, _TCHAR* argv[]) { MyException x; // Construct MyException y(x); // Copy constructor MyException z; z = x; // assignment ...Show All
Windows Live Developer Forums Programatically display PushPin's Details Balloon?
I've got a pretty basic map that loads a public collection from local.live.com, adds the layer to the map, and also outputs the entries as a list (as text) where each item on the list is a link such that when it it clicked, the map is centered on that point/pushpin. I'm doing this with a LayerLoaded() call back when the layer is loaded which pases the collection of points. We loop through the points and output an A tag with an appropriate javascript attribute and then write all of this out to a DIV placeholder. I'm looking to add a few additional features: 1. I'd like the pushpins to be numbered, corresponding with the numbers on the list (which are just generated in the order they are written out). 2. More importantly, I'd lik ...Show All
Visual Basic Determine the if a field has focus on a non-vb form
I've used the findWindow/AppActivate commands to locate and set focus to a application written in Progress 4GL. Now I want to determine if the Progress form field that has focus is the correct one. Spy++ shows me that the field class is "button" and the caption is "shipped". Is this possible smartlinc, Please take a look at the following link that shows an article titled How to Extract a Windows Program Icon--Running or Not. http://support.microsoft.com/kb/142815 Hope that can help you with this question. If you have any VB6 question, please post your question in the following links in order to get the satisfied answer: Visual Basic Interop and Upgrade Visual Basic 6 Newgroups ...Show All
Visual Basic datediff total hours
Hi im trying to make a program that will calculate how much money someone will make on a check for work and im kinda stuck on how to get the total number of hours. i can get the code to work if the starttime and endtime are right on the hour then i use datediff(dateinterval.hour, starttime, endtime) but with that code if you try to enter startdate 11:00am endtime 7:30pm i want the function to return 8.5 hours as totalhoursworked, i also tried totalhoursworked = datediff(dateinterval.minute, starttime, endtime) / 60 i figured that one would work but for some reason it doesnt want to devide it by 60 it does work if i were to devide 60 by datediff(dateinterval.minute, starttime, endtime) but then ofcourse it gives you the wrong nu ...Show All
Visual C# Set and Get text file properties
Hi All, My application creates text files. I need to modify, programmatically, the created file's properties (available via righ-click > properties > Summary). Example 1: Set the string "Modified by Jack" into the comment field. Example 2: Get the Revision Number. Thanx, El. take a look at this my friend: http://www.codeproject.com/csharp/dsofiledemo.asp ...Show All
