UK_2006's Q&A profile
Visual C++ compiler switch to disinguish version 6 and version 8
I am migrating MVS version 6 to 8. I hope I can make the final code running on both of them. However, there are some small problems. For example, in version 6, system doesn't provide function 'min' and 'max', so we define our own function. While in version 8, we have to remove these selfdefined functions since the system already has them. I guess in this case, I need a compiler switch for these codes. If in version 6, I define min adn max, in version 8, remove them. Just like Win32 switch for windows and unix. So, what is that Thanks. ...Show All
Visual Studio Express Editions VB.NET connecting to databases
Hi, I am having problems with a database application. I have a project which works fine which is connected to an Access database. The project is a login form which allows new users to add accounts. I want to create a new application for Admin purposes which needs to connect to the same access database. I know how to connect to this database but when new users are added to the login form, the admin form database needs to be updated aswell. If you have any ideas I will be grateful. Thanks in advance. "I want to create a new application for Admin purposes which needs to connect to the same access database. I know how to connect to this database but when new users are added to the login form ...Show All
Visual C# running application error
my friend send me a program..he made a setup for that program.. installation is succesful ..i can install the .exe application.. he wrote that program with using Visual Studio / C#.. but i cannot use that program..when i try to run program, windows xp creates an error report.. i installed dotnetfx 2.0 .. do i need anything else the error report is this: http://img216.imageshack.us/img216/5413/vfdzz2.jpg and the contents of the error report is this: http://img177.imageshack.us/my.php image=dfstt2.jpg Error says FileNotFoundException, which means you probably need some file. Maybe your friend did't put in the setup or that file is expected to be in some location in your system but it's not there. You must contact your friend t ...Show All
SQL Server sp_send_dbmail HTML body with stored procedure results in body?
Hi all, I'm playing around setting up a sp_send_dbmail report to send me deadlocking information. I've written a stored procedure ( utilities.dbo.GetDatabaseDeadlockingDetails ) and I would like to recevied the results in an HTML body. I can easily add the results as a seperate file, but it is far easier to use inside the email. Since the formatting isn't particularly nice as text, I wanted to get it as HTML. Now the sample in BOL: DECLARE @tableHTML NVARCHAR(MAX) ; SET @tableHTML = N'<H1>Work Order Report</H1>' + N'<table border="1">' + N'<tr><th>Work Order ID</th><th>Product ID</th>' + N'<th>Name</th><th>Order Qty</th><th>Due Date</ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animation - Final Question
I have a model with multiple animations in one x file, I really want to animate the bleeding thing. Now, I will hold my hands up and say that I am not a good enough game developer to produce my own animation classes ... is there going to be an example of how to do this in the near future from the XNA team Cant wait for the final xna release ... Looking forward to it, should be very interesting ... Is it mega complicated or can any numpty follow the code Cheers. ...Show All
Visual Studio can't find a tutorial
hy. i just finished installing iis and quickstartsamples. but i was confused not to find *SDK Samples\Tutorials\ResourcesAndLocalization* anywhere on my pc. at [1] it was said that in the subdirectory mentioned about i can find the sourcecode. where can i find the source tia [1]http://msdn.microsoft.com/library/default.asp url=/library/en-us/cptutorials/html/resources_and_localization_using_the__net_framework_sdk.asp one more question: with tutorial you mean to follow the links in the section *see also* at [1] That doesn't help. I'm also looking for that very SDK sample but couldn't find it anywhere on my hard disk. I have installed VS 2005 including the MSDN library. Then I downloaded the file you pointed to, but it also doesn't co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Memory Leak?
Heya, I've been working on this 2d game for about a month and a half. A space shooter with a ton of animations. But thats not the problem the problem is recently as the amount of Images has increased I've noticed that the memory usage never stops going up as the game progresses. I know there is some kind of flaw or redundancy in the way i store textures now since the release of beta2 and the content manager. However What would cause memory to keep adding up until the game begins to stutter The structure for storing textures was done before the content manager so it is just a Dictionary class that loads and gets textures loaded via the content manager. The UnloadGraphicsContent method in the game unloads the content mana ...Show All
.NET Development Desktop Notification using Windows services
Hi How to create Desktop Notification using .NET windows services,C# in Windows Vista Operato System Regards Govardhan I believe you'd have to P/Invoke WTSSendMessage if you want the service itself to display the message box. Please note that this is not an optimal solution, and that you'd probably want to use a separate executable that runs in the current user's context and uses some sort of interprocess communication (named pipes, sockets etc) to get the status from the service. Best regards, Johan Stenberg ...Show All
Visual Studio Team System Load Testing Production websites in different domains
G'day All, Is it possible for VS load agent to run web tests against a web application in a different domain i.e. production environment. I have used load runner before and would like to do something similar. If it is possible can you please post a link to some information on setting this up Kind Regards, Art Well basically, if you need to go through a proxy server to get to the target servers, you'll need to supply the proxy server name in the Proxy property on the WebTest. This is typically not a good way to run a load test, though, since you'll be load testing the proxy server possibly more so than the target server. To switch a web test between a test and production environment, for example, ...Show All
SQL Server DataReader ODBC Query Timeout
Hello ! I get in my SSIS Package a Query Timeout in the Datareader! I Use the ADO.Net OBC Connection with the Connection String: Dsn=xxx;uid=xxx;connection timeout=0;command timeout=0;query timeout=0 Is there any Option to set the Query Timeout Thanks ! Pseudo I have had this problem with queries on very large datasets coming from an AS 400 where indexes weren't present (that I could find out about anyway) when I was using multiple where clause conditions that resulted in an extremely long running query. What I found was that using a simpler query that initially imported way more data than I actually needed to import was more efficient (from the simplistic viewpoint of how long ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I bought a couple of books but have ran into a little problem...
I bought both C# and Game Programming, and C# for Dummies 2005(I am kinda a new to programming), and they seem up to date, yet neither are new enough to feature the Windows Game project, so they cover console app, which I can do fine in, so as far as making games goes, is it all right to use console app, or should I stick with Windows Game, and if so, how do I translate what there is in console app to that of Windows Game, is there any sort of FAQ to the matter, I didn't see on in the FAQ thread. Thanks for any help that you can give me. What they're teaching you in the books you've bought are the basics of the language. It'll probably cover the .NET framework library (System.whatever) and stuff like that. The book you have doesn't co ...Show All
Visual Studio Team System Specify default for query parameter
I'm trying to build a query using date parameters. I created a StartDate query parameter and have to give it a default value. The UI only shows me a list of values starting from 1/10/2001 through 11/1/2006. The last entry is "Filter Members", which shows up a non-intuitive dialog box. If I want to select 15/12/2006, I have to enter something like "UTDDateTime contains 12/2006", press the Test and OK button and then select the value I want from the list. If I want to change this value, I have to this all over. Is there anyway to just enter the value you want as http://msdn2.microsoft.com/en-us/library/ms156303.aspx suggests Thanks hi paso, happy new year! have you l ...Show All
Visual C++ Memory window cannot be scrolled much
When displaying memory, clicking on the scroll bar only allows you to move a limited amount in either direction. Beyond this, in the higher address direction, it shows blank, and will not move past the lower address limit. I can find no documentation on the proper operation of the memory windows, beyond the most rudimentary descriptions. For structures larger than a few Kb, it is necessary to be able to scroll from the base address, but the memory windows apparently don't let you do this. They worked as expected in VS6. Than the problem might be dependant on the memory image. Maybe it is not possible to scroll beyond the start of e memory block. As you know the memory in a process is not continuo ...Show All
Visual Studio Express Editions Question about dataset
Hello I want to add data to my foreign table being in relationship programatically . How can I do that For primiary table I do like that: ... object [] detailsRecord = new object [] { TextBox1.Text, TextBox2.Text, TextBox3.Text, DateTimePicker1.Text}; this .DataSet.Tables[ "details" ].Rows.Add(detailsRecord); ... detailsBindingSource.DataSource = DataSet.Tables[ "details" ]; Hi. That is true. I have done it like you said... object [] detailsRecord = new object [] { TextBox1.Text, TextBox2.Text, TextBox3.Text, DateTimePicker1.Text}; this .DataSet.Tables[ "details" ].Rows.Add(detailsRecord); object [] addressRecord = new object [] { TextBox1.Text, TextB ...Show All
SQL Server Cannot open database "xx" requested by the login. The login failed.
Hi, we are running a webapplication, using IIS6, Windows 2003 64 bit in classic Asp. In the ASP pages we connect to our SQL server (SQL Server 2005 64bit,windows 2003 64 bit), mirrored on a third sql server (same software /hardware setup as the first sql server). The mirroring is without witness. This works but sometimes we get the following ODBC error in our ASP application : Description: [Microsoft][SQL Native Client][SQL Server]Cannot open database "OBJECTS" requested by the login. The login failed. No error can be seen in the principal SQL error logs. But a failed authorization can be found on the mirror server.. And this of course this makes sense, as t ...Show All
