veloce's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Moving character against moving world
Hello, I'm building my first D3D game, a clone of Lander (the user must land off on a specific portion of ground with a maximum speed set instead of crashing) I'm wondering what is the best way : 1. Make the land module center of the world, camera looking at it and moving the ground mesh 2. lock the position of the ground and move both land module and camera accoring the user input. What are pros and cons about these two manners What about other games I'll build a day Thanks in advance. Steve Thanks all for your answers. I start thinking it depends on the game. As a beginner, I'm building a simple "Lander" ...Show All
Visual C# Nice Threads!
I could really use some help here... I am using C# 2005 and have created a splash screen that runs on a seperate thread. I can invoke the splash screen in the Main() method, but then I can't get rid of it! I am attempting to put a line in the Form1_Load (or maybe Form1_Shown) that calls a static method in the splash screen to close that form. But, when I do so, it complains about an invalid cross-thread operation. How can I get this screen to close Here are the relevant parts to my splash screen: // Static Public Method to launch Splash Screen static public void ShowSplash() { if (ms_frmSplash != null) return; ms_Thread = new Thread ...Show All
Visual Basic Best method for exporting a DataGridView to Excel
I have a datagridview(DGV) which contains data based on a user selections from a pre-defined dataset In point form: User starts program program builds datatable user opens file and program read all data from file into the dataset.datatable user defines the data they want to see program displays datagrid based on dataset.datatable and user choices. (basically it displays the whole dataset and removes unwanted columns\records) I want to be able to export the datagrid to excel (not sure which method yet). I have tried the excelexporter component i found somewhere on the msdn forums (it exports the data to look exactly like ...Show All
Visual Basic run program without logon windows
hi, I have a tray application ready to running when windows start but this only happens when a user logon windows. (adding to registry key) How can I start the program whitout user logon windows (when computer is locked) Thanks. If you are not against the idea of losing your tray icon (or having the tray icon be located in a separate application), you may want to look at building your core application into a Windows Serivce . ...Show All
.NET Development Whats .net framework?
My computer downloaded .net framework 2.0, what does it do Just in case you're not a software developer; .NET Framework is basically a set of tools developed by Microsoft that is required by some new applications to run. You won't really need to worry about it. ...Show All
Visual Basic Serialization question
' Sender's end. Public Structure Chat Dim fromPlayerID As Integer Dim toPlayerID As Integer Dim Message As String End Structure Sub Main Dim C as Chat C.Message = “Test” SendData(“CHAT”, C) End Sub Public Overloads Sub SendData(ByVal pHeader As String, ByVal pData As Object) Dim packet As New NetworkPacket Dim data(30) As Byte Dim st As Stream = New MemoryStream(data, True) Dim sw As New StreamWriter(st) sw.WriteLine(pHeader) &nb ...Show All
Software Development for Windows Vista Can you and How do you get two mouse pointers
Hi! Is it possible to have multiple input devices in vista, i.e. connect e.g. 2 or more mice and have them used at the same time with 2 different mouse pointers that can interact with different windows at the same time What I want to achive is something simmilar to this for X windows, http://multicursor-wm.sourceforge.net/ Hi, me and a freind hooked up two mouses or should i say mice to my computer. We were both able to move the one mouse pointer. It is posible to get two mouse pointers on the screen at once and we can control each one Have a nice day everyone ...Show All
Visual C# How to import a dll made in C++ Win 32
Hello Everyone, I have a dll which is made in Win 32, as it is not an assembly neither COM can't be used as a refrence, so I have to Import it.... Can someone tell me how to do it...As when i do it asks for the entry point and secondly how to call the functions from that dll.....A brief example will be highly appreciATED... Thanks, Harsimrat Thats simple.. u have to use System.Runtime.Interopservices in your main class: do this: [Dllimport("the dll path")] public static extern void nume_of_function(string t\his_params); Remeber that you have to adapt to c++ parameters.. ...Show All
Visual Studio Tools for Office Button is not getting removed after uninstalling the Word add-in
Hi All, I'm creating and installing a Word Add-in. The add-in creates a button on standard toolbar. When I uninstall the add-in the button is not getting removed. The add-in is the basic add-in from the link http://support.microsoft.com/default.aspx scid=kb;en-us;Q302901 as it is. The code in OnBeginShutdown is as follows: public void OnBeginShutdown(ref System.Array custom) { object omissing = System.Reflection.Missing.Value ; System.Windows.Forms.MessageBox.Show("MyCOMAddin Add-in is unloading."); MyButton.Delete(omissing); MyButton = null; } Can anyone let me know what am I missing I've even tried using oCommand ...Show All
Visual Studio Tools for Office Null values displayed as 0 in OWC Pivot Table
Hello, I am trying to access the cells in a pivot table but it wasn't successful so far. I tried to access the avtiveData cells property but also I couldn't. What I am trying to do is to display empty cells for data in the respective database null values. In fact, what the pivot table do is to display 0s place of empty cells for null values. This is not acceptable from customer point of view. Please let me know if you know how to display empty cells in place of 0s in the pivot table This would be part of Excel programmability rather than VSTO. For assistance in this area, check the Excel programming discussi ...Show All
SQL Server Sql Mail Configuration
Hi Guys I am using sql server sending mails through store procedure. so that how can i set sql mail configuration in sql server 2000 when i am click on sql mail it will be asking profile name. so can u explain me which name i have to give on that. when i create a store procedure by sending mails it's work fine in query anlayzer .when i excute that store procedure it will successfully excuted. but mail will be not reach in destions. Actually my theme is i have to send a mail on everyday night 8:00.sothat i have a created one store procedure then created a one job and set the time. it will some time excute some time does't excute. ...Show All
.NET Development Problem with web service that involve entity.
I have the following error when I call my web method which have entities as parameters or return value. What is wrong with my call I have no problem with web methods which don't have entities involved. All the related code are shown below: Thank a lot. Error System.ApplicationException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> There was an error generating the XML document. ---> The type Entity.eWarehouse was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadRespon ...Show All
Windows Forms Install clickonce application don't require Administrator roule but prerequisites yes !
I am deploy a clickonce application for USER machine in my organization. if my application need prerequisites like Crystal 2.0 I need to be adminstrator of the machine to install it, but the really application no. How can I work arround this problem I can not pass to 100 machine to install it by hands !! Giuseppe You are correct, the bootstrapper doesn't have any permission elevation capabilities, nor should it really. Just to clarify, the bootstrapper itself doesn't require administrative permissions, but the components it installs might. The solution for environments that are non-Admin locked down desktops is to use a deployme ...Show All
Game Technologies: DirectX, XNA, XACT, etc. about install XNA
I use winxp and vs2003 and after i install xna, i can't find " XNA Build Project" from my vs2003' Project Types, so i can't follow the Tutorial 1: Creating a Basic XNA Build Project How can i do, or how to install xna corrently.. Thanks 3600s, This sounds like a known bug I have seen in the Community Technology Preview which is due to your Visual Studio profile settings. From within Visual Studio 2005, click on Tools -> Import and Export Settings -> Reset All Settings. You will be given an option of saving your existing settings. After you follow the prompts you will be pre ...Show All
Visual Studio Express Editions MFC projects in Visual C++ 2005 ???
I just started up Visual Studio 2005 Express and attempted to create a new MFC project. But that's not an option on the New Project dialog. It shows some CLR project types, which is NOT what I want to do. It shows Win32, allowing only a Windows Console app. And it shows "Other Project Types", but lists no actual project types under it. So, how do I build an MFC application with VS 2005 Please don't tell me that Microsoft is simply abondoning MFC applications!!! If I have Visual Studio .NET (not 2003) and downloaded Visual Studio 2005 Express Edition, is it possible to compile MFC programs in 2005 using the ...Show All
