Sniper167's Q&A profile
Visual Basic Capture line of an exception
How can i capture the line of an exception using Try...Catch try .... catch ex as SomeException MessageBox.Show(ex.Message & Environment.NewLine & ex.InnerException) end try this would get you the Message and the innerexception of the exception. Is this what you are after Look at the "ex" properties of the exception to access a list of properties that you can get from the exception class ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No ID3DX10Line?
I do not see any documentation for a D3D 10 version of ID3DXLine. Granted the DX9 ID3DXLine interface is a complete joke -- both in performance and quality, at least there is a way to get a few stylized lines in the 3D view. While games don't use stylized wireframe, this is a cornerstone for profession graphics packages (e.g., modelling and drafting). Current hardware supports accurately rendered, deterministic zbuffered, accelerated lines with widths up to 5 pixels wide. Common screen space dash patterns are sufficient for 90% of all display purposes. There are also several hidden line algorithms that only function correctly if the wide lines are rendered with correctly depth buffered Bressenham step patterns. Until Direct3D provides acce ...Show All
Visual C++ Which icon appears in the task bar?
First, I apologize if this is in the wrong forum (the "VS General" is to be shutdown). I have created in VS C++ 2005 a project with two icon types in the resource list: 32x32 and 16x16, both 16 colors. Thus, in Explorer (details view, large icons view, desktop, etc.) the executable is represented properly. However, when the program is running, the process tab icon in the task bar is still the generic Visual Studio icon. Which kind of icon is that and how do I create it (if it is more than simply different size/color depth). Thanks. Kamen Make that SM_CXSMICON and SM_CYSMICON . Bill ...Show All
Visual C# c# basic class creator
Hi Guys and gals, i'm been starting to get into c# just as a little project. So I created a little site that creates c# classes http://www.yourcomp.com.au/createclass.asp sooner or later I will fix it up to make it look nicer but i'm trying to improve the functionality alittle. Feel free to add any feed back on what I can do to improve it. It's somemthing to make my life easier when given a class diagram and needing it converted to basic code PS: at the moment it only has private and public members available. I've left the type as a text box to allow for user types as well if there is any. ...Show All
SQL Server SQL server 2005 table partition & Performance.
Hi all, My question is regarding the SQL server 2005 table partitions. The scenario: ============= I have tables A & B with table A having 1 million records and table B with 2 million records. When I run a procedure which has few computations involving tables A & B, the time taken for the stored procedure to return the result set is 55 seconds. Now, I partition table A based on a column which is used in the join condition within the stored procedure and then try the same query. Still, it takes the same 55 seconds and I could not find any time differences even after going for partitioning and placing the partitions in different file groups. Clarifications needed: ...Show All
Windows Forms Controls Collection
In VB6 when a control was part of the Controls collection of the form, even if the control was on another container (eg. a Tab control, picturebox etc.). In WindowsForms a control is part of the Controls collection of its direct container.So in order to iterate through all controls on a form you have to make a recursive method. However, a UserControl also has a Controls collection and exposes all controls contained in it. Is it possible to discern the controls that was added directly on a form, even on a seperate container, from the controls that are part of custom UserControls Look back at my example code and note how it can see whether a control is inside a usercontrol. The relevant statement is If TypeOf ctl.Parent Is User ...Show All
Visual Studio 2008 (Pre-release) XBAP Close with multiple threads
I have an xbap application where I create a worker thread (and a dispatcher for the thread) that runs for the entire time. Using the dispatcher.Invoke method, each thread (the worker and the UI) can communicate to each other. Everything works like a charm at this point. The problem comes when I try to exit the xbap application. It closes the window but doesn't terminate the process. I assume this is because the worker thread is still running. Two questions: what is the best method to determine that an xbap is closing and what is the best way to shutdown the the worker thread Thanks in advance! Code Snippet App.Current.Exit += new ExitEventHandler(Current_Exit); void Current_Ex ...Show All
Smart Device Development graphedit on WinCE
Do you know how I can get graphedit on WinCE Thanks a lot Rgds What's "graphedit" and why do you believe it's available on CE Is that some kind of sample on some other platform ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Native Direct3D or MDX or XNA?
I'm in the process of choosing 3D dev platform for a non-game desktop application. I've decided to use Direct3D (not OpenGL) because the application will be developed with C# 2005. I prefer to use C# instead of C++ Direct3D if possible. But I'm very confused of which is the right direction. Basically, the application renders 3D objects in a window and allows manipulation of those objects; it should be able to show different views of a 3D scene on areas of a printed page. Any suggestion is appreciated. Thanks. Wessam, Do you have any links / advice for doing this I'm looking into interfacing with a native D3D9 application using C++/CLI along with some C# wrappers. For ...Show All
Visual Studio Team System error 1402 installing virtual server 2005 R2
I have not found a Virtual Server forums.so I write here my question Istalling virtual server 2005 R2 on a Windows XP OS, I'am getting the error "Error 1402 could not open HKEY_LOCAL_MACHINE \Software\Classes\Msxml2.DomDocument.4.0\CLSID Verify that you have sufficient access to that key, or contact your support personnel". My UserId has admin rights so I don't think that access rights are the problem. Logged under the local admin account and tried again. Same error. I tried on un Lap top with windows Xp and all is OK. Why I need help please aurelio I'm going through and setting individual Registry Keys to permissio ...Show All
Visual Basic Shared interface member
Why can't interface methods be declared Shared in VB I have a controllerFactory interface that is used in a number of apps to dispense app sepcific controller classes for use in an app neutral framework. Currently I have to create an instance of the controller factory classes to invoke the GetController methods. Ideally I'd like to make this method shared and invoke it without creating an instance of the Factory. If I try to mark the implementation shared then Visual Studio shows the error "methods or events that implement interface members cannot be shared". If I mark the interface method as shared the error message is "'Shared' is not valid on an interface method declaration". Here's the interface definition: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex Animation help
Hi, I'd like to do some simple vertex animation on a model using a vertex shader, but I'm having an extremely difficult and frustrating time figuring this out. I've been looking at the content pipeline documentation, I've found the tutorial about the BBox processor and done that a couple times, I've written a C# converter for a custom mesh format I have to X and still I can't work out how to accomplish this. I guess conceptually I understand how the content pipeline works. I ran the X processor DLL that ships with XNA through reflector and just about had a nervous breakdown looking at all the classes in there. I write geometry exporters, importers, and deformers for Maya at my day job, so I like to think I should be able to do this, ...Show All
SQL Server Customizing report manager
I need to place a jpeg image of our company logo in the middle section of the Report Manager heading between the wording of "reporting services" and Home | My Subscriptions | Site Settings | Help I am using SQL Reporting Services 2005 with SQL Server 2005 SRV Pack 2 Can someone point me in the right direction This is not possible. Report Manager was not designed to be customizable. You can only edit the stylesheet (css) or replace some of the existing images (fixed size) by going to the installation directory and looking in the styles and images directories. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Get BasicEffect to draw wireframe
Is it possible to get a BasicEffect to draw wireframe I'm wanting a nice wireframe box around my models to show the bounding box. My code to draw a box around the object currently looks like this... BasicEffect basicEffect = new BasicEffect(game.Graphics.GraphicsDevice, null); basicEffect.EnableDefaultLighting(); //basicEffect.Texture = texture; //basicEffect.TextureEnabled = true; basicEffect.DiffuseColor = new Vector3(1.0f, 1.0f, 1.0f); Matrix viewMatrix = game.Camera.View; Matrix projectionMatrix = game.Camera.Projection; Matrix worldMatrix = Matrix.CreateRotationX(0); basicEffect.World = worldMatrix; basicEffect.View = viewMatrix; basicEffect.Projection = projectionMatr ...Show All
Internet Explorer Development hiding the parameters in the adress bar
i want to hide the parameters i send to the server in the address bar ( by the get method) how can i do it my web is written on asp pages waiting to your help, mikalush thanks, i read something about mode_rewite, but i need to learn it more... the problem with post method is that in some browsers, you can see the parameters.. is anyone know how can i send in post method when i don't have a form, just a lot of links, in one page, every link to is to the same page but it make the page to be view in differnert posoition (according to the parameters). hope you understand what i mean.. mikalush ...Show All
