Shaji Kumar's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. 3D VERY slow on the XBOX
Im having a hard problem getting good FPS rates on the XBOX, everything turns around and gets alot slower. Does anyone have a solution, or reason for this Thank you for your answers, unfortunatly its not all covered yet. I have tryed to make the sugestions you said to me. I got decent framerates, when enabledDefaultLightning is off (That makes kinda sence), but it still lags about 1 time a secound. In the XNA Performance tool it looks alittle like this actually do happen when the garbage collector collects, unfortunatly if I take the sugestion to collect in the update method, the framerate gets close to zero. Another thing i noticed is that the garbage collector reserves more and more memory (Al ...Show All
Windows Forms Change Tabe Page Font
When we open multiple pages, we get tabs along the top. Can we change the size of that Its kinda stranger not being able to switch that. ...Show All
Visual Studio 2008 (Pre-release) Drag Event Source/OriginalSource bug
Working through a vanilla drag and drop scenario in WPF June06 CTP I am finding that the Drag event is invoked with the wrong reference for Source and OriginalSource. I set up a canvas like: testCanvas.AllowDrop = true; testCanvas.DragOver += new DragEventHandler(testCanvas_DragOver); testCanvas.Drop += new DragEventHandler(testCanvas_Drop); void testCanvas_Drop(object sender, DragEventArgs e) { Console.WriteLine("testCanvas drop Completed"); Console.WriteLine("Original Source Type: {0}", e.OriginalSource.GetType()); Console.WriteLine("Source Type: {0}", e.Source.GetType()); Console.WriteLine("Sender Type: {0}", sender.GetType()); } void testCanvas_DragOver(object sender, DragEventAr ...Show All
Visual Studio Tools for Office VSTO Outlook Add-in Debug errors even for simple HelloWorld add-in
I am trying to learn about VSTO Outlook development and I've tried several Outlook add-in samples online. I'm getting all kinds of weird behavior when I try to debug even a simple HelloWorld add-in. public class ThisApplication Private Sub ThisApplication_Startup( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Startup MsgBox( "Hello World" ) End Sub Private Sub ThisApplication_Shutdown( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Shutdown End Sub End class Sometimes I get the following in a Microsoft Visual Studio message box: "Unable to start debugging. Check for one of the following. The application you ...Show All
Smart Device Development trouble with nspm.dll - program crashes
I wrote a program that downloads images from the net and applies them as textures on a 3D mesh. I implement this on a PDA that runs windows mobile 5.0. I use VS2005 for programming. My program requires to download many images one by one though not in regular intervals. The program starts well and a few images are downloaded without problem but then suddenly the debugger says, "loading nspm.dll..." "thread exited with code xxxxx" and then it doesn't download that particular image file that was supposed to be downloaded at that moment. I really dont understand why this happens. I cannot really say when it will happen. But what I wonder is, for all the previous images downloaded during that runtime session, ...Show All
Visual Studio 2008 (Pre-release) showing property of an object within contentpresenter
hi, i want to display within my ContentPresenter (which is defined within my ControlTemplate) a property's value (MyInfo.Text) of an object (custom:MyInfo) which isn't inherited from UIElement. The ContentPresenter just displays the object's namespace of the button ("MyStyles.MyInfo") but i want to access the "Text" property of the object. So in this case, the button's content should be "Info6" < Window x:Class = " MyStyles.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:custom = " clr-namespace:MyStyles " Title = " ReplacingSt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error loading "mytexture. File not found.
Hello, I was trying to do my first app in XNA with MSND documention (Your First Game: Microsoft XNA Game Studio Express in 2D). ms-help://MS.VSExpressCC.v80/MS.VSIPCC.v80/MS.XNAFX.1033/XNA/First_XNA_Game.htm At step 4 I've got: //this is a texture we can render Texture2D myTexture; //coordinates to draw the sprite at Vector2 spritePosition = Vector2.Zero; //this is the object that will draw the sprites SpriteBatch spriteBatch; protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { myTexture = content.Load<Texture2D>(@"C:\a.jpg"); spriteBatch = new SpriteBatch(graphics.GraphicsDevice); } } When I am trying to run this, it says that it cant find the file, but its there for sure. I w ...Show All
Windows Forms Adding image/icon to context menu
I tried, and this sounds extremely simple but I couldn't find any information on the net. Is there a way to add an icon to a context menu in VS .NET 2003 You will have to OwnerDraw the menu in VS2003. You should find lots of examples of ownerdraw menuitems on the web. http://msdn.microsoft.com/msdnmag/issues/04/02/CuttingEdge/ There is a MenuSkinner component on my site which will extend all menuitems with an Image property and automatically ownerdraw them. http://www.dotnetrix.co.uk/controls.html ...Show All
Visual Studio 2008 (Pre-release) DataContract issues - output doesnt match schema
My idea was to create a Web service operation that returned an instance of a published XML type. I figured this would be a good demonstration of the benefits of a DataContract. So I got hold of an opml schema and simplified it (see OPML.xml for sample of desired output) Ideally, I thought there should be a way to convert the schema into a .NET class, and I believe this can be done via svcutil, but it's not obviously available from the VS GUI. So I wrote the class by hand (see DataContract.cs). I then added ServiceContract.cs and Service.cs. It seems there's no way to test the service without a client in WCF (this seems a step backwards to me, as a built-in test page is provided with all other Web service environments) so I built a ...Show All
SQL Server 2005 Management Studio Slow to start in some cases (have disabled certificate check)
If I open SSMS from the start menu it opens instantly. If I double click on a sql file in explorer it takes about 10 seconds for it to open (either in the existing instance, or a new one if one is not opened already) . If I try and open it by double clicking on a sql when visual studio is stopped at a break point, it takes about 20 seconds. How can I speed it up The path was local so this didn't help. I noticed this weekend that if I remote desktop to the computer, the files open instantly. Any idea why the slow down would not occur in this case ...Show All
Visual FoxPro Shellexecute on win98 / XP / 2003 server.
does Shellexec behave differently on win98 than on XP I have a shellexecute command to unzip a zip file. The 'pfiles' folder the zip file resides in is under the folder the application runs in: =ShellExecute(0,"OPEN","unzip.exe","pfiles\01.zip","",1) On XP machines it works fine. On win98 machines it fails because it won't find the pfiles folder. Thanks. Hi Aleniko, Shellexecute shouldn't be dependant where your application is ran from. In other words in any OS I wouldn't trust it'd resolve my current folder and explicitly pass the path. ie: ShellExecute(0,'open','unzip.exe', fullpath('pfiles\01.zip'),0,1) Alternatively you might pass 5th parameter (working folder). ...Show All
Visual Studio Express Editions Developing a shell namespace extension
Can I use the VC++ express edition to develop a shell namespace extension If you install the Platform SDK then the answer is yes. ...Show All
Visual Studio Viewing and printing reports from a .mdb in VB
Hi Guys.I just upgraded form express to .net pro and am slowly getting the hang of VB. I have been working on an app that allows a user to work through a couple of forms entering criteria ,then I want them to be able to print out reports of some kind from an access database filterd by that criteria. I would like the reports to be independant of access because im not sure access will be on every machine it runs on. Would you guys have any pointers on the best way to do this Does VB have a method of making nicely layed out reports Any help would be appreciated. Thanks Hi Kelly, Please check my following article to host report with web client, the last section has instruction to connect to Acc ...Show All
.NET Development SQL Compatibility
I'm putting the finishing touches on an application I wrote for a Symbol MC50. I have a fairly large text file that I transfer from a PC using 802.11 then I load it into a SQL CE database on the MC50. It works but it takes about 10 minutes. Would it be reasonable to create and load the file on the PC and copy the SQL file to the MC50 I'm using VB in VS .NET 2005. So, if I understand you correctly, you're moving a .txt file from a PC to the MC50 and then running code to import it into the SDF database but you want to know if you can build the .SDF database on the PC and move it to the MC50 That's possible, but I expect that you might have better performance with replication. This would require a SQL Server ...Show All
Smart Device Development Help on available clases
Hello there, does anybody knows if exists in windows CE 5.0 some kind of class similar to the system.management of the Windows XP ...Show All
