Space Support's Q&A profile
Visual C# How do I configure my VS.NET 2003?
I am new to C# and use VS.NET 2003. I tried compiling a small application code written in a book using this code at the C prompt: csc.exe /out: FirstCSharpProgram.exe FirstCSharpProgram.cs I got this message: 'csc.exe' is not recognized as an internal or external command, operable program or batch file. Can someone help me to solve this problem Thank you for the prompt response. I had tried adding the paths manually to the Environment paths earlier. At your suggestion, I have undone it and followed your instructions. I then tried to compile and build an executable file of the code by typing this code at the Visual Studio command prompt: csc.exe /out: FirstCSharpProgram.exe FirstCSharpPro ...Show All
Visual C# Shell Context menu (aka Win Explorer context menu) in my app?.. how?
Hi all.. I have for a time now tried to take advantage of some of the implementations the Shell32 api can offer regards to file management, mainly i have been successful. The one thing i have not been able to do is implement the explorer context menu in my applications. I want to be able to get the same context menu Windowns explorer shows, with all the addins that may include (eg. winrar-addin, sendto, openwith and so forth) in my application. I have found code for this in both C++ and som e VB like apps, but nothing in C#. I would be extreamly glad if someone who knows how to do this could post a small app where this is done or perhaps post a link to a site where this information can be found!! If its still unclear what i mean: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question on generating the planes for BoundingFrustum
I was porting my Frustum class from Direct3D 9 and decided to compare its output against that of XNA's. To my great surprise, when generating the planes, every number was the same except XNA's are negated. When looking at BoundingFrustum in MSIL I noticed you negate the left operand and perform the opposite operation (i.e. add instead of sub). I am curious why it is done this way Does it have something to do with the fact that XNA is using RH matrices My D3D9 frustum code for the left plane: m_vLeft . a = mat . _14 + mat . _11 ; m_vLeft . b = mat . _24 + mat . _21 ; m_vLeft . c = mat . _34 + mat . _31 ; m_vLeft . d = mat . _44 + mat . _41 ; D3DXPlaneNormalize (& m_vLeft , & m_vLeft ); The XNA frustum ...Show All
SQL Server MDX to locate data on a higher aggregation from a lower aggregation
I think I have a strange problem with a cube. The problem does come from the source data provider, but since there are no means to change that, I have to live with it and make the best of it. Let me try to describe my situation: I gather data on two levels, two different grades of aggregation (for me: Groups and individual lines). On the higher level, I see an exact amount of time (<-my target), on the finer one I only have a sum of my target value and another time span. I also have counts of members on each level. What I need to do is "split up" the sum value I have on the fine grain level according to distribution on the higher granularity level. Does MDX provide a way to "look up" one aggregation level fr ...Show All
Visual Studio AsyncRendering in ReportViewer
I have a report that has 11 pages, When i have the Asyncrendering option to true, I can navigate to the all the pages. But when I set the Asyncrendering option to false, the first page displays but on clicking the next pages I get a page navigation error. I wanted to know what this option really does. When Asyncrendering option is true, I believe it has to get the whole report - all the pages, but when asyncrendering is false, how do you tell the report viewer to get the next page. I saw that there are page navigation events on the report viewer but don't know how to code for them. Any help/suggestion is appreciated. Thanks When you say that page navigation doesn't work, can you be more specific Do you get an error message Is it ...Show All
Windows Forms Accessing a form's controls from another form
I added a AboutBox1.cs form to my project, and I want to change the label properties(text) at runtime. How do I get access to those controls from within frmMain I did something like this: I added an new about box form/class to the project, then I typed: Form frmAbout = new AboutBox1.cs; frmAbout.labelProductNam... //doesn't pop up Hi, this tutorial may give you a good place to start: http://themightycoder.spaces.live.com/blog/cns!EBFBA22CD769E10B!144.entry Mark. ...Show All
SQL Server SP2 Slows Down Time Intelligence
Can somebody else verify that performance decreases in SP2 where time intelligence is concerned. Below is my simple repro on AdventureWorks. I already have an open question in a prior thread to ask why [Year to Date] is so much slower than [Current Date] where fiscal semester [2004][1] is concerned. [Current Date] runs in 2 seconds after clearing the cube cache. My question for this thread is why did my [Year to Date] query go from 1 minute in SP1 to 2 minutes in SP2 Does anyone know how to get the 2 second execution that I would expect from a [Year to Date] query Step 3 below runs in 1 or 2 minutes depending on if you have SP1 or SP2 Step 4 runs in 2 seconds 1. Create Time Intelligence Select Ti ...Show All
SQL Server RB - Multiple Data Source for Report Builder
I add two data sources to the designer. Create a new dsv using one data source first. Then right click in the designer to add a new table. This time I use the second data source. When I create a Report Model and run it, an error occurred: "Message: Invalid object name 'dbo.tblTrade'. Command: SELECT COUNT(*) FROM [dbo].[tblTrade] t" It does not recognize the second data source. Look at the property of the dsv, it only points to the first data source, not the other one... By creating a named query can overcome the single data source limitation. ...Show All
Visual Basic System.Drawing and Scaling
I've been experimenting with graphics and I want to scale image up and down. I've done this with graphics and scaling transforms and I have a problems. The resuls are beautiful interpolations but that not what I am looking for. In its displays, Photoshop displays pixels, not magnified interpolated contents. As best I can see and guess, in Photoshop when you are looking at an image displayed as 200 percent of its original size, it's look to me as if one pixel is replaced by four identical pixels (two on a side). Is there a way to do scaling in this manner instead of all the interpolation Spidermans_DarkSide, you are always free to reply to any question you want. If the original poster doesn't like it it is up to them to i ...Show All
Visual C++ Solving Problem using Recursion in C++
Given a 2^n by 2^n checkerboard with any one square deleted, it is possible to cover this board with L-shaped pieces. For example, a 4x4 checkerboard coudl be covered like this. w w u u w t t u j t e j j e e you shall represent the checkerboard ising a dynamically allocated 2-D array. The user shall give you the value of "n" for the 2^nx2^n matrix. The prototype of the recursive function that you'll write is given below: void LRec(int row, int col, int** array, int size, int ptx, int pty); ptx and pty indicate the row and column indices of the space in array that shall remain filled with . #inclu ...Show All
SQL Server Connections in Pool Not Being Reused
I have a form that has a number of database calls. It does these sequentially. In some cases it's not possible (due to archetecture more than anything) to make these calls all on the same connection. However it does open then close the connection. (all connections created are in using statements) What I'm seeing is that we're getting a timeout when the 100 connection limit is hit. Looking at Activity Monitor I can see these connections growing and growing over time in the activity monitor the more windows you open and close even though these connections are closed. (and they all use exactly the same connection string) I read that it might be because of SQL Debugging being turned on in vs.net, but that is not enabled in either debug o ...Show All
.NET Development TableNewRow event doesn't fire
Any idea why the TableNewRow event doesn't fire in an example such as the following DataTable dt = new DataTable ( "Test" ); dt.TableNewRow += new DataTableNewRowEventHandler (dt_TableNewRow); OleDbCommand cmd = new OleDbCommand ( "SELECT * FROM ... ", _connection); using ( OleDbDataReader r = cmd.ExecuteReader()) dt.Load(r); Kind of annoying, as I'd hoped to use this event to keep track of progress as data trickles in. The query takes about 20 minutes to return all data, due to a slow network connection. I'd really like to be able to keep the user informed as data accumulates. Any other suggestions Please use RowChanged event for DataTable.Load( ...Show All
Visual Studio Team System Clustering Plus Log Shipping for Maximum Uptime
Excuse any callow statements or questions, as I'm not an expert in the MSSQL domain (some would argue any domain). For some reason unknown to me, we are unable to "cluster" on a duel site. Meaning even if we have a "cluster" in place, we still have exposure if a site goes down for some reason. So during architecture review three proposals were discussed. 1) SQL clustering on one site. From what I can tell this is what the TFS install instructions recommend, but we'd have to accept the risk of being on one site. 2) SQL log shipping with one database server on site 1 and one database server on site 2. Basically utilize log shipping technology to ensure site redundancy instead of cluster technology. 3) SQ ...Show All
Visual Studio Prevent control from showing in toolbox?
I have a C# control library (Windows.Forms controls) containing several controls. Some of these controls are base classes I don't want the user to have direct access to. I would like to prevent these base class items from showing up in the toolbox when the library is added to the toolbox via 'Choose Items...'. The question, then is how does one prevent a control from appearing in the control list when the library is added to the toolbox (I have no problem supplying custom bitmaps for the items I DO want displayed.) Thanks, Carlos. Someone actually tried to tell me this earlier but I didn't understand... must not have had my coffee. ...Show All
Visual C# How to populate xml file
Hi, I am new to populate xml file. My xml configuration file is as follow: <% @ Page Language ="C#" AutoEventWireup ="true" CodeFile ="MainTreeView.aspx.cs" Inherits ="MainTreeView" %> < html > < body > < form id ="frmReport" runat ="server"> < asp : TreeView id ="ReportTreeView" runat ="server"> < Nodes > < asp : TreeNode Value ="Report" NavigateUrl ="main.aspx" Text ="Report" Target ="Content" Expanded ="True"> < asp : TreeNode Value ="EOW" Text =&quo ...Show All
