Pockey's Q&A profile
Software Development for Windows Vista SampleGrabber "one shot" does not stop graph...
Hi DirectShow forum, I am using SourceFilter -> SampleGrabber -> NullRenderer and this filter graph is working well (I can pull samples from the file without problems now). I am trying to step through the file one frame at a time using this code sampleGrabber.SetOneShot(true); mediaControl.Run(); the MSDN docs explain that by setting one shot mode to true, the SampleGrabber will stop the graph automatically after it receives one sample. But in this case, it does not stop the graph, it continues to run to the end! Any ideas what can cause this Best regards, wtrn Hi LGS, Thanks, I will use the sample grabber callback method as you have suggested. It is messy compared to one-shot, but ...Show All
SQL Server Aliases & Columns Name w/ Spaces
Formatting question. The query below is failing on the columns with spaces in the name. I've tried brackets and single quotes with no luck. How should this be formatted ---------------------------- SELECT x.trkuniq, s.mstuniq, t.meetuniq, c.coursec AS Course_Code, c.descript AS Course_Name, [q.cactus #] AS Cactus_# s.sectionn AS Section, RTRIM(f.lastname) + ', ' + RTRIM(f.firstname) AS Teacher, f.funiq, t.termc AS Term_Code, zd.cycldayc AS Day, zp.periodc AS Period, zp.periodn, p.schoolc AS School FROM mstmeet t INNER JOIN mstsched s ON t.mstuniq = s.mstuniq INNER JOIN trkcrs x ON s.trkcrsuniq = x.trkcrsuniq INNER JOIN course c ON x.crsuniq = c.crsuniq INNER JOIN track p ON p.trkuniq = x.trkuniq INNER JOIN facdemo f ON s.funiq = f.funiq I ...Show All
Visual C# Object reference not set to an instance of an object.Help
my code Going on the limited information you gave, I would guess that, either one of your controls do not exist (like " Il " / " Kategori ") or one of the cells you're looking for by index does not exist. Which line throws the exeption -Ernst ...Show All
Visual Studio Express Editions about count?
hi there how do we use or execute a command in label which you can count the number of output.... for example "Select count(*) from user" (number in query in a datagrid) and the output must be seen in textbox or label... thx in advance Dude, try mo to..Ganito lang ginagawa ko e.... myConnection.Open() Dim myCommand As New OleDbCommand( "SELECT COUNT(*) FROM Users" , myConnection) myCommand.ExecuteNonQuery() Dim myAdapter As New OleDbDataAdapter(myCommand) Dim myDataset As New DataSet() myConnection.Close() myAdapter.Fill(myDataset) Me.TextBox1.Text = myDataSet.Tables(0).Rows(0).Items(0) Hope this would work for you too.... ...Show All
Windows Forms Exclude property of dependent files does not persist within .vdproj
Within a .vdproj I add a number of files to install within the 'File System' editor within Visual Studio 2005. Various dependent files are automatically included. Some of these dependent files do not need to actually be installed and so I set the 'Exclude' property to 'True' for each. I then save the .vdproj and build. When I close the project down and re-open it, the dependent files once again appear within the 'File System' editor, with the 'Exclude' property reverted to 'False'. Setting the 'Exclude' property of these files does not seem to persist between shutting down and re-opening the project. This causes us a problem for successive builds of the .vdproj. Is this a known bug and how do we overcome this ...Show All
Visual J# Rebuild Issue with Object Test Bench
I am able to create an instance of a class in the Object Test Bench. But everytime I attempt to invoke a method (even an empty void method) of the class, the tool asks me to rebuild it, after which it resets the class and does not execute the method. It does this even though I have not modified the code in any way. I try to execute the method right after I create the instance. This seems to happen if you have multiple projects in a solution. Is there a workaround Help! :) Steven There should not be any problem. Could you please provide detailed steps to repro the problem and information on kind of projects you have in your solution. This will help is in diagnosing the ...Show All
.NET Development How the CLR Will Work / Run?
iam new to .net. How the Common Language Runtime will Run/Work internally Is there any engine which will handle the CLR How the CLR is start working after the windows is loaded A great way to learn about the internals of the CLR is to look at the Rotor source code . The CLR is "the engine". It "starts working" when you execute a managed code application or explicitly load it. ...Show All
Windows Forms DataGridView bug?
Somtimes I set one of the DataGridView column's visible as false, but it still comes up when I run the program. Anyone has same problem This is the case in Beta2 if you set the Column's visible property to false and AutoGenerateColumns property is true. The issue is that in Beta2, the following lines of code inside of the Form Load event: DataGridView1.AutoGenerateColumns = True DataGridView1.DataSource = myDataSource DataGridView1.Columns(0).Visible = False doesn't do what you want -- the column still ends up being visible. In recent bits this is fixed. For Beta2 you can do this:: DataGridView1.AutoGenerateColumns = True DataGridView1.DataSource = myDataSource DataGridView1.AutoGenerateColumns = False DataGridView1. ...Show All
SQL Server Strange results when using parent child dimension
Hello, I'm working on a model with a customer dimension with circa 35000 members in the key attribute hierarchy.There is also a parent child dimension defined. When I'm using this parent-child dimension SELECT {[Measures].[BAT UMSATZ]} on 0,{ DESCENDANTS ([Kunde].[KUNDE PARENT].&[81062], 2, SELF_AND_BEFORE )} on 1 FROM [DerCube] WHERE ([Zeit].[JAHR].&[J2004]) it's fine. But when I'm trying to go down 3 levels ( the hierachy is here only 2 levels deep - shouldn't make a difference or ) then I'm getting back wrong results for the descendants. And what's also strange when I'm using the key attribute hierachy 'customer number', I can manage to get the same wrong results, when I'm filtering over a big set of custo ...Show All
Windows Forms Where is the DataGridView CurrentRowIndex ??? Please Help
Hi, I just realized that the CurrentRow.Index property is read-only, I need to select the rowindex programatically since the DataGridView is bounded. That property was really helpfull when it was possible to assign a value, how can I achieve this My problem is that I change the rows order in datatable, I am able to select the new row, but until now, I cannot select the row index, this remains in the original position. Thanks in advance. George ''' <summary> ''' ''' copy and paste all code, ''' This is the best i could imagine. and it works. ''' ''' </summary> Public Class Class2 Inherits Form Private Sub InitializeComponent() Me .DataGridView1 = New ...Show All
.NET Development Access query to transpose table data
Hello, I have the following table structure in my database and would like to create a query or table that displays a single record for each country with the three different RatingsType1 across the top as column headings with the respective rating filled in. Something like this: Country Rating1 Rating2 Rating3 US AAA CCC Baa1 where Rating1, Rating2, Rating3 are one of the three types of ratings from the tblRatingsType1 table. Here's the table structure: tblCountry CountryID (PK autonum) CountryName tblCountryRating CountryRatingID (PK autonum) RatingType1ID (FK to tblRatingType1) Rating RatingDate tblRatingType1 RatingType1ID (PK au ...Show All
Visual Studio 2008 (Pre-release) Soap security negotiation failed.
Hi, I am have been trying to run the Sample code of Message Security Ceritficate sample. I was able to run it on the same machine wiht no problem, but i try to run it across two machines i get this error Soap security negotiation failed. I am sure i setup the ceritficates the right, way. But this error i am not sure what mistake i have made. Thank you, Sree Thank you for setting up the tracing. Do you want me to send the trace files to you. Or what should i do. I opened the trace files the error i got in the client side is + < E2ETraceEvent xmlns =" http://schemas.microsoft.com/2004/06/E2ETraceEvent " > - < System xmlns =" http://schemas.microso ...Show All
Windows Search Technologies WDS 3 beta 2 quick results problem
If you search for a contact using the deskbar and the contact does not have a first or last name (as is common for something like an airline). The record will still be listed in the popup list, but it will be blank. The search results should show the company name if there is no first or last name. It would also be really nice to implement tool tips on this entries so that you could mouse over a name and see the phone number. tcrussell, Thanks for reporting this issue. I'll provide the feedback to the team to see if we can get the extra features into the next or a future release. Thanks again, Paul Nystrom - MSFT ...Show All
Smart Device Development pocket pc 2002 emulator webservices
I developed a directory service authentication smartdevice application in C#(visual studio 2003). As there is no support for directory services i used it in the webservice and called it in my application. Its works fine on my sytem where the web service is there. But when i try to run the application from other system it doesnt work. can u plz help me. Hmmmmmmm I used server name only for accesing the web service. I changed the directory security settings in inetmgr-webservice-properties for working with my active directory, is this stoping my web service to access from other systems. Or is there any particular way for smart device applications for calling webservices. ...Show All
Visual Basic How to insert data (probably simple question)
I am quite newbie and I have one, probably simple question. I try to insert data into my database (SQL Server 2005) with this code (VS .NET 2003): Friend Sub Datainsert(ByVal Name As String, ByVal Surname As String, ByVal DateOfGame As Date) Dim ConnectMe As New Odbc.OdbcConnection ConnectMe.ConnectionString = "Driver={SQL Native Client};Server=localhost;Database=ProjektKoncowy;Trusted_Connection=yes;" Dim Writeit As New Odbc.OdbcCommand("INSERT INTO ProjektKoncowy.dbo.Wyniki (Name, Surname, Points, Status, DateOfGame, KindOfGame, Autor) VALUES (Name, Surname , ' 3 ', ' 1 ', DateOfGame ,' 4 ','John Smith')", ConnectMe) Writeit.Connection.Open() Writeit.ExecuteNonQuery() ConnectMe.Close() End Su ...Show All
