Bubo's Q&A profile
Software Development for Windows Vista Get MPEG2Demultiplexer PID Info in C#
This is my first post here so I hope i'm doing everything correctly. I have a BDA DVB-t app that i'm working on. i am adding a second MPEG2Demultiplexer via an InfTee. I add a Multiplexer and a dump filter to be able to record. I have created the Video and Audio pins and am able to use MAPPID for the pins. I have looked everywhere for information on how to get the current Video and Audio PID info from the first MPEG2Demultiplexer so as to map the second but have only found C++ info. they use QueryInterface i believe but i'm not sure what the equivelant is in C#. or is there another way in C#. I have also used the PSIParser filter connected to a third MPEG2Demultiplexer without success. Any help would be great. Have you lo ...Show All
.NET Development Sound volume level
Hi All, I'm looking for a way to detect the main sound output volume level so that if it crosses a certain threshold i can perform some action (like turn speakers on and off hooked up to an external relay). I've been googling all night but can't find anything to help me, any ideas DirectSound has APIs for setting the volume of the sound that it generates but there are no APIs for setting or detecting the windows volume. You will probably need to interop into some windows APIs. ...Show All
.NET Development winxp service in c#
services are suppose to run before a user logs in right i have a tcplistener socket that is suppose to accept incoming connections, the computer could have a wired or wireless nic. what service should mine depend on so that network connectivity is available if either of the nics are used i do not want to depend on the "wireless zero configuration" service on the wireless nics and something else entirely on the wired nics, something universal is what i am looking for. what am i missing that will make my service work here is my configuration code in c# [ RunInstaller ( true )] public class ClientInstaller : Installer { &nbs ...Show All
Visual C# Hook and unhook and event using delegate
Q1. Is it possible to check if an event is being hooked for eg. cbxXXX.selectedvaluechanged += delegate { .....;} Any way to check the above event is being hooked Q2. How is it possible to unhook the above event once hooked i tried -= but it doesnt work correctly. Thanks Regards Alu oh sorry one last question....do you think it's necessary to hook this event like the combo box's selectedvaluechanged ..since this event will always be triggered 'internally' ie i dont even need the += and -= and just move the codes into the event generated by vs2005....what do you think Regards Alu ...Show All
Windows Forms Problem running App Ref on startup
I have a click once app that needs to run as part of the users startup group. I have code in the application's startup that checks if there is a link in the startup group, and if not, copies the app-ref file over. This is fine on most machines, but on a few the application does not start when the user logs in to windows. If the user manually selects the link from Start -> Programs -> Startup then the app runs fine, but it doesn't start when windows starts. I've tried moving/adding the app-ref file to the HKCU\Software\Microsoft\Windows\CurrentVersion\Run key in the registry and still no luck. I cannot see any obvious configuration differences between the machines that work and those that don't - all are W2K SP4. Even stranger, on ...Show All
Visual Studio Team System Why there're always errors on "Reports" and "Documents"
Team Explorer shows four directories in a single project: "Work Items", "Documents", "Reports" and "Team Builds". But there're always red cross on "Documents" and "Reports", even I've set the user as an Administrator. Many thanks! From the client machine that's failing, you may want to try loading up the WSS and Reporting URL's in IE to see how that goes ( http://server/ and http://server/Reports/ ) Hopefully that will give some insight into what's going on (bad proxy, network problem to that machine, credentials, etc.) ...Show All
Visual Studio Express Editions How can I know when someone push the SCAN button on the scanner?
Hi, I have a scanner with SCAN button . How can I know when someone push the SCAN button on the scanner P.S I have Lexmark scanner and when you push the scan button on the scanner it scan the picture and create file. Regards, Yaniv You would have to talk to the scanner manufacturers interface (driver). They may have an API (Application Programming Interface), but I would doubt there's a publicly available API. This would be the only way to 'talk' to the hardware. ...Show All
SQL Server The old song: trimming the transaction log size on disk
We have a new sql 2005 database with 14 millions records (converted from a non-sql databse). It's now one day old and the mdf is about 14GB in size while the log file is 37GB! Normaly we use "Full" recovery mode and the daily maintenance job updates indexes, etc. Suppose, at 8pm, after the shop closes, I set the Recovery mode to "Simple", backed up the database, and then reset the Recovery mode to "Full". Would that reduce the size of the trans log on the disk Or can you suggest a better way. TIA, Barkingdog P.S. Given thet we dump the trans logs to disk hourly I can't understand how the trans log could get so large. Both data and log files reserv ...Show All
SharePoint Products and Technologies Programmatic Audience Compilation
Is there a way to fire off the audience compilation process through c# Specifically, if I wanted to compile just one audience but not the rest, is it possible to do this through code Thanks in advance for any help offered. Dez Ishai, Thanks for the response. I was wondering if this was the case since I havent been able to find any support on how to do it anywhere. Guess I'll continue with the method I'm working on to fire off the exe file that runs the process instead. Thanks again, Dez ...Show All
Visual Studio Tools for Office Layout Of Dynamic Controls In Outlook 2007
i am populating an outlook 2007 form region with controls dynamically depending upon values in a database. so for example i might want this layout: Custom Field Name 1: [TEXTBOX] Custom Field Name 2: [CHECKBOX] at the moment i am using the Left properties but i am having a hard time lining things up to my satisfaction. is there a better way for me to line up these dynamic controls that i am missing thanks. There are a couple of different approaches to the layout of controls on a form region. By default Outlook attempts to automatically adjust the layout of controls using automatic layout. However, controls added dynamically to the form can be difficult to have them lay out as you expect. ...Show All
Visual C++ How to measure memory consumption?
Hi, I have a very complex C++ object (with many class members and some of them are shared between different objects). What is the best way to measure how much memory this object takes I tried the following: before and after creating this object I call GetProcessMemoryInfo(hProcess, &pmc, sizeof(pmc)) and then use difference in pmc.WorkingSetSize between two calls. However it doesn't work well since WorkingSetSize increased in balks. So sometimes I get a big memory increase and other times it is zero. Is there any system function that allow to measure exactly how much memory was allocated between two calls Thanks in advance for help! PS. I develo ...Show All
SQL Server Datasource-Microsoft Visual Studio
Hi I am new to all SQL Related. I am trying to create a datasource to our old database we used in the company to write reports on the data. when I create a new data source and enter all required info, when testing the connection, i get a reply that I do not have the necessary permissions to use this object, although my account is specified as an administrator can somebody please explain this to me. Hi Hanel O, Try posting this query to the MSDN SQL Server Data Access Forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=87&SiteID=1&bcsi_scan_A9C07E6225287F19=z5cf+RkCipiHryeey+QUUQYAAAAmrYMB&bcsi_scan_filename=ShowForum.aspx Also here is the MSDN SQL Server Forum main page, wh ...Show All
Windows Forms Export datagridview to MS Word
Hi All, I need to export a number of datagridviews (all dynamically created) into a Word document. All of these have unique Column & Row Header information, and cells are colored based on value. Pairs of dgvs must be exported to each Word page - doing some research, but not sure where to even start with this one. Any guidance would be sincerely appreciated - thank you in advance. Cheers, - James anyone could REEEEAAAALLLLYYY use some help here... researching suggests that the Report.rldc object might be a place to start (I'm not familiar with this). Does that sound like the right path Some people did offer help, though their solution looked to be ASP/web form based - could anyone he ...Show All
Windows Forms Controls at the runtime????
hi, if i have a form and it have a textBox control... how can i write something in that textBox when this form already running. Not using a keyboard but a c# program. what is that class which i can use is it possible how i mean something like "On-Screen keyboard" which provided in winXP... please reply with thanks Richard Guion wrote: I have to admit I am bit confused by your question. Are you asking how to change the text on a text control in C# It's done like this (my text control is named textBox1). textBox1.Text = "Attilan"; Set the Text property and you are all set. If you're asking about a graphical keyboard to appear, someone else had better answer ...Show All
.NET Development HELP ME!!! Need to update database from dataset bound to a datagridview!!
Hey guys, I'm still new to C# and have not coded for about 4 years (and that was c++ and I never touched databases or SQL) I have been developing a piece of simple software that uploads a .csv file into a dataset and then binds a datatable from that dataset to a datagridview control. This is fine and works ok. However, once changes are made to the Datagridview (and thus I presume to the datatable in the dataset as its bound to the datagridview), I then want to update the database with the updated datatable. However, when I call the update method for my OdbcDataAdapter object, it tells me that Update requires a valid UpdateCommand when passed DataRow collection with modified rows. I think I understand that in order to update the database ...Show All
