Sianspheric's Q&A profile
Audio and Video Development MFCopyImage
hi all when copying a YUV (nv12) sample from src to dest using MFCopyImage, for some reason it turns out to be greyscale even though though the original image has color. The UV bytes are not being set properly...anyone else have this issue Hi Mike, This is what I have done, but the color is all messed up as if the UV plane isn't being copied properly. Any ideas ...Show All
.NET Development Can't clear Dataset
Hello, I do not have much experinece in programming, done some VBA and VB6, but very simple and beginner-like things. I am trying to learn VS 2006, and I must say I am not very much impressed: I have a 2 form application, 1st form is the main form, 2nd form is a "categories" form. Created a dataset with 2 tables, one for the main data, the other for the categories table. No relation between the two. Now, what I want to do is Clear those tables of all the rows and "Reload" the original information from a external database. The tables get "reloaded" but they don't get cleared before reloaded. And I have tried everything from the most obvious dataset.clear() to every possible variation: da ...Show All
Visual Studio Express Editions Button KeyDown - No response
This is a dumb question but why does the keypress and keydown not work on the button The properties are there and you get no error when compiling and running it. It just does not respond to the events. What I showed is a project I started. I added the button, double clicked on it and then selected keydown from the dropdown list box. I then added the messagebox to the keydown event created by vb. ...Show All
Visual Studio Problem refreshing datasource in RDLC file
Hi all.. I developed a local report to be viewed using Report Viewer control. That report is attached to an object data source. All works perfectly, but when I add other property to the object data source, that property appears in the data sources window (after I press refresh button), but when I edit properties of a textbox, and by expanding the Value combobox, the new field isn't shown. If I drag & drop the field from the data sources view, the Textbox Value appears to be "=First(Fields!NEWPROP.Value)". To solve the problem, I have to edit the RDLC file using the XML editor and manually add the new added field(s). After that, the field is added to the combobox and as the value of the TextBox I can finally use &q ...Show All
Visual Basic How can I let a user select the location of a database?
Hi, I've created a program that uses a database. The problem I have is that the drive names and or directory names change true time. How can I let a user select the current data base location when it has been changed Like: Dim path as string Provider=Microsoft.Jet.OLEDB.4.0;Data Source=(path & Database.mdb) path = (get it from an file dialog box) Any idee I'm working with vb 2005. The connectionstring I use is made with the wizard of vb2005. As long as you're using Access databases, you could simply use the OpenFileDialog control. ...Show All
.NET Development Connection Pooling questions
Does a connection pool exist on a per-application basis, or is is "global" to a machine If it is per-application, then what is the disadvantage of creating one SqlConnection object, and using that connection throughout an application I've read that keeping one connection open is a waste of resources, but if the connection pool is keeping the connection anyway, how am I saving resources by creating a new one in code each time I need one Obviously either everyone else has it wrong, or else I don't understand something. What am I missing Thanks, Kirk Yes, pooling is on by default you set Pooling=false to turn it off. Another small advantage I can think of is if the app is idle for a long peri ...Show All
Windows Forms Formatting a cell in a datagrid
I have a database column which contains int32 values for IP Addresses. I want to display the values in my datagridview column in dotted-decimal format (e.g. &HC0A80001 = 192.168.0.1), and input them the same way. Does anyone know how to format the data on the fly when the datagridview is filled Does anyone know how to hook the cell contents and convert it to an int32 on input before .NET throws an exception because the input isn't numeric Thanx, JimT My data table contains this column: SCDS.Tables("Computers").Columns.Add(column) column = New DataColumn("IPAddress", GetType(IPAddress)) column.Caption = "IP Address" column.Unique = False My Dat ...Show All
Software Development for Windows Vista Workflow Designer Rehosting and XAML Workflow
Hi all, I am new to Windows Workflow. The XAML only workflow consists of custom activity which is defined in the 'test' namespace. The Namespace mapping construct maps Xml Namespace to the clr-namespace. I load this workflow in the workflow runtime. i.e. XAML Activation. This works fine. My problem is: I am trying to load the same XAML workflow in the workflow designer re-hosted using the WorkflowDesignerControl. The xoml is deserialised correctly and the root element 'MyRoot' is identified and added to the designer host. It cannot identify the child activities i.e. WriteLineActivity since it resides in a custom namespace and so the number of children for root element is 0. So only the root element is rendered on the designer and ...Show All
Visual Studio Making MSBuild run tasks in parallel
I do not see a reliable way of using MSBuild Engine to schedule tasks/targets in parallel. The problem is that some task/target can modify properties/items that the task/target downstream depends on. I don’t see of any easy way of finding such dependencies. (Other than batching perhaps). Am I missing something Are there any plans to add such functionality Neil Enns MSFT wrote: Where things get a bit confusing is if you have native code as part of your projects. If you have native code you'll see some multi-proc stuff happening. That's because native code is built sing VCBuild, which does have some multi-proc support in it. But the compilation is only parallized if I build in devenv. Whe ...Show All
.NET Development XmlSerializer, Deserialize XML to custom object
Hi! I have a problem when trying to d eserialize a XML to a custom object. My XML look like this… < Trip > < Discount > 1 </ Discount > < MessageToBook > No Message </ MessageToBook > < Travler > < Telephone > 665522 </ Telephone > < ClientName > John </ ClientName > </ Travler > < Travler > < Telephone > 665522 </ Telepho ...Show All
Windows Search Technologies Secondary Intranet Search Location URL
Unable to make this work. Primary location comes up fine(ie. the button shows up) but can't make secondary location come up. Anyone else seen this I resolved this myself...brain cramp on my part. Secondaries don't show up as buttons but rather in the "All Locations" list. Duh. ...Show All
Visual C# Context menu for tree view asp.2.0 web control
Where can I find treeview asp.2.0 web control that has built in context menu If such thing does not exist, how can I create that I found some posts about that topic, but all of them are very old (year of 2005) so maybe something new came up. You can wire a context menu into the treeview. Drag a context menu from the toolbox, then use a MouseClick event, check to see if the mouse button is the "right" one (pinky), then do contextmenustrip.Show(//CHOOSE LOCATION); ...Show All
SQL Server ServiceBroker Error 8490 - SqlCacheDependency not invalidated
SQL Server 2005 / .NET 2.0 Web App - SqlCacheDependency is not invalidated and I see an error sql log that occurs after the specified table changes: 2006-09-22 12:18:51.84 spid21s The query notification dialog on conversation handle '{8D7EF5BC-544A-DB11-B6E0-000F1FD735BF}.' closed due to the following error: '< xml version="1.0" ><Error xmlns="http://schemas.microsoft.com/SQL/ServiceBroker/Error"><Code>-8490</Code><Description>Cannot find the remote service 'SqlQueryNotificationService-d61fa581-0567-43ba-991f-37499e87cbf6' because it does not exist.</Description></Error>'. I've read all applicable articles that I can find and applied hotfix kb916002. ...Show All
.NET Development FileStream in Visual Studio 8
Hello everybody, Today is my very first day with Visual Studio 8, I was working on Visual Studio 6 before. I have an application that is using "fstream.h" and "ofstream" but they are not valid anymore in Visual Studio 8. Can anyone advice what have replaced these old functions or how to handle files input/output in Visual Studio 8 Thanks in advance. i actually don't develop in VC++.NET however I hope these resources will help you more, as it contains examples in various .NET languages: http:/ / msdn2.microsoft.com/ en-us/ library/ system.io.filestream.aspx http:/ / msdn2.microsoft.com/ en-us/ library/ system.io.streamwriter.aspx http://msdn2.microsoft.com/en ...Show All
SQL Server Black server reports after installing SP2
After installing SQL Server 2005 SP2 all of our server reports are being rendered with a black background and white text, which needless to say is reversed of how they were being drawn before installing SP2. This only happens when the report viewer is displaying the report in “Print Layout” mode. Normal mode shows the report as expected. Has anyone else had this problem or suggest a solution Thanks in advance. I am also having the problem ;( I was a beta tester for SP2, how did we let this slip through I guess I don't normally use the print preview mode in the report viewer, but apparently my users do! ...Show All
