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

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

rishabhmahesh

Member List

Aaron Sulwer
sathish_indian
Sweeps78
gifuran
ManishS
Chellam
David465465454
dean2006
Corby111
moerderin
KrisFB_APPS
Adam Plocher
jerrykur
davidtcf
furjaw
h1
XNAConfused
tamri
CraigT
StairCounter
Only Title

rishabhmahesh's Q&A profile

  • .NET Development Trying to Write ActiveX User Control in C# that can be used by VB 6.0

    I am trying to create an ActiveX user control in C# (.NET 2003) which can be used by VB 6.0. I have gotten so far as to where I can use my control from the ActiveX Control Test Container utility that comes with 6.0, but when I try to add it from the 6.0 components list, it is not there, and I can't add it because it wants a .ocx file. As far as I know, it successfully registers it in the registry, but maybe not in whole. I used the following article to get it to the point that I have: http://www.codeproject.com/cs/miscctrl/exposingdotnetcontrols.asp In the end, I would like to write a user control in C# that I can use in VB 6.0 if possible. What am I missing Thanks for any help. ...Show All

  • Visual C# how to add /resource config in visual studio

    I can complile my .cs file by csc command like csc /resource:test.glade ... test.glade is just a XML file but I do not know how to compile it in Visual Studio I add test.glade as embbed resource  in property window but it does not work with Error: Cannot get resource file 'test.glade' ...Show All

  • SQL Server Problem for Calling A Stored Procedure, Please help.

    I am writing a Stored Procedure for other server (using C++ to receive the output values) as below, where @Total , @balance, @A are output values create proc [MaxTime] @number varchar(30), @numbera varchar(30), @numberb varchar(30) as begin declare @balancefloat declare @table varchar(20) declare @freetotal varchar(20) declare @SQL nvarchar(4000) declare @A float declare @Total float select @balance = balance, @table = table, @freetotal = freetotal from info where number = @number SELECT @SQL = 'select @A = A FROM' + @table + ' WHERE LEFT(code, 1) = ' + LEFT(@incomingcode, 1) + ' AND CHARINDEX(LTRIM(RTRIM(code)), ' + @incomingcode+ ') = 1' + ' ORDER BY LEN(code) DESC' exec sp_executesql ...Show All

  • Visual Studio 2008 (Pre-release) Select a cell in a ListView

    Hi! How can I select a specific cell in a ListView I want that only a cell is selected and not the whole row. Thanks. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Tutorials or pointers needed

    Hello people, I want to get some pointers on how I could make a simple 3D "rectangular" environment where I could put some floating object inside and a camera inside that rectangle backed on one of the rectangle's walls. Like if someone was trapped inside a huge metal tank with some boxes or whatever floating everywhere. Huge thanks guys, Stef Hey,     It's nice to diverge into new sections of programing in order to get away from the routine. Anyway I found a very good tutorial to start with (it's in C++, I hope you are familiar with it!) http://www.codeproject.com/bitmap/ballfusion.asp  and this one which makes use of OpenGL API http://www.codeproject.com/opengl/Wator.asp . It fits your ...Show All

  • Visual C# Returning correct Properties from Underlying Type

    I have a class, "Physical", which has a property "Shape", which gets/sets a Shape object. The Shape class is actually an abstract class having many subclass shapes, each of which have different properties (rectangle has height/width, circle has radius, etc.). This will make a lot more sense with code: Physical ph = new Physical(); ph.Shape = new ExtrudedCircle(); This is essentually what I would like to accomplish: ph.Shape.Radius I know that I can easily just say: ((ExtrudedCircle)ph.Shape).Radius However, the problem is, is that Physical is an abstract class as well, which inherits from a base class, Part. Physical has many subclasses as well. Part has a dictionary in it, whic ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rendering terrain

    Anyone know of any good resources on terrain generation, preferably in c#, or some information on best practices and algorithms found a couple more tutorials http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning6/default.aspx http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning7/default.aspx ...Show All

  • .NET Development GC

    Hi, GC "collects" memory when there is no reference in code to it. (Actually not really it is so, yet for simplicity reasons I've written so) Is there a way to get number of actual code references to an object, asuming that I have at least one. I guess GC might know such information, yet I was unable to get to right method. The weakreference isn't the resolution... Greethings This appears well hidden from prying eyes. I see nothing in the native debugger and profiler interfaces either. This is possibly due to the Heisenberg Principle; you cannot watch the GC heap without affecting the way it works. ...Show All

  • Visual Basic Making a process modal

    Hi, hopefully a rather straight forward case: I have two programs that I wish to integrate such that the first one opens the second modally. How would I go about this I'm thinking there must be something you can do with handles, but I have no idea how to go about it and haven't been able to find any information to aid me. Any help would be much appreciated, thanks. Hoopla You can only make windows modal compared to other windows. If I remember correctly you cannot do this over process boundaries. Can you make you second form member of a class library, so that you can create an instance of that form in the same process -- SvenC ...Show All

  • SQL Server Changing Authentication Mode

    How can I change the authentication mode for sqlexpress without going through the UI I looked at the docs for sp_configure, dmo and smo but I may have missed it. I'd like to be able to run a script that changes the authentication mode of an installed sqlexpress instance from windows only to moxed mode. Thanks This should work in SMO. You will need to restart the server after doing this. Server s = new Server(); // default instance s.Settings.LoginMode = ServerLoginMode.Integrated; s.Settings.Alter(); Mike ...Show All

  • SQL Server Microsoft Association rules importing to web form

    hi I am using Microsoft association algorithm to find the association between PATIENT CITY ---> likely Disease. I like to know how can i import association model after creating from SQL Server BI studio to use in my ASP.NET web form such a way when the user enters PATIENT CITY, system prompts associated Disease. I do have Data mining with SQL Server 2005 book, could't find any resource for my objective. Please suggest best source or tutorial how can i do your help and insight is highly appreciated. Raju Please see Bogdan's suggestions on this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=650506&SiteID=1 ...Show All

  • Visual C++ Accessing Data In An Already Loaded DLL

    I asked a similar question a couple of days ago in the C# forum, but my question is revised now and concerns C++, since I'm pretty sure it can't be done in C#. Here is the scenario that I'm dealing with. I have ProgramA.exe on my computer that loads up LibraryA.dll when it starts. There are some classes and methods in LibraryA that ProgramA uses that I would like access to. For example, there's a class called ClassTest with a method called MethodTest() that returns a variable that pertains to some data in ProgramA. If I just load the DLL, I think it creates a separate data space for the program I'm using to access it, so I can't read ProgramA's data with the exported methods of LibraryA. I tried writing a DLL and injecting it into ProgramA ...Show All

  • .NET Development Going through every element on a page

    Hi, I have elements dynamically created on a Web page (using ASP.NET). Some of them have a special attribute set. On the page load, I'd like to scan through all the elements on my page and if the attribute exists and is set, do some action on that element. All this in JavaScript. There must be a way to do this recursively right Any help would be appreciated. Thanks, Skip. Thanks for tthe advice Troy but I really need to do it on the client side. So, what's this "DOM" thing you're suggesting ! ! Anybody else have ideas on how to do this Thanks, Skip. ...Show All

  • Visual FoxPro Help with expression (one more time...)?

    Hello All...many thanks to all who helped with my previous post. I have hit one more 'snag' in preparing my data. Here's a sample of three fields in my table... MRC REQUIRED DETAILS 4720-00-001-0057 ADLF HOSE OR TUBING SPEC/STD DATA MIL MIL-H-5593,SIZE 4 SPECIFICATION ADJM INNER CONVEYING TUBE MATERIAL RUBBER, SYNTHETIC MEDA MEDIA FOR WHICH DESIGNED AIR CRWL INSIDE SURFACE CONDITION SMOOTH CQCS LAYER COMPOSITION AND LOCATION 1ST LAYER ANY ACCEPTABLE CQCS OUTER LAYER MOLDED RUBBER CRJM OUTER COVERING ENVIRONMENTAL ABRASION RESISTANT AND PROTECTION CRJM ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. accessing the textures associated to a loaded model's BasicEffect

    I'm trying to figure out how I can replace, at runtime, a texture that was automatically assigned to a model loaded from (for example) an FBX file. In the debugger's 'Watch' window, I can see the texture I want to change, however the path to get to it is a little strange. The 'texture' property is a member of SOME property of the Effects on the mesh; however, this property doesn't seem to have a name. All it says in the Watch window is "[Microsoft.Xna.Framework.Graphics.BasicEffect]", where it would normally say the property's name. (I have a screenshot here , highlighted to show the path I'm trying to take.) Does anyone know how to access that member and its properties In short: myModel.Meshes[0].Effects[1]._______.Texture = te ...Show All

©2008 Software Development Network