SChava's Q&A profile
Visual C# value in a variable for string method
Hi, The Select() method of XPathNavigator takes an XPath expression in the form of a string. I have a string type variable 'name' which needs to be given to Select() method. How should I do it name = "John"; Ideally, I should have something like XPathNavigator nav = doc.CreateNavigator(); nav.Select("/root/level1/Name[contains(.,name)]"); Instead of name variable, its value should come into the Select() method. How should I do it Thank you. This should work. nav.Select(string.Format("/root/level1/Name[contains(.,{0})]", name)); ...Show All
Visual C++ Failed to call GetInterfaceInfo(), EnumDisplayDevices(), etc in MFC project.
Hi,all. I created a MFC project and call method GetInterfaceInfo(), EnumDisplayDevices() in it.The compiler always reported "Error C3861:identifier not found, even with argument-dependent lookup". I've already added "#include <windows.h> in my MFC class. But error still remains. Any help please. I'm having the same problem but... the code isn't mine and I can't find the stdafx file (this is not a MFC project) can I simply define WINVER before including windows.h ...Show All
Visual Studio Newbie start...
Hi guys, As the subject of this message states it well, I'm a complete noob in the VS extensibility topic. I wondered if you could bring me some great links and resources to look to learn a little bit about it. I'm considering, based on a current need I have, to create a GUI integrated in VS 2005 to manage windows services deployment once built to avoid using installutil command line utility. Thanks Cordially, Amadrias You have all sort of resources on this section of my web site: http://www.mztools.com/resources_addin_developers.htm Best regards, Carlos J. Quintero ...Show All
Windows Forms Menu Help Please
I'm dynamically creating a menu from a database table and don't quite understand how to add the click events for each menu option. I can add a single click event that handles the click event for for all options, but how can I make each click event unique Stripped down Menu example: -->File ------>Open ------------>Item Report ------------>Loc Report ------------> .... (m ...Show All
Visual Studio Express Editions Problems installing Visual C++: install hangs & 100% cpu
I meet or exceed the system requirements: WinXP SP2 Over 3GHz Processor Pentium 4 w/HT (not sure if you need to know this or not) 1GB RAM 50GB available hard drive space I already had the .NET framework installed, so I uninstalled it as directed, and rebooted my computer. I then tried to run the install. It tells me that it's loading up and gets to the " This may take a moment or two" message. The load bar gets to about 3/4 of the way across, then stops. The processor usages shoots to 100%. Trying to kill the process closes the little install window with that last message, but the program continutes to run. After several tries I give up an ...Show All
Visual Studio 2008 (Pre-release) New exception in Beta 2 makes no sense?
I do not have a clue on what this exception means. From the stack trace I see none of my code in the call stack. It appears to be a problem with applying a property value that changes the template of an element. Any help would be welcome. "Dispatcher processing has been suspended, but messages are still being processed." at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at Syste ...Show All
Windows Forms SSL applied to consuming web services
Hi everyone.. Im trying to consume a Web Service which has develop SSL security in VB .Net. Once I've loaded the WSDL file, I can see the available resources and add the as a web reference. But when I try to execute a method from the service, I get the error: "THE UNDERLYING CONNECTION WAS CLOSED. EUNABLE TO CONNECT TO REMOTE SERVER". Now, Im pretty sure it's got something to be with certificate. I have the user name and password, but how can I code this part to be authorize for the certificate I have a cacert file which authenticates my user and pwd, but I really don't know how to write it down. I tried the same service ...Show All
Visual Studio Team System Inserting Build Date and Time in a Property
Is the possible to create a property in the build script which contains the current date and time for a build Thank you. This information is not currently available in the build script, but it should be fairly simple to write a custom task to provide it. The markup would look something like: <UsingTask TaskName="MyNamespace.GetDateTime" AssemblyFile="MyNamespace.GetDateTime.dll" /> ... <Target Name="TargetToOverride"> <GetDateTime> <Output TaskParameter="CurrentDateTime" PropertyName="CurrentDateTime" /> ...Show All
Visual Studio Release date for Management (WMI) Extensions for Visual Studio .NET 2005 ?
Hi, When will a 2005 version of Management (WMI) Extensions for Visual Studio .NET be available I’ve found the 2003 version, which looks great, but alas no 2005 version. http://www.microsoft.com/downloads/details.aspx FamilyID=62d91a63-1253-4ea6-8599-68fb3ef77de1&DisplayLang=en I'm currently writing some WMI code for BizTalk 2006 Beta 2 using Visual Studio 2005 RC, unsurprisingly, the 2003 version will not install on 2005 (I tried!). I can always fall back to VS 2003, but I miss out on all those cool new features... This forum is for Add ...Show All
Visual C# Using usb-bluetooth from pc
32Feet.Net provides a managed library for the same. You can refer to the following posting about it http://www.kinlan.co.uk/2005/10/following-my-post-about-lack-of.html The library can be downloaded from http://32feet.net/default.aspx Regards, Nitin ...Show All
Windows Live Developer Forums Activities Menu Unavailable
I've noticed a number of instances with users not being able to access our P4 application because the Activities menu is consistently unavailable. I have witnessed this situation myself over several home broadband connections and the Activity list comes up with the following message: "List of games or activities is temporarily unavailable. Please close and try again later." I initially thought this was due to a restriction on the client machine's network, but this has happened to me in my own home after a recent move. I've changed nothing...even my provider is the same, but the Activities menu is inaccessible from home. ...Show All
Visual C# How can I know the picture type from Image? thanks!
I create the object myImage using the sentence below. Image myImage=Image.FromFile(fileName); I wonder the picture type of myImage, such as GIF, BMP, JPG, etc. What do I do mcmcom has the right idea. In developing my Outlook Express picture sorting program (it ignores email and treats the .dbx files as images databases) of necessity I analyzed a lot of email and images. My list is perhaps twice as long mcmcom's and the code a bit more involved. It is particularly ugly when someone posts a Mac image because of the peculiarities of Mac file handling. (Applie got it right, but let's not go there. "Bill Gates won", is my mot ...Show All
.NET Development alternatives to stateful service
I want to build my remoting layer as a set of stateless, single-call services. There is one aspect of my application that does not seem like it will be a good fit for this model, though. Part of the the application is a processing engine that is controlled by a wizard on the clients end. The wizard gathers information into a memory and then uses an engine to process it. I want the processing to occur on the server, so it seems that the data gathered by the wizard needs to be stored on the server for the processor to use. The simplest solution seems to be to use a "session" pattern, through the use of a stateful, client-activated r ...Show All
Windows Forms How can I capture cursor(C#)
I can capture the screen using C#,but don't include the cursor. How can I capture the screen with cursor thanks. It is possible to capture the screen in C#, but not using what the framework provides. It can be done using pinvokes just like you would in Win32/C++. I know this probably isn't the answer you wanted to hear =) As fo ...Show All
Windows Forms Class fields 'reset' and Hashtables
Hi, I'm having some really, really bizarre problems since starting out with C# and .NET (C++ containers seem so much simpler!). First, I have a class, Nodemaster, with a couple fields, long streamPosition, and long streamLength. Next I have a static Hashtable, which stores instances of the Nodemaster class as the values. When I load up a small amount of data (an  ...Show All
