JD Li's Q&A profile
Audio and Video Development XPath Error
I'm getting an error when using the xpath expression below. <par begin="id('BTN_MENU')[state:actioned()=true()] and id('MENU')[style:x()='-450px']" I want to evaluate the values of two different elements, but cannot get it working. Any help appreciated. Try this: <par begin="(id('BTN_MENU')[state:actioned()=1] and id('MENU')[style:x()='-450px'])" ...Show All
.NET Development BinaryReader floats and carriage returns
How do you determine while reading floats from a file using binaryreader if you have reached the end of line(carriage return) Supposedly my binary file (.dat) contains a line of floats, then a line of strings. Before I can switch over and start reading singles I need to know where my line of floats end. I tried reading in the floats below and converting it to string in hopes that I would be able to pull out the "\r\n" or 10 13 carriage return values but it won't work. Any help would be much appreciated. private void button1_Click( object sender, EventArgs e) { String fileName fileName = @"C:\myfile.dat" ; FileStream fs = new FileStream (fileName, FileMode .Open); Binary ...Show All
Windows Forms Accessing variables in form from user control
Hello, How do you access variables that are declared in a form from a user control that is used in that form For example, I have a windows form A. A displays a user control B. When a button on B is pushed, I would like to decrement a variable that was declared in A. Thanks in advance! RC Brendan Grant wrote: You’ve got two main options for this... Either you pass in a reference (of your form’s type) to your form into your user control that can then access the variable (provided it’s publicly visible)... or you setup an event on your user control that is fired off when the button is checked and an event handler within your form’s code receives this event and there you decrement your value. ...Show All
Software Development for Windows Vista hi
Hello All, I am currently involved in integrating an Audio codec into a transform filter.I have a rough idea creating a transform filter and registering the same ,can anyone let me know the basic steps that i shud follow so as to succesfully add a codec into the filter. looking for a positive response Regards, Burrough In addition to look at the sample filters, there is also this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/writingdirectshowfilters.asp . ...Show All
Software Development for Windows Vista Vista SDK - will it include WZC header (wzcsapi.h) ??
I'm looking for a Vista SDK, but it sounds like I should wait for Vista Beta 2. The only reason I want the SDK is to see whether MS is publishing an API for Windows Zero Config (WZC) and whether it is the same as on WinXP SP2. For WinCE and WinXP these are called wzcsapi.dll and wzcsapi.h, though the API is not official for WinXP. Does anyone know about WZC in Vista Thanks. wzcapi.h and it's lib is XP only, on Vista and Longhorn (and XP SP2) you are supposed to use the native WiFi API's. Willy. < rodmanovic@discussions.microsoft.com > wrote in message news:65d34b14-b04d-40e0-9562-38a8e677387a@discussions.microsoft.com ... ...Show All
SQL Server Lack of vbscript support for SMO?
It is my understanding that Microsoft is abandoning support for vbscript by not giving it full SMO compatibility. Is that true Are my years of vbscript programming and all those scripts now a dead end What will Microsoft abandon next What do I tell my employer about his plans to migrate to Sql Server 2005 I guess I don't understand what you're doing with your VBScripts that makes things so complicated. I've found SQL 2005 very straightforward to maintain, and use SMO code to simplify repetitive tasks or to automate tasks to make my life easier as a DBA. ...Show All
Visual C# How export a gridview to excel using c#
How export a gridview to excel using c# thanks! there are a couple of options, unfortunately for us since its WinForms based, there is apperently an easier way to do it in ASP.NET if we were using ASP.NET in order to help better, could I ask - how are you populating data into the datagridview Are you entering it manually or have you databound it from a dataset, using a DataAdapter to fill the dataset with records ...Show All
Windows Forms Troubleshooting errors after a background worker operation
I have a simple Windows form with two buttons: - the first button calls a method that throws an exception - the second button runs a background worker whose RunWorkerCompleted event calls the same method that throws an exception My question is why the "Exception was unhandled" window displays in different places depending on whether the method was called via the background worker or not. Without the background worker, the error is displayed where the exception actually happens. When using the background worker, however, Visual Studio displays the error in Program.cs, pointing to the line: Application .Run( new TestApp ()); The latter behavior is not very helpful when debugging. It seems to me that both error wi ...Show All
Microsoft ISV Community Center Forums Protecting formulas in cells
Hello, Other than coding formulas, is there a way to protect a cell in an excel spreadsheet, no mater, if the sheet is protected or not, so that formulas can not be erased or overwritten Thanks Chrstdvd Well Andy, I mean that I have a macro that has code like this Range("H22") = "=Sum("A5:A16")". I had the idea to just make a macro that repopulates the cells with the formulas prior to the Save command. That would at least have the formulas ready for the next days work. I will not go into why or how the store managers erase them. Most of the time all I hear is: "The computer just did it". thanks Chrstdvd ...Show All
SQL Server Web Sync: strange behaviour with the snapshot size
Hi There's *strange* behaviour with snapshot size during subscription initialization. So... The initial snapshot has size about 9Mb at the publisher. After subscription creation, I notice that the subscriber downloads about 21 MB. It seems to me, that the snapshot is unpacked on the IIS, next, part of the files are packed again and just after it the changed snaphot is sent to the subscriber. Why How it can be solved It brings some extent nuisance... Thanks Paul Not only does subscriber apply the snapshot, it also has to check if changes were made between the time the snapshot was created and the time it was applied, and if so, apply/upload/download them as well. Maybe this is ...Show All
Visual Studio Express Editions Edit and Continue don't work?
HI guys a have been working in some code all this week and for some reason that I don't know the edit and continue stop working. It have been working all this time but now no way. I can't edit when I'm debbugin and I'm getting frustated. Can some one help me I have VB.net express edition, so i don't know where to configure this feature. Tools->Options menu, look under debugging. If you do not see all options you should have a checkbox in the lower left corner that you can check to see all option. There you should have an option to enable edit and continue. ...Show All
.NET Development can't insert data into database
I just got a problem about my web page(.aspx). I set my web page with VB.Net, the page try to get data and insert or delete data from a database. The database is Access file (.mdb),which was located in the directory of ~/www/App_Data/. Now, the page can get the data, but there was an server error when it was inserting a new row data or delete a row in the table in database. However everything is fine when I test the page in my computer with localhost. I just think the error was caused by the directory App_Data without the right for write, but I am not sure it.Could I get suggestion please post: code you are using to insert data the specific errors you are getting when inserting data Visual Basic 2005 or 2003 (shouldnt real ...Show All
Smart Device Development OutputPath property is not set
Hi, I have a solution that contains multiple projects and often get this error when I try and deploy the main project (_PPC_ViewPoint): ------ Build started: Project: _PPC_ViewPoint, Configuration: Debug Any CPU ------ C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(481,9): error : The OutputPath property is not set for this project. Please check to make sure that you have specified a valid Configuration/Platform combination. Configuration='' Platform='AnyCPU' Done building project "_PPC_DataEngineDotNet.csproj" -- FAILED. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(481,9): error : The OutputPath property is not set for this project. Please check to make sure that you have specif ...Show All
Visual C++ Is there any win32 API to remove all file in a folder? I hope that one statement is ok.
Is there any win32 API to remove all file in a folder I hope that one statement is ok. Thanks. The API documentation says that SHFileOperation can do it. I assume pFrom should be set to L"*.*\0". ...Show All
Visual Basic VB + Win App + database without Sql Server - please help me ...
Hello! I've got a problem. I want to make some application which will use database - read and save some data. I want also that when I send this application to run at my friend or my second computer - which doesn't has any SQL Server (Express or simply MS SQL Server). I was trying to resolve this problem with Access Database File, but I've got an error: Retrieving the COM class factory for component with CLSID {C8B522D0-5CF3-11CE-ADE5-00AA0044773D} failed due to the following error: 80040154. This error is showing when I want add access file to my project. What should I do to work my application with some kind of database on computers which don't have any database servers. I hope you know wha ...Show All
