pmanisekaran's Q&A profile
Visual C# Check if a remoting service is up and running
Hi, I need to implement some kind of watchdog which checks if a remote service is running (and,if it's not, supposing the server went down, starting it on another machine) but I'm still trying to figure the proper way of doing it. I was thinking about using .NET Remoting, but I'm not sure it's the right way. Does anyone have any suggestion Thanks in advance for your kind help ! You can configure or monitor the state of services using ServiceController class. ServiceController class has a machine name property. So you can monitor or manage remote services too. But the running application's (your application' i mean) Identity must have rights to do so, on remote machine. So you may have to u ...Show All
Windows Forms Button index and Building controls Visual Studio 2005
HI, Could Somebody Help Me I Want to Create a Game like MineSweeper and I Want to know How to Put an Index to Buttons just like in vb6 and If not Possible Can anyone Tell me Something About Making my own controls. THank you You'll find lots of threads that talk about alternatives to the VB6 control arrays with this search query . ...Show All
Smart Device Development setting soft keys programatically
How can I change the labels of my softkeys at runtime I'd like there to be no left softkey visible when the program starts, but later on in a different state, I would like it to be labelled with "Back"...also, how do I take care of the event handling Assume: You're using MFC m_strButtonText is a CString variable that contains the new button text. m_wndCommandBar is the CCommandBar object representing your soft keys (and a member of CMainFrame) ID_BUTTONID is the control ID of the soft key To change the button text: TBBUTTONINFO tbbi; tbbi.cbSize = sizeof (tbbi); tbbi.dwMask = TBIF_TEXT; tbbi.pszText = (LPTSTR)(LPCTSTR)m_strButtonText; m_wndCommandBar.SendMessage(TB_SETBUTTONINFO, ID_BUTTONID, (LPA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to check the version of Managed DirectX installed?
Hi all, I'm wondering is there any way to check any registry key or check the existance of some folder or any other way to make sure that managed directX has been installed on the system Thanks a lot in advance. P.S. Just to make sure I did everything right, if anybody knows how to check the version of the regular directX (not managed) installed and also the .NET Framework installed I would appriciate it a lot. So, if you know what registry keys need to be checked to get this information. Mladen. Since there is no official way then all I can suggest is using reflection to attempt to load the assemblies and trapping the exceptions. Since MDX installs to the GAC if this fails then there is a pre ...Show All
Software Development for Windows Vista F1 Help
Help, I have a copy of Visual Studio 2005. I use C and C++. Supprisingly I cannot remember every C Function, so I need to find them or check them. In good old VC++ 6.0 I could press F1 on the C function and the help would appear on the screen. In Visual Studio I do not seem to get any C functions at all in the help page. I am a professional amateur and any help on this would be gratefully appreciated. Yes - strcmp, I could not find it. Have you any ideas how I can find out if I have the SDK installed Thanks. ...Show All
SQL Server Management Studio and Enterprise Manager on Same Machine?
Greetings! Do any of you know whether or not it's possible to install Enterprise Manager onto a box with SQL Server 2005 installed I've come across a couple of problems when trying to admin some SQL 2000 servers, so I need EM somewhere. Also, it's incompatable with SQL Server 7.0, of course, and I've got two of them to admin as well. Thanks! Hi; I've been facing the same problem since last week, this morning I got it done. Here what I experienced. 1- I was running SQL Server 2000 client components for Enterprise Manager 2- I installed SQL Server 2005 Management Studio 3- I could not open DTS in Management Studio, so I installed SQL Server 2000 DTS Graphics Components b/c I have ...Show All
.NET Development General question......about differece btw language and technology
Hi All, I have one general question............sorry to put in this forum................. I want to know the difference between language and technology........... eg .net is a technology and C# is a language....... what to say for HTML so I want a line that differentiate btw these two terms......... I usually look at it this way: technology allows things to be done, while languages allow humans to tell the computer HOW to do those things. To me, this distinction is fairly universal. If the "thing you want to be done" is to display the letter "A" on your monitor, from a technology point of view, the ultimate result is the same -- electrons go here, there, and everywhere, until that "A&quo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DrawuserPrimitives doesn't paint correctly
Hi: I'm trying to render a triangle with diferent colors (red, green and blue) and the triangles is painted orange. The code is the next: [code] // This variables are globals private PositionColored[] MyTriangleVertex = null; private GraphicsBuffer<PositionColored> DrawBuffer = new GraphicsBuffer<PositionColored>(3); private getVertex() { MyTriangleVertex[0] = new PositionColored(0, 0, 0, Color.Red.ToArgb()); MyTriangleVertex[2] = new PositionColored(10, 0, 10, Color.Green.ToArgb()); MyTriangleVertex[1] = new PositionColored(-10, 0, 10, Color.Blue.ToArgb()); DrawBuffer.Write(MyTriangleVertex); } public void Render(Device device) { // This code is to render a heightmap wi ...Show All
Visual C++ can somebody help me in printing two simple inetger printing on printer
hello as i am new to c++ , iwant to print two integers on c++ simply declare and initialize and print them on default printer only their values or address thanks waiting for reply don't think it ordinary question and leaving it without reply , it would be ordinary for u not for me. thanks This forum really isn't suited for introducing people to C++. There are books and classes for that. If you have code available and need assistance in fixing bugs, you may post it here. ...Show All
SQL Server Problems with Roles and sp_helpRoleMember
I have a database role named gc_stationAdmin. I have a user x who has this role granted him when via Mgmt Studio under Logins. In fact I have 50+ users who have this role. 1) when I execute sp_helpRoleMember I see only 20 users who have this role when I'm expecting to see 50 and user X is not amongst the 20 2) when sp_helpRoleMember is executed AS user X, they only see 1 user with this role (and it's not himself) 3) when I drop user X from Role using sp_dropRoleMember OR using Mgmt Studio under Login Properties, it never drops him according to Mgmt Studio. When I pull up the login properties, that role is still always checked no matter what I do...although he doesn't appear in the sp_helpRoleMember result ever. What is goi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A couple of stupid questions (about Timer's etc)
I've noticed that the people use quite different way's to measure the time in the XNA samples and in MDX altogether (I mean: some are using native Win32 functions, other System.Timers, etc.). So what would be the best/proper way to do it in an XNA game My second question is even more stupid: How can I make a spining triangle with just HLSL I'm just starting with shaders so excuse me for this question. Well, that is good to hear that things seem to work fine. Perhaps I heard about an isolated case. I am afraid the latest XNA beta has greatly distracted me (as well as a full course load at school). Thanks for the reply! ...Show All
Visual C# Making help files for MS Document Explorer
I remember there was a feature in VS 2003 that you could create HTML pages according to the comments you wrote in your codes, it seems that microsoft has omitted this feature in VS 2005.But i don't know if microsoft has replaced this feature with a beter one. By the way i wonder if you could tell me how can i create help documents of my program for Microsoft Document Explorer. Thanks in advance. I've actually never used anything like that before but do you mean something like the HTML Workshop http://www.microsoft.com/downloads/details.aspx familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en ...Show All
SQL Server How to organize calculated members in Analysis Services 2005
I am creating many calculated members for a cube with several measure groups. The problem I am having is that when browsing the cube, all of the calculated members appear at the bottom of the measures area. I would like to organize them into the folders under the measure groups where they belong, but do not see a way to do this. Does anyone know if this is possible Thanks! Hello. On the calculations tab in the cube editor, there is a small properties button for calculation properties. Click on that and choose associated measure group for each calculation. You can also create displayfolders here if you want to. HTH Thomas Ivarsson ...Show All
Visual Basic Write specific error to a text file?
I have a vb.NET program that sends out emails, and I need it to write to a log file when it can't send emails to certain addresses. I need it to tell me what day/time, and what email address. I'm pretty new and I have never captured errors before. So far, I have the following error block: If _mailCounter.Text < MaxMessages Then 'DONT OVERLOAD MAIL SERVER Try System.Web.Mail.SmtpMail.Send(MM) Catch ex As Exception Err.Clear() End Try End If Any help is appreciated!!! Thanks! Tory Try adding the following into your catch block. You'll need to replace emailAddr with the actual email address and update the path to the log file that you want to use ...Show All
SQL Server Creating offline (local) cubes using XMLA, or any other way..
Hi, I realise this subject has been discussed a lot but there seems to be no definitive answer. The company I work for creates many cubes (currently using many SQL statements) for the sales regions at the end of each month and we need to move to a better platform, hence analysis services projects. Is there any "easy" way to take a cube created by an analysis services project and save it to an offline (local) cube Currently I am trying to use VB.NET 2005 to process the XMLA definition from AS2005, which is easy to get at. The VB code is: Dim myClient As New Microsoft.AnalysisServices.Xmla.XmlaClient Dim l_result, l_XmlaCommand As String l_result = "" Try ...Show All
