Annihil8's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Collision detection - Howto
Hi all, I'm trying to make two objects collide in GSE, actually in a Pong game - between the bat and the ball. I have motion for both, but no collision, the ball just leaves the stage so to speak. Any help would be appreciated. I have looked in the Help, but to no avail. What about the "ball", do the built in bounding boxes work for other objects, can you put a "box" around a triangle or would it still be a box shape thus not giving you accurate results ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting 133 Errors In Coding4Fun Tutorial
I get 133 errors when trying to do this tutorial! <a href="http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx">Link To Tutorial</a> Here are the 1st few, maybe they will let you know whats going on... Error 1 The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Application Data\Temporary Projects\BattleTank2005\DirectX Support\dxmutmisc.cs 12 17 BattleTank2005 Error 2 The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Appli ...Show All
.NET Development how to know event is added or not
Hi, I m adding event runtime like Text1.Validating += new CancelEventHandler(Text1_Validating); how would i know whether this event is added or not on basis of that if want to add some code in else if that event is not added. tats There should never be a case where your event handler would not be added. Delegates (events) just keep track of who to call. In the very unlikely case that a delegate could not add your handler then they are expected to throw an exception. I have never seen a case where this would or could occur though. Therefore it is a safe assumption to say that the call would never fail (assuming that Text1 is valid of course). Michael Taylor - 10/5/06 ...Show All
SQL Server Programatic creation of SSIS packages
I am playing around with creating packages using C#. One major problem I have run into is controlling the location of the tasks I create in the package. I have found no way to access any properties to set this. Does anyone know how to do this Dave, I don't think the ability to define tis exists in the API at the moment. if you think it should then ask for it at Connect ( http://connect.microsoft.com ) I recommend you take a read of this though: Extended properties... ( http://sqljunkies.com/WebLog/knight_reign/archive/2005/01/13/6247.aspx ) -Jamie ...Show All
Windows Forms HOWTO: Handle Enter Key in TextBox When Default Button is in Effect
VS2003 I'm trying to handle the enter key in the KeyPress event of a text and setting the e.Handled to TRUE; however, the default button is fired instead. Any Ideas I did set the Multiline to TRUE which allows the textbox to handle the ENTER key properly; however the default accept button is still fired. ...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 Studio Tools for Office VSTO & Outlook custom regions
Hi, Is there any support for Outlook Custom Regions in VSTO 2005 SE I mean sample FormRegionStartup class like with Ribbon.... (and perhaps without needing to modify registry manually) I have tried to follow a couple of walkthroughs (both MSDN and from Outlook blogs) but I have a little successs. System.ArgumentException: The value entered for the DesignMode property is not valid. Enter a proper value. at Microsoft.Vbe.Interop.Forms._UserForm.get_Controls()} Message: "The value entered for the DesignMode property is not valid. Enter a proper value." ParamName: null is thrown when I try to access Controls collection in BeforeFormRegionShow(Outlook.FormRegion FormRegion) Yes ...Show All
SQL Server Why print zoom out in Reporting Service?
I make a Report,The PageWidth is 21.5cm,PageHeight is 13.9cm. before print ,On the Print Dialog,I select print is EPSON LQ 1600K, portrait , select Page size is 21.5*13.9(is define on myself).I click the Printview button,the view is wrong,is not 21.5*13.9 and portrait ,is like A4 portrait .Click Print Button,The Print Result is Wrong ,The table and font is zoom out. I try in the Reporting Service 2000 and 2005,the result is the same. Use ReportView in the Winform is right,use ReportView in the WebForm is wrong, Is the RsClientPrint ActiveX Control has Bug Add: On the Dialog,First I select print is "Microsoft Office Document Image Write ",set this print's property is like ...Show All
SQL Server Accesing Cube though Excel
Hi, I am trying to access the data in a cube built in SSAS 2005 using Pivot tables through Excel.I dont have Microsoft OLE DB Provider for Analysis Services 9.0 in my Excel. I have Windows XP Proffesional as my OS and Office XP. 1. Can I still access the cube data without having the 9.0 provider through excel. 2. If I need to have a 9.0 provider is there a document by microsoft which states that(My administrator wants it). 3. If I have to have Microsoft OLE DB Provider for Analysis Services 9.0 in my excel what are the compnents that I need to install and the steps that I need to take to make it possible, Thanks Install this add in http://www.microsoft.com/downloads/details.aspx FamilyId= ...Show All
SQL Server can't update view
Hi all , I have a problem to insert new data to a view which created from 2 tables. I am trying to so from run time Any help will be appreciated use an instead of INsert trigger for that. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual C++ Manifest problem
Hi, I have made an application under visual studio 2005 that use the SDL libraries. When I try to run this application in other pc where vs05 is not installed I receive an error. I read the msdn about these errors so I have used the Dependes.exe application to understand what kind of dll my application looking for. I copied the file msvcr80.dll how the dependes.exe wrote me but I got another error. Anybody knows why You can choose option 2 from that page (which will link to http://msdn2.microsoft.com/en-us/library/ms235291.aspx ). Follow everything from the section which starts from "Deploying Visual C++ library DLLs as private assemblies". ...Show All
Visual Studio Tools for Office Embed application into Outlook 2007
Hi, I've an application made with VS 2003, now I would like to embed it into Outlok 2007. Is there any way to make this possible Thanks. It could be inside the task pane or adding a new one (I think this is not possible), anyway what I would like to do is to make feel that my application form is inside Outlook and it's part of it in order to integrate more funcionalities, and not just a pop-up form. ...Show All
Visual Studio Express Editions To stop a Panel from Moving?
I am programming a game where you control a "man" through a series of levels. The only problem is if you press the "Up" key while he is moving up, he will go off the screen. The man is as panel by the way. I fixed my code so that the "man" wouldn't move off the left of right side of the screen. However, when I use the following code, The man will still move off the top of the screen. How should I fix this I would appreciate the help. Dim up As Boolean = True If e.KeyCode = Keys.Up And up = True Then Man.Top = Man.Top - 7 If Man.Top <= 0 Then up = False Else : up = True 'This code is not all in the same place in my project. Wayne. I have the same problem o ...Show All
Smart Device Development Threading - using variables declared on the UI.
Hi all, I have created a thread in my application, that performs many updates to the database, using the following method... WorkerSignOffThread = new Thread(BackgroundProcessing); WorkerSignOffThread.IsBackground = true; WorkerSignOffThread.Start(); private void BackgroundProcessing() { processingDone = false; InspectionManager.FillInspectionGoodAnswers(SelectedInspectionUID); processingDone = true; } ...but as you can see, the FillInspectionGoodAnswers() method uses a variable ' SelectedInspectionUID '. This variable was declared in the Form that declares and starts this thread - is this ok The thread seems to run and update the database ok, but I was under the impression that the threads couldn't use UI objects/controls/ ...Show All
Visual C++ Problems with Char*'s and LPCWSTR need help
I am trying to use the openregistrykeyex or openregistrykey function from the windows.h include file and I have the following code HKEY hKey = NULL; char * temp = "String" ; int len = strlen(temp) +1; wchar_t *wText = new wchar_t [len]; if ( wText == 0) return 0; memset(wText,0,len); ::MultiByteToWideChar(CP_ACP, NULL, temp2.c_str(), -1, wText,len); const wchar_t * test = wText; //long tempResult = RegOpenKey(HKEY_LOCAL_MACHINE, test, &hKey); long tempResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, test,0, KEY_READ, &hKey); Neither work and I can't understand the cryptic error codes if someone could help me unravel the error codes error code = Error 1 error LNK2028: ...Show All
