Asif Hameed's Q&A profile
Software Development for Windows Vista WMI and Win32_DeviceChangeEvent
Apologies in advance if this is the wrong forum to post on. If so, then please direct me to a better one. I'm having difficulty getting notification for the WMI event Win32_DeviceChangeEvent. Using the TempConsumer sample in the latest Windows SDK (Samples\SysMgmt\WMI\VC\TempConsumer), I modified two lines of code to be able to subscribe to the Win32_DeviceChangeEvent Line 169 changed from CBSTR Query(L "select * from MyEvent" ); to CBSTR Query(L "select * from Win32_DeviceChangeEvent" ); and line 239 from CBSTR(L \\\\.\\ROOT\\DEFAULT ), to CBSTR(L "\\\\.\\ROOT\\CIMV2" ), Compile the sample and run in Windows XP, then went to Device Manager and picked a device (in my cas ...Show All
Visual Studio Tools for Office Error Checking XML customization code
Is there any way to check the format and structure of the XML that I attempt to write to customize the Word Ribbon from within Visual Studio before pressing F5 which opens Word and then reports a bunch of errors. Thanks. You can add the customui.xsd file to your project. That way you will see your errors in the XML schema before you hit F5. You can download the schema from here http://blogs.msdn.com/jensenh/archive/2006/10/26/final-schema-for-ribbonx-based-solutions.aspx . Thanks, Rachel ...Show All
Visual Studio Opening new project from VSS 6.0c from Visual Studio 2005 creates duplicate folder structure
Hi, I have a really strang situation occurring when I create a new project from Visual Studio 2005. If I create the project from VSS along with the folder on my disk to put the project in, I get duplicate folders! For instance I open Visual Studio go to Source Control->Open From Source Control have it create a folder C:/PSI. I then see all the files being added from VSS. When I review the project and the corresponding folder on disk I now have C:/PSI/PSI/PSI ! I'm then unable to build my application because I get a build error from my web.config file. Anyone experience this before Is it my VSS setup from within VS any suggestions are welcome! thanks, -Marilyn From looking at C:\PSI\PSI\PS ...Show All
.NET Development We've totally stuck, please help!!
Hi everyone, Primary platform is full 64-bit both OS and RBDMS along with .Net Framework 2.0 We've totally stuck with this. We've got a .Net service running on Windows 2003 64 bit which has been compiled as x64 in project options. Everything is fine, service is installed, logged and finally started but the issue comes when you're going to Task Manager, and jesus christ, appears as "namexe.exe" instead of "nameexe.exe" *32 Is it running as 64 or 32 I understand when you set AnyCPU if destination CPU run as 64-bit mode it'll be a 64-bit executable and when you set x86 as 32-bit. Why Could you please so kind to provide me any clari ...Show All
Visual C++ Problem with MSVCR71.dll
Hello, I had to reinstall Windows last Thursday. I am not able to run Windows Messenger 5.1. I believe the MSVCR71.dll could not be found according to the person who helped me reinstall XP. Do I need to also install Vusill c ++ 2003 in order to fix this Please email me at lmorales@shentel.net or answer me on the forum. Thanks and God bless. See this article: "Msvcr71.dll cannot be found" error message when you repair Windows XP Media Center Edition or Windows XP Tablet PC Edition ...Show All
Visual Studio Express Editions need help with my first c++ application
Hello, after i tried a lot of things and reading some topics here i dont still know what i have to do. I need to programm some functions from an excel document in c++ with gui. my first problem is how can i create tabs on top of my application where i can switch through the "excel sheets" (i want to have same structure and function like in my excel dokument) Can anybody help me how i get startet creating an aplication with several forms that can be switched through tabs Hello As mentioned previously, such questions are outside the scope of this forum - for such issues please use the newsgroups at http://msdn.microsoft.com/newsgroups . OTP Thanks Dam ...Show All
SQL Server Reporting Services how do I disable a drop down box
Hi, SQL Server Reporting Services 2005. I have a tick box that is required to enable or disable two associated drop down boxes. Example: Tick box has 2 associated drop down boxes. The drop down boxes list details of Area from a database. The Area is linked to Properties. This allows the selection of Properties to be filtering by Area. Ticking the tick box allows the user to select from the drop down boxes. I have tried setting the Report Parameters in different ways, but without any success. Please can someone suggest how I can set the two drop down boxes to be disabled when the tick box is unticked and enabled when the check box is ticked Thanking you, dwemh Hi, I think enabl ...Show All
Visual C++ File upload and download
Hi All, I want to upload and download file in HTTP. plz help me how to do this one. -Amjath Hello Re: File upload and download Such general questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1 For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups . Many technologies/libraries that MS supplies support such functionality. OTP Thanks Damien ...Show All
Visual C# Live Update?
How could I add a live update to my application using: WebClient client = new webClient(); client.DownloadFileAsync(Uri address, FileName filename) I can download the file and run it with a dialog box, but I need to check the version of the file I have just downloaded. And if the file version is higher than the current, it runs, else it shows a MessageBox. See This: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=840615&SiteID=1 Best of Luck! ...Show All
SQL Server HOW TO setup SQL MAIL
hi, I want to receive a mail when SQL Server Agent JOB fail,so I go to setup the SQL MAIL,but it skip an error "xp_get_mapi_profiles: Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client." Someboby can tell me how to solve it thank you! don't forget, if you're using SQL 2005, you should use "Database Mail" instead of "SQL Mail" which is being deprecated http://www.microsoft.com/sql/prodinfo/features/top30features.mspx http://www.sql-server-performance.com/da_email_functionality.asp ...Show All
Visual Studio 2008 (Pre-release) Getting Started Sample Question 2
Hi, Well, thanks to everyone's help, I think I got svc file working.(I'm trying to use the Getting Started sample that came with Windows SDK, I really want to run the IIS host sample and I think the Getting Started Sample is supposed to run on IIS) I'm using XP professional as OS. When I type in http://localhost/servicemodelsamples/service.svchttp://localhost/servicemodelsamples/service.svc I get a page that says < %@ServiceHost language=c# Debug="true" Service="Microsoft.ServiceModel.Samples.CalculatorService" %> So I'm guessing svc file is working fine, but then when I run the client.exe, the program shuts down and I get a prompt if I wanna report the error. I'm just using the Getting Starte ...Show All
Visual C# type Casting in C#
I want to transfer data from one webpage to another webpage using Context.handler.. I got code from MSDN site like, in the calling form i wrote public WebForm1 webform1_instance; WebFrom1 webform1_instance = (WebForm1)Context.Handler label2.text = webform1_instance.username_textbox.text.Tostring(); Then this coding gives error for : INVALID TYPE CASTING IN C# FOR WebFrom1 webform1_instance = (WebForm1) Context.Handler nhow what should i do ,, please help me out....... AFAIK you can't use Handler for that. The handler will be the handler for the current request and not necessarily a web page. You should instead rely ...Show All
Internet Explorer Development DispInterface implementation
I am unable to retrieve the value of DispHTMLCurrentStyle->display for a tablerow. On HTMLDriller I could check the value- which is none for invisible row and 'block' for visible row, I am not able to find a way to get the value of this display. The row is of DispHTMLTableRow and currentstyle is DispHTMLCurrentStyle in the driller. Any way to access the property ...Show All
.NET Development Matching using multiple question marks
I am trying to this regex but I am not. is it possible help me!!!! string: x*[2+[(2+y)*z]*(4+y)]-3/[(3+y)*z] regex: matches: 2+[(2+y)*z]*(4+y) (3+y)*z (Moderator: Thread moved to the Regular Expression Forum and Title tweaked for quicker thread understanding during a search) It appears you are trying to find the string bounded by the outermost pair of square brackets and allowing nested square brackets within the string Try the expression described in the following blog entry: http://blogs.msdn.com/bclteam/archive/2005/03/15/396452.aspx . The example uses angle brackets as the thing being matched, but you should be able to convert the expression to look for square brackets fair ...Show All
Visual Studio Express Editions Read Serialnumber of Harddrive
Hi, i want to read the serialnumer of hardrive. In 6.0 the it was working with this code Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" _ (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, _ ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, _ lpMaximumComponentLength As Long, lpFileSystemFlags As Long, _ ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long : Dim strRootPath As String Dim strVolName As String Dim lngVolSerialNumber As Long Dim lngMaxComp As Long Dim lngFSFlags As Long Dim strFSName As String Dim lngDummy as long strRootPath = "C:\" strVolName = S ...Show All
