giancolaj's Q&A profile
Audio and Video Development Missing WMCreateWriter in wmvcore.lib
wmvcore.lib shipped with DirectShow (included in the latest PSDK) doesn't list many functions exported by wmvcore.dll (e.g. WMCreateWriter). Does anybody know the reason for this and where I can obtain wmvcore.lib that matches wmvcore.dll I have code that was working and now it appears that there is no way to compile/link this code. Can you (i.e. MS) just post the import library for now, so that people like myself would be able to at least build our existing code until you sort out this issue BTW, this looks like a blunder on MS' part. How can one forget to ship a library ...Show All
SQL Server XML reserved chars
consider this short T-SQL snippet: it fails because instruction set @m = '<boom' contains an illegal char: declare @m nvarchar(255) set @m = '<boom' declare @msgs nvarchar(max) set @msgs = '<test1>'+@m+'</test1>' declare @x xml set @x = @msgs Anyone knows a way to automatically or manually convert '<boom' into '<boom' when I assign to an xml datatype something like that: set @msgs = '<test1>'+PREPARE_FOR_XML(@m)+'</test1>' TIA I've tried the CDATA and I'm surprised of what happens: if you run the following statement declare @m nvarchar(255) set @m = '<boom' declare @msgs nvarchar(max) set @msgs = '<test1>'+ '<![CDATA[' + @m +']]>'+'</test1>' dec ...Show All
Visual C# Display HTML Document in an application form ?
hello any ideas how to display an HTML document on an application form with Visual Studio 2003 using Visual C# thank you Nikunj R Thakkar wrote: Hey dude, Check this link. Should help u. http://vbcity.com/forums/topic.asp tid=111957 this looks very helpful , THANK YOU SO MUCH BROTHER ...Show All
Visual Studio Express Editions Reviewer????
I have installed Visual Basic and SQL express editions on my computer. I then downloaded the teacher staterkit. When I try to run it I get errors like - Warning 3 The referenced component 'Microsoft.ReportViewer.Common' could not be found. Is this another componete that I am suppose to download as well and if so where Thanks, Chris It is referring to the SQL Reporting Viewer controls that are a separate download for VWD. You can find that add-in here: http://msdn.microsoft.com/vstudio/express/vwd/download/ ...Show All
Windows Forms in-place editor for data grid?
In the ColumnType property of a data grid view, there is a dropdown list of choices, including a check box, combo box, etc. I did not see one for a text editor, and don't know how to add one. I have seen 3rd party grids with things called Memo Panels and Memo Editors that, when invoked in the active cell, pop up a sizable text editing window, which is really essential for editing memo fields. Is there something like this that I am missing in the VS 2005 toolbox ...Show All
Windows Forms How to set a C # form never be focused, but still get the event message?
As my last thread article " How to set a C # form never be focused ". The solution is as follows, nobugz wrote: Add this code to the form: private const int WM_MOUSEACTIVATE = 0x0021; private const int MA_NOACTIVATEANDEAT = 0x0004; protected override void WndProc(ref Message m) { if (m.Msg == WM_MOUSEACTIVATE) { m.Result = (IntPtr)MA_NOACTIVATEANDEAT; return; } base.WndProc(ref m); } This solution is eating the "WM_MOUSEACTIVATE", returning MA_NOACTIVATEANDEAT, and not passing m to base.WndProc(ref m). Question: If I have to make the C# form still get the mouse messages but never be focused, can I do it inside the above code (For example, I want a button inside this C# ...Show All
Visual Studio 2008 (Pre-release) Binding XPath=namespace:name
Hello. I need to databind to an attribute that has a namespace, for example <tagname abc:att="123"/> I tried everything, including XPath="@abc:att" but it doesn't work. how can I do that Thanks! lee d wrote: you should add XmlNamespaceManager from the sdk <XmlNamespaceMappingCollection x:Key="mapping"> <XmlNamespaceMapping Uri="http://purl.org/dc/elements/1.1/" Prefix="dc" /> </XmlNamespaceMappingCollection> <XmlDataProvider Source="http://msdn.microsoft.com/subscriptions/rss.xml" XmlNamespaceManager="{StaticResource mapping}" XPath="rss/channel" x:Key="provider"/&g ...Show All
Visual C# HScrollBar in PictureBox
I have a problem attaching an HScrollBar to a PictureBox. My form has only a PictureBox( pictureBox1 ) with an HScrollBar( hScrollBar1 ). The problem is that the EXACT same code in VB works. I've pasted the code of both languages below (this VB code is from another forum thread): VB(Works): Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load PictureBox1.ImageLocation = "pano.jpg" HScrollBar1.Width = PictureBox1.Width HScrollBar1.Left = PictureBox1.Left HScrollBar1.Top = PictureBox1.Bottom HScrollBar1.Maximum = PictureBox1.Image.Width - PictureBox1.Width End Sub Dim x As Integer = 0 Private Sub HScrollBar1_Scroll(ByVal sender As Obje ...Show All
Software Development for Windows Vista Removing service subscriptions for non-guaranteed events?
I'm writing a workflow service to watch for file changes, which implemented the following interface (note: correlation attributes not shown for clarity): [ExternalDataExchange] interface IFileSystemWatcher { event EventHandler<FileWatcherServiceEventArgs> FileSystemEvent; void Watch(string directory, string filter, WatcherChangeTypes changeTypes); } I have derived an activity from CallExternalMethodActivity to set the subscription up on the service by calling the Watch method (internally in the service this creates a FileSystemWatcher and stores it in a hashtable with other details about the subscription), and another from HandleExternalEventActivity to handle the FileSystemEvent event. It's all working fine, the events are ...Show All
SQL Server Datamining Viewer Client Problem
Hello! I am running a SQL Server 2005. I created the mining models from the tutorials. I can connect with the DataminingViewerClient directly on the SQL Server(i.e. to localhost), but when i try to connect to the Server from my other computer it is not working i always get connection faild and i should check that the server is running. I can connect to the Server with other programms but the viewer is not working. Any ideas what that could be Can you connect to other servers from the machine where the DataminingViewerClient application works If so, it may be that there are additional client components that need to be installed. Let us know and we can continue to diagnose. Thanks -Jamie ...Show All
Visual Studio 2008 (Pre-release) How To Get ParserContext?
Currently I am writing a custom MarkupExtension, and I am running into an issue that I want to access all xml namespaces to clr namespaces mapping dictionary under ParserContext.XmlnsDictionary property, in the ProvideValue method I do something like this: ParserContext context = serviceProvider.GetService( typeof ( ParserContext )) as ParserContext ; if (context == null ) { throw new InvalidOperationException ( "ParserContext is null" ); } the code always run into an exception, so how can I reference the ParserContext within a MarkupExtension should I manually parse those mapping info myself Sheva Cool idea, by the way. In fact, I played with it a bit more to create some markup extensions for the basic collec ...Show All
Software Development for Windows Vista Windows SDK Documentation
Hello, If you have the Windows SDK and Visual Studio installed, you can help me. Please tell me if your Windows SDK documentation is integrated with your Visual Studio 2005 documentation. Thankyou. Because mine isn't. Assistance appreciated. I did a clean installion of Visual Studio on Vista RC2, and I installed the following additional items in the order shown. installed VS2005 sp1-KB918525-X86-Beta-ENU installed MicrosoftR WindowsR Software Development Kit for RC 1 of Windows Vista and .NET Framework 3.0 Runtime Components installed Microsoft Visual Studio Code Name Orcas Community Technology Preview – Development Tools for .NET Framework 3.0 - vsextw ...Show All
SQL Server sp and applicatins
We need to do an audit of all objects(sp, etc) in the database. Each object need to be validated if any apps use it. Then keep an updated way of knowing what sp is used by what application(a grid somewhere) Note: We have some sp's that are used by two or more application. any ideas You can code your stored procedures to log to a table using the CURRENT_USER() function. For auditing, there are third-party programs that can help, or you can code it yourself with triggers. There's more here on auditing SQL Server: http://www.microsoft.com/technet/security/prodtech/sqlserver/sql2kaud.mspx ...Show All
Visual Studio Report without as Datasource
I wont to create a Report without a Datasoure and set the Datasource in the code. This steps i make 1. Create a Report -> Report1.rdlc 2. Create a simple Textfield to fill -> name ID ..-> Value = First(Fields!ID.Value) 3. Save the Report ... without a Datasource .. 4. Create a Form with a Reportviewer -> Reportviewer1 in the Form1-Load Sub i put the following Code: Dim ds as new Dataset () --> PersonalDataset <- This dataset/Datatable has the column ID with the’Value 11 .... fill the dataset ...... ds.DataSetName = "MyDS" ; Me .ReportViewer1.LocalReport.ReportPath = "Report1.rdlc" Me.ReportViewer1.LocalReport.DataSources.Add( New Microsoft.Reporting.WinForms.ReportDataSource( "My ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Should I Actually USE GameComponent?
GameComponents look interesting, but why would I bother to use them in my game when I can just write my own cascading Update methods Same thing for DrawableGameComponent, IDrawable, and all that. Is there some future engine functionality I can leverage using these classes / interfaces Because I don't see any actual use for them right now. Thanks! bryanedds wrote: ...when I can just write my own cascading Update methods You answered your own question. ...Show All
