Rajprit Arora's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. No shader syntax highlighting
The readme file of the Dxsdk December update says: "HLSL syntax highlighting works properly in Visual Studio 2005 but the Direct3D 9 Shader Debugger is not currently supported. " Well, the syntax highlighting has never worked for me in VC++ 2005. I thought the Dxsdk December update would fix this ( I found another post here that said it would) but it didn't. Is there anything I can do to activate it Kloda wrote: Ok, thanks to both of you for the replies. If that's true about PIX it seems like a step backwards in user-friendliness, having to capture a full stream every time you want to deb ...Show All
Windows Forms How to Ngen the assemblies after ClickOnce installation?
How to configure the ClickOnce that make the assemblies ngen'ed after the installation Thanks! Lei, There is no support for doing this in ClickOnce. NGen'ing an assembly installs it into the native image cache on the local computer (a reserved area of the global assembly cache). This is a globally impactful operation not supported by ClickOnce. Regards, Elizabeth ...Show All
Windows Forms Login Error
Can someone tell me why I get a error when I try to login to the database. It tells me to check the errorlog, however it doesnt' write anything to the '\bin\errorlog file. 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.0.3705\mscorlib.dll', No symbols loaded. 'TaskVision': Loaded 'C:\Documents and Settings\Terence\My Documents\Visual Studio Projects\TaskVisionSource_Client\TaskVision\bin\1.1.0.0\TaskVision.exe', No ...Show All
SQL Server Is SSMSE Redistributable
Is SSMSE Redistributable SQL Server 2005 Management Studio Express (SSMSE) is redistributable if it is redistributed with SQL Server 2005 Express and redistributed as part of a developed application per the Microsoft redistribution rights agreement here: http://www.microsoft.com/sql/editions/express/redistregister.mspx . ...Show All
Visual C# Counting lines of a file
Is there a easy way to get the amount of lines a file has Without looping through every line and incrementing a variable as I am working with large files, or is that the only way I can do it Basicly, I'm looking for the quickest way to get the amount of lines a file has. Thanks. Hi Squimmy, You can do it by the following code snippet. Void CountLines() { string[] fileContents = File.ReadAllLines("d:\myfile.txt"); int linesInFile = fileContents.Length; } Hope this helps, Suma ...Show All
Visual Studio 2008 (Pre-release) Replacement for AdornerDecorator.GetAdornerLayer(Canvas)?
Anyone know what has replaced this in the September CTP Found it sorry. AdornerLayer.GetAdornerLayer(Canvas) ...Show All
Visual C++ QueryResults object and MS SQL 2000 float fields - please help!
Hi, I have a MS SQL 2000 server database, and in one of the tables a column is defined as float(8 byte). When I use the QueryResults object on it with getColumnDouble or even getColumnString the returned result is rounded up to one digit after decimal point. All the actual data if viewed through database manager has 2 digits after decimal point, but they all retrieved as rounded to one digit with QueryResults. How can I get the actual values Your help is very much appreciated! Duolicate of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=172929&SiteID=1 Please post in one location. Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development Diff Bet VS .net and VS
Hello I have read many documentation, but cannot really get this figured. In the old world(with out the .NET) a visual basic program in VStudio created .exe, which could be executed in Windows. In the .NET world, using the VB .NET the documentation says that it would create a (Intermediatary Language) IL. This then becomes native language and then native language gets executed on the CRL. Can some explain what this is all about, where is the .exe(if at all) created in the .NET world, and how it fits in the .NET framework Confused developer. Thanks Thanks Kit/Daniel/Josh for your help. ...Show All
Visual C++ HELP!!! Can nmake do this?
Question #1: ALLSRC = a.cpp b.cpp dir1\\a.cpp dir1\\b.cpp OBJDIR = .\\obj\\ what fomular should I use to compute ALLDIROBJ here so that the end effect is: ALLDIROBJS = .\\obj\\a.obj .\\obj\\b.obj .\\obj\\dir1\\a.obj .\\obj\\dir2\\b.obj Please notice that I'm able to do following: ALLOBJS=$(ALLSRC:.cpp=.obj) This computation gives me: ALLOBJS = a.obj b.obj dir1\\a.obj dir1\\b.obj Question #2: Now, say I've got ALLDIROBJS like I wanted, then how do I write the inference target line, so that it's expanded into: .\\obj\\a.obj : a.cpp .\\obj\\dir1\\a.obj : dir1\\a.cpp ... On Unix I'm able to write something like: $(OBJ ...Show All
Visual C# Get public static members of class instantiated
Ok, I have a base and a derived class. Each have static members. Why is it that if I call a static method defined in the derived class, all the static members of the base class and derived class are instantiated, but if I call a static method defined in the base class only the base class members are instantiated (even if I am doing the call by referencing the derived class) Is there a way to explicitly cause a class to instantiate all of its static members Because a call to Derived.StaticMethodInheritedFromBaseClass() is actually compiled directly to BaseClass.StaticMethodInheritedFromBaseClass(). Note that ...Show All
Visual Studio Express Editions Update UI from a thread
Thanks Brendan Grant for your previous answer. private void button_click (object sender, EventArgs e) { Thread thread = new Thread(new ThreadStart(WorkerFunction)); thread.IsBackground = true; thread.Start(); } private void WorkerFunction() { //database operation code } Within the worker function, how to update the controls on the UI form Just the simplest - only one label, no need lock etc. Thanks You have two options. A. Instead of using a Thread object to invoke your asynchronous call, use a BackgroundWorker component. This has a callback method that allows you to report ...Show All
Windows Forms bar chart, pie chart, line chart
Hi, How can I make various kind of charts in my application, such as bar, pie and line. The datasource is dataset. Any samples I found a few on google , but they are for ASP.net and involves HML and .aspx Thanks You can try Nevron Chart for Windows Forms. The component supports GDI+ and OpenGL rendering, numerous charting types with built&nbs ...Show All
SQL Server Developers cannot execute sp_addmessage
Hi, I have problems with the concept of user-defined messages. I'm migrating from sybase ase to sql2005 and found out that there is only one global pool of messages. Do you give every project on this server a dedicated range of error-numbers Another problem: only the sysadmin oder serveradmin can call sp_addmessage. In my environment the developers own their databases and used to be able to create their own messages. Now I try to let the developers call sp_addmessage by calling a "wrapper-procedure" which gets the needed rights. create procedure sp __ addmessage (@msgnum int, @severity smallint, @msgtext nvarchar(510), @lang sys ...Show All
Visual Studio Tools for Office TrackRevisions method not available error
Hi, We are working on word customization using VSTO 2005. In our code for some functionality we need to enable and disable trackchanges. for that we are doing something like this, if (this.TrackRevisions == true) { isTrackChangesOn = true ; this.TrackRevisions = false ; } // Some functionality if (isTrackChangesOn == true) this.TrackRevisions = true; The above said is working fine. But when i use Find.. Replace Dialog and try to replace text within document, the following error is thrown at the line, if (this.TrackRevisions == true) "The TrackRevisions method or property is not available ...Show All
Visual C# Login Screen
Hi to all. When my app starts, the main form is displayed, and a thread reading and writing the serial port gets started. However I launch a secondary form, which is the login screen for that app, creating an instance and using Show() method instead of ShowDialog() to let the mainform perform his duties. How can I avoid the user to switch window focus to the mainform I’ve managed to avoid the login screen window get closed, but can’t find how to keep the focus in the login screen unless the cancel button is pressed so the whole app closes or a valid user and password is entered and checked against the database. Just need to know how to ke ...Show All
