Marco Russo's Q&A profile
SQL Server Timeframe for Add-In for Office RTM
When is the Add-in going to be updated for the RTM of office ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to only draw visible meshes? Performance problems.
Ok, I have a simple mesh loaded that contains 24 faces. I have a loop that draws 144 of these boxes on-screen like so: for (int i = -(mapwidth / 2); i < (mapwidth/2); i++) { for (int j = -(mapheight/2); j < (mapheight/2); j++) { modelPosition = new Vector3((i * 10.0f)+5.0f, 0.0f, (j * 10.0f)); DrawModel(myModel); } } I noticed that if I have only one model in view (the camera is zoomed way in) or I show the entire grid of objects the time elapsed between frames does not change. The time elapsed between frames does change if I increase or decrease the number of objects drawn though. This leads me to believe that the framework is drawing every object whether or not it is visible. ...Show All
Visual C# <example><code> documentation tags go nowhere
<summary> tags appear in the object browser when I compile with the /doc flag. But <example><code> never show up anywhere! How can I get it to show in the object browser Cheers. The <example> and <code> tags are not currently consumed by any VS tool. The schema that is used for xml doc comments is unbounded; the only requirement is that the XML ultimately be well-formed. On other hand, there are 3rd party tools that make use of the tags that are recommended in the C# language specificifaction. There is currently no way in VS 2005 to make object browser show this additional information. I'll pass along the request :) Anson Horton Visual C# IDE PM ...Show All
SQL Server Cannot connect to the SQL 2005 Express
I created test project and want to use SQL 2005 database inside. 1. I created Test database with DEFAULT rights 2. I go into server explorer, press Add Connection. Shows message box for connecting to the server: <PCNAME> using windows authntification. But NO database allowed to view :(. Which setting should be set for SQL server database to i could connect and work with it In Visual Studio, click Connect to Database in Server Explorer. Under Choose Data Source, select Microsoft SQL Server. Under Data Provider drop-down list, select .NET Framework Data Provider for SQL Server and click Continue. On the Add Connection window, in the Server Name drop-down list, either you type .\SQLEXPRESS or select it in your list ...Show All
Visual Studio Sandcastle - How to prevent generation of C++ and VB syntax?
Hello, Is there a way to prevent generation of C++ and VB syntax Thanks a lot! Jose Hello, Thanks it works. The only thing to be aware of is if using "Sandcastle Help File Builder", update the config file under C:\Program Files\EWSoftware\Sandcastle Help File Builder\Templates. Jose ...Show All
Visual Studio 2008 (Pre-release) Reliable Messaging and custom transports
Hey, first i got to ask if anyone happens to know of some sort of step-by-step tutorial for implementing reliable messaging Then on to my question... I'm doing some request/reply-communication over mail, and want to add some reliable messaging. The plan is that the client sends a mail to the server, with the message supposed to be sent AND the CreateSequence piggybacked on it. The server then replies with another message piggybacking both the CreateSequenceResponse and SequenceAcknowledgement. Finally the client sends an TerminateSequence over mail to the server. (This should work, right ) The big problem is that when my Proxy calls Channel.Request(), the message I get is a CreateSequence instead of the message i sent over Proxy.Request() ...Show All
.NET Development Cannot make editions with XPathNavigator (CanEdit==false)
Hi I have problems with XPathNavigator. It's not editable. I dont understand why. I load a table from SqlServerExpress into a DataSet. This dataset is used when creating a XmlDataDocument. And this document Im using to create a XPathNavigator. But the XPathNavigator.CanEdit is false. Why :( I want to edit/add using XPathNavigator, and then have the datatable synchronized with the database. After applying stuff with the XPathNavigator, I call "AcceptChanges" on the DataSet to have the database updated as well. This should work, shouldn't it " SqlConnection con = new SqlConnection(@"Integrated Security=SSPI; Data Source=(local)\SQLEXPRESS; Initial Catalog=TestDB"); con.Open(); SqlCommand com = con.CreateCommand(); ...Show All
Visual C# Call Java from c#
Is it possible to call Java code from a c# (or any other .NET programming language) application I dont want to fork it as a separate process (with a call to batch file or something) but want to call a Java API method which returns some data to be processed again in the c# side. Is there a way to do it Appreciate any help ! Yes... It is common for most of the languages right When we do some changes, inorder to reflect them we have to go for a rebuild.... Either you can build each project individually or combinely. Suppose if u have more than one project, the first project depends on the second project. Then right click on the second project and select the option "Set as StartUp Project". Anot ...Show All
Windows Search Technologies Deleted items still showing up
How do I get deleted items (email inbox, deleted items, sent items, etc.) to stop showing up in the search results. For example, I recently deleted a file from my inbox. It was in my deleted items folder until the end of the day when I rebooted my computer. My Outlook settings delete all files in the deleted items folder upon exit. The next day I do a search and this file shows up in the index in two places - the inbox and the deleted items folder. It is in neither. It does not exist anywhere anymore. Is there a setting to take deleted items out of the index ...Show All
Visual Studio Team System Is it possible to prevent check-in if a certain field in a work item is set?
I have a customised work item called Development Task. I know that there will be certain code developments that are very complex and others that are not. So, I have a field in the Development Task work item called "Review Required" with allowed values of "Yes" or "No". If the value is "Yes" I want check-in to be prevented unless a field in the work item "Reviewed By" has been filled in or alternatively the check-in process has, for this check-in only, made the check-in note Code Reviewer a required entry. For any other Development Task where the Review Required field is "No", then the developer can check-in as normal. I realise that this may not be possible and would certainly req ...Show All
.NET Development Short Cut to my application running in the System tray
Hi I have an VB.Net application running in the System Tray and I have a function in the appln. I need to invoke the function irrespective of the application which is active by assigning a global shortcut or a hotcut key. How to assign a global shortcut or a hotcut key. Hi, This is your desired solution.. http://www.dotnet2themax.com/ShowContent.aspx ID=103cca7a-0323-47eb-b210-c2bb7075ba78 Follow the instructions given carefully in this article, it will solve your purpose. Just one thing you need to take care is, in "WndProc" method mentioned in this article, write this.YourDesiredMethodOnGlobalHotkey(); instead of this.Activate(); I have tested this and works perfectly. Take care that you dont us ...Show All
Visual Studio Express Editions Rotating text on output of printer?
Hi! I am making this small application for my company that is basicly just for filling out a pre-printed form. Here's what i use to do the printing on the paper Ah, I have tried to play around with all kinds of different settings. But it seems like if i change for example e.Graphics.DrawString(TextBox2.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(65, 137, 74, 20)) to e.Graphics.DrawString(TextBox2.Text, TextBox1.Font, Brushes.Black, New System.Drawing.RectangleF(665, 137, 74, 20)) And set the printer to print in landscape mode, i don't get anyting printed on the paper. The printer acts like its going to print but it's just blank. If i set the y-parameter to a lower number it prints, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D - Draw points on screen
Hello, I'm experimenting with a 2D space-shooter type of game and need to implement a starfield. To that end, what is the easiest way to draw a single pixel on the screen I'd like to be able to do this using normal (positive only) display coordinates (ie: 0,0 - 1024,768). I'm not familiar with cameras/matrixes/transformations but I'm hoping I won't need all that just to do something as simple as this seems to be. Thanks! -newbie Thanks for the response. I forgot to mention that I read that article and even toyed with the code for some time. The method it employs uses a 3D coordinate system and cameras/transformations/projections etc. Can't this be done without all of that added complexity I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using source codes
I just downloaded the Quake 3 source code and was wondering how to import it into this program. This is just my opinion, but if you really want to port Quake 3 into XNA, it would be best to start at the beginning with XNA. Get familiar with XNA via creating your own games (remembering to start small like Breakout/Tetris and then expanding up into 3D FPSes and the like). Even then, Quake 3 is C/C++, so there probably won't be any direct "import" that you can do since XNA GSE uses C#. So, more than likely, it would be an intensive process of porting not only from C/C++ to C#, but also the framework they used to XNA. IMHO, I think it would be more valuable at the start to simply develop your own games. ...Show All
Visual Studio Express Editions Sending Notification using Windows service
Hi, I am new to windows service. I have the following requirement. I am developing an distribution software application . In this application customer sends request for quotation to purchase items. My idea is to notify the user when ever new quote is requested. My windows service should notify it like the outlook email notification at right buttom of the window. Any idea or code is helpfull.. Thanks. Windows Service is different than a Client application, the service stays in the background with no interaction with the desktop. You need to build a Desktop client (GUI) and interact with the Windows service and some how get an alert from it (like raise event) and then show this icon in ...Show All
