Elaine.Wong's Q&A profile
Visual Studio Express Editions some classes do not show up in class view
Hi, I have a workspace, consisting of 4 projects. Two of the four projects are missing some classes in class view. And when I go into the .cpp file, the "Functions in ***.cpp" appears to be blank. Does anyone have any idea why I even updated to Visual Studio Professional, but the problem remains. - xin Another option that sometimes works is, do a full clean of your project, including manually removing any non-source/project files, close the class view then restart visual studio, this forces the class viewer to rescan your source, but as i said earlier, if the source contains strange whitespace, anon-enums etc it can confuse the class viewer. If intellisense is continually updating, and providing ...Show All
Visual C# how to check the type of an object?
let's say i want to see if a control is of type checkbox ... if(control is CheckBox) { //do something } is this the right way or maybe CheckBox cb = control as Checkbox if(cb!=null) { //do something } thanks, C# has numerous ways to check and object's type, and there are many situations where one would need this. This happens because the code that has the reference to the object did not necessarily create it, and may not know what the object's exact type is. A common place where this this kind of code appears is in an override of the Equals method in a class derived from the System.Object class. The parameter you are passed is of type object, but you need to first check ...Show All
SQL Server Sometime Fail Render to PDF
Hi all. My name's Daniele and I'm writing from Italy. So please forgive me for my English :) My problem is: I make a Call to an URL on my Report Server an I invoke one report. The rendering of my Report is in PDF format and I specified it in my URL: My URL 'Url = " http://urano/Reportserver %2fApplicativi+Universo+Reports%2fArea+Test%2fIntesa+Vita+S.p.a.%2fLiq.+Sinistri+-+Dati+generali%2fSchedaLiquidativa " 'Url = Url + "&n_pratica=" + CStr(CAttivita.Pratica) 'Url = Url + "&rs%3aCommand=Render&rs%3AFormat=PDF" Sometime happen that the Report Server answer me with a classical window who ask me to open\save the file, but the file hasn't the extension. Example: my file usually ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What do I have to do?
What do I have to download to make a game! any help will be helpful! This all depends on what you want to use. I use the DirectX SDK and C# (Free : C# Express), Also take a look at XNA. These products are free and you can download them by going to the following links. http://msdn.microsoft.com/directx/ and http://msdn.microsoft.com/express/ You can also find a nice collection of tutorials and resources on the following sites. http://www.mdxinfo.com http://www.thezbuffer.com http://www.gamedev.net http://www.virtualrealm.com.au/blogs/mykre/ I hope this helps. Take care. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Advice on Controller Vibration
Hello, I am looking for some guidance on best practices for vibration effects. I don't want to ruin anyones hardware or burn out motors by using settings that aren't friendly to the controller. I have a couple of questions: 1) Is it acceptable to use "pulsed" effects by calling GamePad.SetVibration() every Update() to change slightly change the motor settings, creating the feeling of "punches." 2) Can that pulsing include complete stops of the vibration 3) Is there any guidance on maximum suggested duty cycles for using the vibration (Not that I plan to leave it on much, but should I be intentionally limiting the duty cycle if the player engages in non-game behavior like punching all the time for 10 minutes ) 4) Is the ...Show All
Windows Forms Validate Field - Help
Hi, I am stuck... 1. Can I declare the OLEDB Connection in class or just within the button 2. I validate empty fields first, then with the login database. The open connection is supposed to be placed where ----------------------------------- public class LoginForm : System.Windows.Forms.Form { private System.Data.OleDb.OleDbCommand oleDbSelectCommand1; private System.Data.OleDb.OleDbConnection oleDbConnection1; private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1; private System.Windows.Forms.Label labelID; private System.Windows.Forms.Label labelPwd; private System.Windows.Forms.TextBox txtUserID; private System.Windows.Forms.TextBox txtPassword; private System.Windows.Forms.Button btnLogin; private System.Windows.Forms.Button b ...Show All
SQL Server Creating a DECLARE variable with SMO
How can I create this stored proc with the SMO StoredProcedure class It doesn't want to work and I think it has something to do with the DECLARE statement. Anyone know how I can get this to work Cheers Jon storedProc.TextBody = "DECLARE @GroupID int" + "SELECT @GroupID = GroupID FROM Groups WHERE (GroupName = \"Administrator\")" + "INSERT INTO gworkshop.Users" + "(GroupID, Username, Password, Active, Deleted)" + "VALUES (@GroupID,@Username,@Password,@Active,@Deleted)" ; I'm not in work right now so can't paste the code but basically its creating a server then the database name then in the storedprocedure I add parameters ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BoundingBox
Thanks to XNA, my fragile vision of 3D space is completely mangled. This -1 forward thing has really whacked my ability to determine coords in 3D space. I'm making a bounding box for a ray test, and I want my minimum to be (-1, -1, -1) and max to be (1, 1, 1). In MDX 1.0, that would have been fine. Do I have to reverse the z coords for this to work in XNA I have no idea what you are talking about. XNA has a BoundingBox structure and a Ray structure, and the Ray structure has an Intersect method to check for an intersection with a BoundingBox. Reference: http://msdn2.microsoft.com/en-us/microsoft.xna.framework.ray.intersects.aspx ...Show All
SQL Server Comparing millions of records from file A and B
I'm trying to compare about 28 million records (270 length) from table A and B using the Lookup task as described in this forum. The process works fine with about two million records or so on my desktop ( p.4 3.39GHz, 1.5 GB Ram), but hangs with the amount of data I'm trying to process. I tried using full and partial caching, but to no avail. I'm thinking this is a hardware resource problem. So, does anyone has any recommendation on the hardware needed for this kind of operation and/or suggestion Thanks in advance... What are you interested in The "failures" or the "matches" Try "tossing away" the data that you dont need so you can free the resources. How many Rows a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Component Question
After I add a component to the project, how do I get it to apper in the toolbox The edit function doesn't seem to want to work, so I'll use reply... I know it automatically adds it when you add a new component. When I add a pre existing component, it does not. How do I get it to display, so I can use my components across multiple projects. ...Show All
Visual Studio Tools for Office RTD server as exe file
Hi all! We've got a C# client that fetches data from the netword and presents it in its on GUI. This works fine. Now we would like to make the same data that it fetches available in Excel as well, through IRtdServer and RTD()-calls in Excel. I've managed to create a simple DLL (from the Microsoft RTD examples) that is registered with regsvr32 and is available from Excel. So this works fine as well. Now I would like to enhance the exe-application we've got by making it into an IRtdServer as well, and I've naively just added the classes I implemented to make the DLL to my exe-project (and added the appropriate resources, so everything runs and compiles nicely). But I can't get Excel to find the new RTD server. The RTD()-call yields a #N/A re ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Rendering multiple viewports
Hello community, I've created a couple of components that allows you to render a 3d model in space, and it has a camera that allows you to move around in space. Right now, I want to be able to define multiple viewports with different camera angles so I can view the scene from different perspectives. I know it isn't quite hard to accomplish this with MDX, however I can't find any code on how to control the device using XNA. All help is very appreciated, thanks! Could you introduce a base class that derives from DrawableGameComponent and introduces the camera as a property I would recommend moving to Beta 2 ASAP as we'll be focusing on answering those questions rather than Beta 1 questions. ...Show All
Visual Basic Reusing Forms
Greetings I am converting a VB6 program containing multiple forms into a 2005.net VB program. In the old VB6 program I use a modal form and then I want to re-use the same form but but change some of the labels and make visible a control that was invisible the first time around. In the VB 6 version I was in, say, Form1 and executed the following code: Unload Form1 Form1.Show 1 This re-did the Load event and I used a counter to customize the form in its second life. Is there any way to do this simply in VS2005 VB Thanks again for the clarification. I wonder if I could trouble you with the current state of my problem. I have made some progress but... As suggested I created an in ...Show All
SQL Server Oracle's TO_CHAR, what in SQL Server 2005?
Greetings, In oracle i use the following sentence TO_CHAR(Table1.DateIn, ,'mm/yyyy') within a query. I need how to replace this for using it in SQL Server. I tried to use the SQL Server CONVERT function but nothing work. Could you help me Thank you in advance, Fernando ...Show All
.NET Development FtpWebResponse.getResponse SQUID PROXY TROUBLE
HI All! I'm going crazy. I've a simple application that needs to be connected to an FTP server. It works fine. My problem is this: System.ApplicationException: Unable to parse line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd "><!-- HTML listing generated by Squid 2.5.STABLE6 --><!-- Wed, 21 Feb 2007 08:09:10 GMT --><HTML><HEAD><TITLE>FTP Directory: ftp://myuser@myhosting.it@ftpdomain/ftpfolder /</TITLE><STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}--></STYLE><BASE HREF=" ftp://myuser%40myhosting.it:mypww@ftpdomain.it/area "&g ...Show All
