Jonathan Keljo - Microsoft's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. directx as math library
Was wondering if anyone knows of any problems with using the directx library as a math library since there seems to be a lack of a complete math library included in visual studio c#. This is for an engineering app so precision is needed. D3DX is a very good maths library for graphics-related maths. Although, I'm pretty sure it uses single-precision floating point numbers. If you want double-precision you're out of luck. It's also worth noting that ( as with most of DirectX ) it's optimized for performance over accuracy - small losses of accuracy don't usually matter for games, so we don't complain! Bare in ...Show All
Visual Studio Express Editions Cannot install visual C# express edition
Hi, Hope someone can offer some suggestions as to why I cannot install C# express edition. I have followed all the installation instructions and just cannot not figure out why it won't install- have no firewalls, Antivirus, or unwanted services. I have a raid system- mirror and an eVga SLI vga card (I'm not using that feature). Wonder if that has anything to do with it. Any help will be appreciated. Thanx Sugi wrote: I have followed all the installation instructions and just cannot not figure out why it won't install You are going to have to be much more specific as you've said not ...Show All
SQL Server How to generate a report containing multiple single page reports
I am using SS 2005 RS. I am able to generate single page pdf reports by passing "id" as a parameter. Now I need to send multiple ids as parameter and generate one big report which would contain reports for all the ids supplied on separate pages. Is this possible If yes, then how do i do this. What I have tried so far is, I created new report with a list control and added single page report as a subreport to this list control and grouped this list control using id parameter. When i send multiple ids in the parameter, for example 3 ids, it generates 3 page report but only for the first id. So it generates report for the first id a ...Show All
Visual Studio Team System How to create additonal directories in output
I am new to Team Build and I am struggling to create additional directories in the output. To elaborate: By default team build drops all binaries in $BuildDirectory$\$ProjectName$\AutomatedBuild\Binaries\Release. I want to create something like the following directory structure in $BuildDirectory$\$ProjectName$\AutomatedBuild\Binaries : ├─── Binaries │ │ ─── dir1 │ │ ─── dir2 │ │ │ ─── subdir1 │ │ │ ─── subdir2 And I want to selectivly place binaries, and other configuration text files in these folder. Can someone suggest me how can I do that using teambuild. I will really ...Show All
Visual C# Constructing an ENUM from a simple ResultSet
Hi all, Is it possible for me to Construct an ENUM from a ResultSet returned from a Database. For example, I want the following ENUM... /// <summary> /// A list of all filter types, Status. /// </summary> public enum StatusFilter { All = 0, Open = 1, Complete = 2, Unfinished = 3 } Where I want this to be identical to what is returned from my Status's Lookup table, where I have four entries (along with their primary keys). Basically, what I want, is to be-able to filter rows in a ListView by clicking on a specific ColumnHeader on the ListView. So effectively I want to be able to cycle through the status' (o ...Show All
Windows Forms Implementing Keyboard support in windows forms
I need to implement functionality to support function keys(F1..F12) and shortcut keys(example Ctrl R) in windows forms.User will use just the key board to access and navigate the forms, User will not use mouse.If any one has any suggestions can you please let me know. Note:I tried KeyPressed events. it seems i can't capture the function keys or the modifier  ...Show All
Visual Studio Tools for Office Proxy Remote Object?
Dears, I have a class file containing the following code: Excel.Worksheet wsActive = (Excel.Worksheet)Globals.ThisWorkbook.ActiveSheet; ((Excel.Range)wsActive.Cells[1, 1]).Value2 = "Test"; I can retrieve the ActiveSheet object successfully (because I can get the ActiveCell location from the ActiveSheet object), however, I can't assign a value to the worksheet. ERROR : ((Excel.Range)wsActive.Cells[1, 1]) Cannot obtain fields or call methods on the instance of type 'Microsoft.Office.Interop.Excel._Worksheet' because it is a proxy to a remote object. Microsoft.Office.Interop.Excel.Range Is there anything missed Thanks, ...Show All
SQL Server URGENT: PARAMETER ISSUES WITH SQL TASK
I have read all the post about passing parameters from sql task in and out and have tried them all with no anvile. Frist of, they are too many types to deal with now, db types, SSIS types. Why the hausl. Can we make data type flow a bit more easy. Well, enough about the complain. I have been trying to dynamically set my sql query statement for my datasouce component using a variable set by a sql task. The tried a couple of methods. Method 1 Using sql task, ole connection and stored proceduer( exec usp_mystoreprocedure OUTPUT) with output parameter (User::sql_query out varchar 0). My stored procedure generate a sql statement as nvarchar an ...Show All
Visual C# Missing SQL Server Project Template
I cannot see a SQL Server project type under C# in the new project dialog, but can only see this under Visual Basic. Do I need to add this to the IDE or is there some other problem If I need to add it please list instructions. Thank you. Hi Lettia, I am just checking to see how this is going. I agree with Sergey's suggestion, it seems to be broken installation. Please drop me a quick note at your convenience to let me know the current status of this issue. If you have any concerns, please do not hesitate to let me know. Thanks, and have a great day! :) Best regards, Peter Huang ...Show All
.NET Development Looking for an absolute definition of "Local Time"
The expression "Local Time" is thrown around a lot in the MSDN documentation. When it is defined, this is the standard definition (example taken from the documentation for TimeZone.ToLocalTime) : Local time is the date and time on the computer you are using Is this absolutely always the case, with no ambiguity In particular, since the Start and End properties of DaylightTime are defined as being in "local time," does this mean that a DaylightTime for Pacific should return different Start and End values in Denver than in Boston (requiring a time zone conversion be performed on the very structure that supports time z ...Show All
Visual C++ Debug Assertion Failed
Hi I have just got our main C appilcation which was developed under Visual Studio .Net 2003 ported/compiled/run successfuly as a release build under Visual Studio 2005. However when I try to run the debug build I get the following: Debug Assertion Failed Program : myapp.exe File : f:\rtm\vctools\crt_bld\self_x86\crt\fstat64.c Line 64 Expression (_osfile(fildes)&FOPEN) I have degugged it to the following function and the fstat call within it: int get_file_size( char *filename) { int fh; struct stat info; fh=open(filename,_O_RDONLY); if (fh==-1) { error_handler(10,TXTOPE, "" ); re ...Show All
Visual Studio Tools for Office Excel Constants
Dear all, I can get the maximum limit of Excel (vary on different version) by using, e.g. Rows.Count and Columns.Count), and I'd like to know how I can get the maximum number of character per a formula (E.g. 1024 for Excel 2003), or more generally, how I can get all Excel build-in constants Thanks, AFAIK, it does have a limit (everything have a limit :) For example, we can enter a very very long formula in a Excel cell, otherwise, a "Formula is too long" will be thrown. Moreover, there's a 255 characters limit per argument for an Excel function/UDF. Try it out and what I'm looking for now is to re ...Show All
.NET Development Connect to internet from my Application
Hello: I'm working in VS2005-C# and I have an application which connects to a web service. I'm looking for some managed code approach to check if the computer is connected to internet and if not connected start a connection. My idea is to avoid the user the work to go to Dial-Up connectios and start the Dial-Up assistant by hand. So far all that I've found is by using API calls to wininet.dll. Is this the only one solution or there is some managed approach(meaning Framework classes doing this) Thanks in advance ...Show All
SQL Server Secure Social Security number in my DataBase
Hi, i have a data base in SQL 2005 and i it has many tables with confidencial information Like Social Security numbers, Credit card Numbers, etc. And i would like to encrypt this information or make something to make this info invisible to any hacker, or any person that logs on the server. Here are the limitations: 1 - I cant make any changes in the front end, so if i encrypt the data, I have to make all the modifications in the database, and if the front end needs some encrypted information, the database should dencrypt it. Any one has any idea Best Regards. The only true way to make things invisible to a ...Show All
Visual Studio Team System problems with shared checkout - merge tool is not available
I am having a significant problem with TFS version control that is making it very unusable in our development environment. We are allowing multiple checkouts. When two developers work on a file and check it in, the Merge option is unavailable and the auto-merge functionality is failing. This makes the product practically useless for projects that have more than one developer. Here is the scenario: TFS set to allow for multiple checkouts. 2 developers working on the same project. The starting point is that everyone has the latest version of a source files. Developer A edits a file and adds a simple comment line (keeping the probl ...Show All
