Ashvin's Q&A profile
Visual C++ winsxs load fail.
when i start to debug my app by VS2005 . tha app shows " The application failed to initialize properly (0xc0150004). Click on OK to terminate the application" then i saw output window. it shows SXS: Unable to resolve storage root for assembly directory x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c in 2 tries SXS: RtlGetAssemblyStorageRoot() unable to resolve storage map entry. Status = 0xc0150004 but i start it in app cmd, it runs oK. anyone help. Could you tell it more detail I have installed VC6.VS2003and VS2005 on my PC.and all the solution fi ...Show All
Visual Studio Tools for Office Outlook 2003 Addin doesn't work on Windows 2003 Terminal Server
Hello all, I 've develop and deployed an Outlook 2003 Addin using VSTO 2005. The project runs succesfully on Windows 2000 and Windows XP I setup the project with no errors on a Windows 2003 Server which runs as a Terminal Server, but the AddIn does not loaded when Outlook starts. Also there is no Addin in COM AddIn s dialog. I also did this : http://support.microsoft.com/kb/908004/ but nothing seems to work. Any ideas Many Thanks.. The addin will be installed for the currently logged in user. Did you install the addin logged in as the user who will be using it Thanks, Pa ...Show All
Visual C# How to get instance ID of object
In VB6 I can use ObjPtr to get object pointer. In .Net how to get it The advice is to use a custom override for the GetHashCode() function in ur own classes to ensure that it is unique: MSDN Content : This method can be overridden by a derived class. Value classes must override this method to provide a hash function that is appropriate for the class and that ensures a better distribution in the hash table. Classes that might be used as a key in a hash table must also override this method, because objects that are used as keys in a hash table are required to generate their own hash code through this method. I guess there is no ou ...Show All
Visual Studio Express Editions Sun Systems JAVA 5.0
I am a professor who uses the Savitch book to teach a CS1 course. We have a license to set up J# in our computer lab and would like to use this software with as little pain as possible. Among other things, Savitch uses the Scanner class which is new to JAVA 1.5 (or JAVA 5.0). You can find this class in the java.util package of the Sun software. The Scanner class makes life a lot easier for beginning students. I was chagrined to find that the J# I just installed does not have the Scanner class in its java.util package. I would hope that J# 2005 does have this class, because it would take much of the pain away for schools that are using, ...Show All
Windows Forms AxHost hosted ActiveX control and focus related events
When hosting an ActiveX control on a Windows Form the Leave, Validating and Validated events are not raised for the control that previously had input focus when one moves input focus to the ActiveX control. The form behaves as one has clicked on a different application, only LostFocus is raised. Is this by design, or are there any extra steps that need to be performed to make this work One idea I got was to add some event to the ActiveX control that is used to notify the AxHost control that the ActiveX control got focus which then can call Focus() on itself. But that would only work for inhouse ActiveX controls and it is a littl ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skinmesh for Tiny problem with Key
I expected to have a Skeleton Start Position for Tiny with arm Stretch on the side Apparently there is no base Skeleton in the file (maybe there is, I don't know) I managed to add my key to an AnimationSet Skeleton in pause mode (loiter) Now When I add my angle I loose the Translation and Rotation of the original pause Skeleton What do I miss here How are people adding rotation key Do I also need to extract the previous original rotation to add mine Where is the initiale Skeleton of Tiny that tell each bone it's first position How can I Add Rotation on top of the Normal rotation pause value Also, Apparently I cannot save Key ...Show All
Windows Forms How do I create my own dialog-like component?
We have created a user control to handle the Login function for our WinForm apps. Because it's a control, everyone still has to create their own form to contain it, show the form, attach to its events, etc. I would like to simplify this by encapsulating it (or re-creating it) as a standard dialog, so that it can be placed in everyone's  ...Show All
.NET Development Cannot Find Server
Since I have an AMD 64-bit 3000+, I installed the pre-released Visual C# 2005 Beta 2. But this application is not working. Every time I click the application in Program File, the only message in the window 'Cannot Find Server - Microsoft Visual C# 2005 Express Edition Beta' is "The page cannot be displayed". In the window, any attempt connecting to any Microsoft official address also fails (eventhough at that time I am logging in with my .NET passport). The application simply cannot connect me to its server or to any Microsoft site via internet. Before I installed it, I had to remov ...Show All
Windows Forms Different OS
Is it possible that a deployed app brings up errors when you have it installed on one OS but no errors when installed on a different one Yes, missing system files is the most likely reason. Example: It works on every system with VS.Net installed but not on systems where it has not been installed. Solution: find the file(s) that&nb ...Show All
Windows Forms Class object question
This is for a C# windows forms project I'm working on. I plan to implement some public functions in the same way VB does with a module I tried a class, created and added a project for it, put the functions in the class, compiled it into a DLL and set reference to it from the main form project. But as I call those functions fr ...Show All
Visual Studio Express Editions How does an Array work?
Not sure if this is what your after here, if not then delete it Q: How does an Array Work A:When I started programming the one thing that would trick me was Arrays. So, with this in mind, I have decided to write some tutorials to try and help other beginners. What follows is a one dimensional array, an array is simply a container for a list of items in the case of this example it is a list of animals. First start a New Project, then in solutions explorer click on the form then click view code, you should then see the following. Public Class Form1 End Class Change the Form1 to arrAnimal, see below Public Cl ...Show All
Visual Basic Partial evaluation of logical expressions?
Many languages include a short-circuit in logical expression evaluation where, once the result is known, the rest of the expression is not evaluated. This is useful if you must check for a null value before using it. For example, if ( (a<>null) and ( (a+b)>5) ) then... Don't want to use a unless it is not null. Is there any way to turn this behaviour on in VB.NET Right now I'm using nested tests which leads to some ugly code... Thanks, DaveL ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh.Intersect Problem
I am currently having a problem with getting the Mesh.Intersect() to work. Basically what I am trying to do is have a mouse click 2d select a 3d object that is being rendered. The 3d objects are however on the same z plane. In opengl I would normally just selection or the equivalent above (gluUnProject, etc...). Is Mesh.Intersect the proper way I should be doing it Also, here is a snipet of the code that is currently not working: public bool MeshCollision(ref Direct3D.Device gd, float x, float y) { Vector3 near, far, dir, mouse; mouse.X = x; mouse.Y = y; mouse.Z = 0; /* Near clipping plane */ near = Ve ...Show All
Visual Studio 2008 (Pre-release) DataTemplate with Viewport3D using a StaticResource
Why won't this DataTemplate work < DataTemplate x:Key = " 3DItems " > < Border BorderThickness = " 1 " BorderBrush = " Black " > < Viewport3D Width = " 50 " Height = " 50 " ClipToBounds = " True " > < Viewport3D.Camera > < PerspectiveCamera FarPlaneDistance = " 50 " NearPlaneDistance = " 1 " FieldOfView = " 90 " Position = " 5, 2, 15 " LookAtPoint = " 0, 0, 0 " Up = " 0, 1, 0 " /> </ Viewport3D.Camera > < ModelVisual3D > < ModelVisual3D.Content > < Model3DGroup > < AmbientLight Color = " #FF7F7F7F " /> < DirectionalLight Direction = " 0,-1, ...Show All
Software Development for Windows Vista Workflow Serialization Problem
Hi to all, I have been using beta 2 bits for a couple of days and trying to upgrade my project with the new stuff. I've change a lot of things ( as you guys did in beta 2 :), but one problem still cannot be solved. I'm using the workflow designer control to change workflow definition. I have also a state machine workflow. If I load the workflow from file (xoml) no problem. But if I want to get a workflow definition from running workflow the serialize it and pass it to the workflow designer control I cannot edit the workflow. After debugging it seems that serializing state machine workflow it only serialize the root activity. Stefan, ...Show All
