Software Development Network Logo
  • SharePoint Products
  • Game Technologies
  • VS Team System
  • Visual C++
  • Visual Studio
  • Microsoft ISV
  • Visual FoxPro
  • Visual C#
  • Audio and Video
  • .NET Development
  • Windows Forms
  • IE Development
  • Smart Devicet
  • Visual Basic
  • Windows Vista

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

rfsmason

Member List

pankajsparashar
Brad Smith
niallhannon
Nickeay
Gilles Lafreniere
sandipan
DodgySwampy
Lamar Miller
General Fault
Ravi Kanth Koppala
Oliver Berris
Yiftach
Shimer
Yaniv75
Sorcerer14
progames25
twaltz
mobigital
Reuomi
TrevorT
Only Title

rfsmason's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Best place to check input

    Hello everyone, I'm fairly new to XNA, but not to c#, .net or programming. I've created a couple of Hello World applications using XNA, and I am now working on my first game. The game has a small engine beneath it that has helper classes for textures, resources, sounds and so on .. The only scenario in my game currently implements the one that renders the menu. I'm using the update method to check for keystrokes to be able to select different menuitems. However, this method is called so frequently, it passes through all the menuitems with half a second. I'm going to time-out the keystroke processing, and I'd like to know what my best approach would be. I can't sleep the thread, and keeping the tickcount and check for differenc ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Enlarge a object from a .x file

    Hello! I am having a .x file that I use to load a Mesh. At run-time, the object is very small. I f run with the file with DirectX Viewer, the size is OK. I am using this method to load a mesh : private void LoadMesh( string filename, ref Mesh mesh, ref Material [] meshmaterials, ref Texture [] meshtextures, ref float meshradius) { ExtendedMaterial [] materialarray; mesh = Mesh .FromFile(filename, MeshFlags .Managed, device, out materialarray); if ((materialarray != null ) && (materialarray.Length > 0)) { meshmaterials = new Material [materialarray.Length]; meshtextures = new Texture [materialarray.Length]; for ( int i = 0; i < materialarray.Length; i++ ...Show All

  • Visual C# How get Graphics object a Panel

    Hi all, I am finding the way to draw an image on a panel. I have tried out the method that puts the drawing task inside overried onPaint() method and call invalidate(). However, my application need to do custom drawing depending on very different cases. Hence, forcing all drawing command in one method onPaint() is not flexible. I want to get the Graphics object of a panel ( as a member variable of a class) and then I can draw on it anywhere I want. I tried to get g=Graphics.FromHdc(myPanel.Handle) but there was an error saying myPanel.Handle value is out of range. I guess this is because panel's handle had not created. Would anyone please give me some example and hint on this issue Thank a lot! Regards, Stefen Huynh ...Show All

  • Visual C# Create a new object through the property grid

    My apologies if I didn't label this subject appropriately. I couldn't think of anything better to put as the title. I don't know if this is even possible, but I figured this forum would be the best place to find out:) I have a property: [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( typeof (System.ComponentModel. ExpandableObjectConverter )), Category ( "Inherited Physical Values" )] public Shapes. Shape Shape { get { return _shape; } set { _shape = value ; } } The Shape property is from a parent class, "Physical" and is inherited in many child classes. The Shape class is obviously an abstract class which has m ...Show All

  • Visual C++ Getting Started - Accessing the Visual C++ Express Edition

    I have downloaded the Visual C++ Express Edition. I have the files in my directory on the C drive. I am unable to access the software. I can not find an executable file in the Visual C++ Express Edition directory. There is also nothing on the desktop. Now that I have downloaded, can anyone tell me how to access the software. Any help anyone can give me would be greatly appreciated. http://msdn.microsoft.com/vstudio/express/visualc/download/ This page contains download link for file vcsetup.exe. After file is saved in local directory, run it. This is installation file which installs VC++ Express Edition. Internet connection must be opened while installation runs. For offline installation, use the follow ...Show All

  • SQL Server Reports rendered bad in Firefox...

    Because of some peculiar way of using CSS, the reports aren't rendered correctly in Firefox. I've tryed specifying different rendering options (html 4 for instance) but it didn't help. What are my options on this I could use Webservices (SOAP) and wrap SSRS in a proxy, but I'd have to parse reports and extract the data and build my own presentation layer. This way I'd be missing half of the SSRS functionality. Any ideas What does rendered bad mean specifically We are experiencing problems on the first column. The font is larger and borders disappears. We added a 0.03125in initial column, as a not perfect work around. ...Show All

  • SQL Server TNS Alias name changed

    Maybe somebody has asked this question, but I could not find it.... I used SSIS to transfer data from Oracle database to SQL Server 2005 (with Microsoft OLE DB Provider for Oracle). It worked fine with the TNS alias name said oracle1 . Then I changed the TNS alias name to oracle2 . I could connect to Oracle database with oracle2 using Oracle's tool. But SSIS could not find (or solve) oracle2 , if I changed the name back to oracle1 in SSIS, then SSIS worked. Any idea Thanks! Hi Phil: It is. I think my case was issued from computer more than from SSIS. Thanks! ...Show All

  • SQL Server accessing result of sp_tables

    When I run exec sp_tables it give me a "list" of tables in databases. In fact the result is a table where one of the columns contains the database table names. It is no problem to access it in a client application but I need to access that column and verify existance of a certain table in SQL Server's user stored procedure . So far anything I tried did not work. FETCH pertains to a cursor and I cannot declare a cursor for this command. The only thing I got so far was @@ROWCOUNT but it is of no use for me. Perhaps there is another way to verify if a table exists from inside a stored procedure . I have the same problem in terms of verifying existence of a user stored procedure from inside another user stored procedure but if I g ...Show All

  • Smart Device Development How can i use RTC API

    hi, I have visual studio 2005 . windows mobile sdks installed and also Wince 5.0 standard SDK installed.. suppose i want to develop one sip based application using those RTC APIs, how to proceed HI, Thanks for the reply. But i have tried with the initialize RTC example. the error is shown below How to link DLLs, and what are the DLLS and Headers requried ------------------------------------_____________________________________________________________________________________ #include "stdafx.h" #include <windows.h> #include <commctrl.h> #include <rtccore.h> HRESULT hr = S_OK // Use COINIT_MULTITHREADED on Windows CE ::CoInitializeEx(NULL,COINIT_MULTITHREADED); ...Show All

  • Visual C# TableAdapter

    I'm adding a new datagridview in a windows application and binding a stored procedure to it. However the SP accepts 2 parameters and VS has automatically added a this.rsp_GetStatsTableAdapter.Fill(this.AppDataSet.rsp_GetStats) line and I have no idea how to pass in the parameters. I've also tried editing the dataset designer to no avail. Any ideas Well programmatically, to pass parameters to the SP, this is how I would do it: SqlCommand theSQLCommand = new SqlCommand(" StoredProcName ") theSQLCommand.Connection = new SqlConnection(" ConnectionString "); theSQLCommand.CommandType = CommandType.StoredProcedure; SqlParameter param1 = new SqlParameter("@param1", SqlDbTyp ...Show All

  • .NET Development advantage of creating static methods

    Hello, Is there an advantage of declaring a method as static, even if it is a private method that is called only from within the instanced class For example: public class MyClass { public void Method1() { ///Do something Method2(); } private static void Method2() { ///Do something } } I'm asking this because I've installed R# on my machine, and it throws a warning on several private methods, saying that they can be made static... Thanks in advance, Matias As Hans pointed out, they are slightly more performant per call (although, the first call to a static method of a class may be more costly...). Another advantage, very specific, is lifetime. if an instance method (non-static) ...Show All

  • SQL Server Bulk Insert vs. Data Flow Task (different row results using flat file source)

    I'm importing a large csv file two different ways - one with Bulk Import Task and the other way with the Data Flow Task (flat file source -> OLE DB destination). With the Bulk Import Task I'm putting all the csv rows in one column. With the Data Flow Task I'm mapping each csv value to it's own column in the SQL table. I used two different flat file sources and got the following: Flat file 1: Bulk Import Task = 12,649,499 rows; Data Flow Task = 4,215,817 rows Flat file 2: Bulk Import Task = 3,403,254 rows; Data Flow Task = 1,134,359 rows Anyone have any guess as to why this is happening It seems that there's a factor of 3 in between the two components, which could mean that Flat File Connection Mana ...Show All

  • SQL Server Where to download SQL 2005 Reporting Service?

    Hi all, Can someone tell me where to download the SQL 2005 Reporting Service I looked all over the MSDN subscriber download site and could not find it. And I have the SQL 2005 developer edition DVD, could not find the reporting service in there either. Is the SQL 2005 Reporting Service now available only in the SQL 2005 enterprise DVD or something Thanks Thanks. My SQL 2005 DVD must be an old DVD or something... It has the SQL 2000 Reporting Service instead of SQL-2005 Reporting Service. ...Show All

  • SQL Server Unable to save query

    Hello and thanks in advance for any advice. I have an application being written in C#, the forms and such are used to show, input or otherwise manipulate data within the tables of the connected database. The database is an SQL Database File (.mdf) and has been created within the project. The problem is I need to create a form which uses the data of a query but when I create the query (right-clicking in the 'Server Explorer' and selecting 'Add Query') and after configuring it how it should be I choose save all and nothin happens, the query is nowhere in my DB or project and it wont even let me rename it in the properties window, before or after I save it. Basically this application is a replica of one I have written for college in Access(vb ...Show All

  • Visual Studio Team System Unable to cast to type 'Microsfot.VisualStudio....'

    After building a DB project (CTP4) against a SQL 2000 DB.. running some scripts.. etc.. I closed visual studio. When I went to open the solution again.. I get the following error: unable to cast to type 'Microsoft.VisualStudio.TeamSystem.Data.DBProject.DatabaseFieldNode' to type ' Microsoft.VisualStudio.Package.FolderNode'. ANy ideas That for sure is not a feature, we did see and fix a couple of the occurrances, but I would like to be sure yours is one of them. Do you get a exception dialig where you can choose Debug If so it would be a big help if you can get us the callstack dump in the exception. If that is not the case; it helps to know if you can repro this at will If so can you give us ...Show All

©2008 Software Development Network