Software Development Network Logo
  • Game Technologies
  • Windows Vista
  • Visual C++
  • .NET Development
  • Visual Studio
  • SQL Server
  • Microsoft ISV
  • Visual FoxPro
  • VS Express Editions
  • Windows Forms
  • Visual C#
  • VS Team System
  • Visual J#
  • Architecture
  • Visual Basic

Software Development Network >> GaetanoDiGregorio's Q&A profile

GaetanoDiGregorio

Member List

Evan H
hakl
Amaeze
Tim Anderson
rchprog
wilrodmo
Eric-NZ
Anthony Wong - MSFT
quangphuong
brikshoe
Charles Chung
Shawn Steele
PravinD
CBurgett
joan10
mike101011
porters
EdwMad
CNU
Salmec
Only Title

GaetanoDiGregorio's Q&A profile

  • .NET Development Thanks to Paul Domag

    I am new to C# tell me how to take input from user of int variable in console.   Thanks Sure! I see you are not familiar with exceptions. In the .NET documentation you can find extensive information on exception handling. You can find it here . In short: exceptions are a way to handle errors. When an error occurs, exceptions can be  thrown in a method and caught in the same method or one of the calling methods. If an exception is not caught, you get the infamous 'unhandled exception' error. In your case, .NET throws an exception when the string cannot be converted to a number. In your ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. D3D: Transformations to World Coordinates

    Hello everyone I am making a game engine, which renders terrain. So far this is going well and it can render a whole plane of polygons based on a heightmap. I want a water effect - so i have decided to: Create a cube Place top of cube somewhere in between plane (will become water level) Place bottom of cube at bottom of plane Fill with water texture/colour. My problem is, creating a cube is tricky for me because of the transformations. My terrain coordinates (in local) range from 0.0f to 255.0f - and my transforms are as follows: Projection = Matrix.PerspectiveFovLH(( float )Math.PI / 4, Width / Height, 1f, 500f); V ...Show All

  • Visual Studio 2008 (Pre-release) The Digital Identity Control panel applet failed to start

    When I double click on "Digital Identities" icon I get the following error message: "The Digital Identoty control panel applet failed to start. Error: 0x80070002. Message: The system cannot find the file specified." I checked and the Infocard service was missing. The I ran the following command: installutil infocard.exe and I got the following error message: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>installutil infocard.exe Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved. Exception occurred while initializing the installation: ...Show All

  • SQL Server Connection option in MSSQL2005

    Hi, There is a setting in option-> connection -> 'Perform translation for character data' in Query Analyzer in MSSQL 2000. Is there any option in MSSQL2005 has simliar function Thanks in advance (stephanielauym@discussions.microsoft.com) writes: > There is a setting in option-> connection -> 'Perform translation for > character data' in Query Analyzer in MSSQL 2000. Is there any option > in MSSQL2005 has simliar function Thanks in advance There does not seem to. I had enough with character translation with the 6.5 tools, so I can't say that I miss it. What use would you see for such an option -- Erland Sommarsk ...Show All

  • SQL Server array as parameter for IN statement

    Hi, I thought TSQL of yukon would have a way of passing an array of values to a SP which can be used by it in an IN statment. ie: List<int> idList = new List<int>(); idList.Add(5); idList.Add(7); SqlCommand cmd = new SqlCommand("sp_Core_GetDetails"); cmd.Parameters.Add("@idList", idList); cmd.ExecuteReader(); ... SP would look like (fragment) select id, name from DetailsTable where id in (@idList) is there such a feature in yukon Here is the demo code in C# from MS: http://msdn.microsoft.com/library/en-us/dnsql90/html/sqlclrguidance.asp frame=true#sqlclrguidance_topic4b using System.Collections; using System.Data.SqlTypes ...Show All

  • Visual Studio Express Editions Sorting list in combo box

    I have a combo box list that starts at 16 and goes up to 255, however I can't seem to get it to list numerically. I keep getting the three digit numbers i.e. 100 to display in the list before 16 which is really the first number. Shakalama gave me some advice on a previous combo box question but not the answer to this. Sorry if it is a bit noobish but I'm new to programming and I'm trying to run before I can walk in some areas. Thanks in advance. Setting the sorted property will sort on the items property in alphabetical order not numeric order. Which is probably what you are seeting. You could make th ...Show All

  • Visual FoxPro empty field

    is there a better way of checking for empty fields than select *; from myTable; where field1 = " "; into cursor data1 i need to run a complete check on the database for empty records in every field. How would i check for a 'date' data field Mike This is what I found when I dumped dBase memo fields into .txt files: the lines do seem to get terminated with this pair: CHR(135)+CHR(137). They are ubiquitous. There is a chance the same thing might happen with VFP tables since the systems are very close. Also in some cases CHR(2) seem to get in the way as well. ...Show All

  • Windows Forms Method to set datagridview row background color

    Hi all, I had a datagridview. May I know how to set the particular row color of a datagridview to yellow Please help. Thanks Yes you can do this by using the following code snippet int RowIndex = 0; this .dataGridView1.Rows[ RowIndex ].DefaultCellStyle.BackColor = Color .Yellow; ...Show All

  • Visual C++ Strange STL ostringstream compile error with Visual Studio 2005

    I have just installed Visual Studio 2005 and am building a project formerly maintained under VC++ 6.0. The compile error I cannot fathom pertains to STL, specifically it appears to be related to my use of ostringstream. I believe I have isolated the problem to one of my header files where I use the ostringstream class. However, my use of this class is obviously limited to the public interface which is why the compile error below makes no sense to me. btw, I have already changed all header files to reflect the new C++ usage (e.g. <sstream.h> is now <sstream>) Here is the compile error: ********************************************* ...Show All

  • .NET Development setting the active row in a data table programmatically within VS2005 using visual basic

    Need help, I have set up a database and can access it easily with the tools for binding and creating gridviews or detail views that are supplied by Visual Studio 2005. I however need to write a bit of code that will allow the user of my application to enter a value in a textbox, that will allow the details view of that table to display, only the referred items, from the database. I have tried with the Me.DataSet... approach but I have insufficient information to handle the method successfully. Thanks for any help. lostInTheBitZone You need to get the BindingManager for whatever object you are binding to (DataTable, DataSet ...Show All

  • Windows Forms Open Form

    hi i have 2 forms  i want when i go from form 1 to form 2 form1 to be closed and form 2 appers when i do that all the appliction closes plz tell me what to do  The challenge here is that when you start your application, the message pump is activated around Form1 (see Application.Run(new Form1()) and when that form is c ...Show All

  • SQL Server Obtaining TCP/IP Port and Pipe name

    Hello All, Does anyone know how to obtain the TCP/IP port and the pipe name for an instance I would have expected to see these properties in smo.server.configuration or smo.server.settings. What am I missing here Thanks Rob Hi Michiel, That confirms my suspicions. Thanks for all your help regardless; I appreciate it. Cheers Rob ...Show All

  • Visual Studio Type of Document objects retrieved from DTE

    I'm working on a guidance package for a DSL, and one of the recipies concerns code generation. I have associated the recipie with the appropriate ProjectItems and everything is working perfectly. I can get the ProjectItem, load the referenced file as a DSL model and continue into the code generation. Then it strikes me that most often the user is going to have the file open already, so I can avoid the overhead of loading the model by simply finding a reference to the open file and using that as the source for the code gen. So I have the code below (the Execute method of an Action). It locates the correct open document, but ...Show All

  • Visual Basic Taskbar flashes when application starts

    Hi group, I wrote a VB.NET window application in VS 2005. It is running on WinXP SP2. When I start it running, the splash screen shows and then the applications main form shows. This is all correct. Then my application in the taskbar starts to flash orange. It flashes on, off, then on again. The applications main form then looses focus. I am having a problem finding why this is happening. Any suggestions Added comment - It seems that when I don't use the splash screen startup, this issue does not present itself. Dave     I will partially answer my own questi ...Show All

  • Architecture UI Design: Edit then List vs List then Edit

    Today I was thinking about the way I build UIs (List the Edit) and the way most people I know build UIs (Edit then List) and the relation that the way you build you UI has with the way you store the data you manipulate in you UI. So I wrote an article about that in my blog: http://luxspes.blogspot.com/2006/04/ui-design-edit-then-list-vs-list-then.html And would like to hear opinions about it... and perhaps get ideas to build some kind of framework on top of NHibernate that make it easier to manipulate persistent objects I "created new UI pattern names" to describe the different way a datamanipulating UI is tipic ...Show All

©2008 Software Development Network