Topics
-
- 0 replies
- 1.1k views
Does anyone know how to extract into a stream the audio from a video file? Is there a process that can be run which could perform this task fro a 3min video file in under 20secs?
Last reply by drainey, -
-
- Administrators
- 3 replies
- 1.8k views
Just start trying XAML. Put a button and a textbox in it and built the application. The size of file seems the same as the WinForm one, but when I ran the application it took like 20+Mb instead of 8+Mb(for the WinForm, which I consider is huge already). Why the XAML made form takes so much memory? Doesn't XAML get transform into CLR which should be the same as the WinForm? I am surely missing something here:confused:
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.5k views
Hi, I have an application that has Sql Server 2000 as the database. This application is used in different Offices of our comapny around the world with each Office having there own independent Sql Database. For global reporting purposes I would like to create an instance of the Database that would receive all the transactional information from all the databases from all the companies. This would give us a repository for generating global reports. I have taken a look at Replication in Sql Server , but it seems that it is used for synchronizing different databases. I donot want synchronisation . The independent databases of all the offices will continue to work …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 4.6k views
I've been searching around and experimenting various things for days now for this but am just a bit too green to USB/HID to get my head around it. What I would ideally like to do is write a windows service in c# that will accept input from a USB HID device (specifically a barcode scanner). I want that service to dominate the input from a specific device I.e. the input will not be output to the currently focused application as if it were typed on a keyboard. Is this possible? I've managed to bodge-hijack input with a winforms app using windows events but that just trapped certain key combinations and stole focus and then returned focus on other key combinations. This…
Last reply by DannyT, -
- 1 reply
- 1.2k views
I have file that I'm writing to using the appendchild function and then save. It works, but the problem is that it doesn't insert line item and indent the tag properly, each childnode gets written on the same line one after another. Is there a function or class that can indent the child nodes automatically besides doing it via xmltextreader?
Last reply by mskeel, -
-
- Administrators
- Leaders
- 3 replies
- 2.6k views
Here is the following code. I have a class, and access it in my main form. Part of my class comGPIB public class comGPIB { Board brd = new Board(); Device devdev = new Device(0,0); public int iHELLO; public Device [] devGPIB = new Device[5]; public bool boolPSConnected; public enum Dev {PS=0, AGSwitch1=1, AGSwitch2=2, KeithleyMM=3};// Used for which array for devGPIB public enum PS {Agilent=0,Xantrex=1}; //Used when for which Power Supply is found on the GPIB Network } And here is the code from my main form comGPIB cGPIB = new comGPIB();// this is up at the top where my variables are private void btnPractice_Click(object sender, System.EventArgs e)…
Last reply by snarfblam, -
-
- 0 replies
- 735 views
Hi I am using Nant 0.8.5 to get files for build from Microsoft Visual Soruce Safe 6.0d. The problem is that when I use attribute "Label" to get files according to the labels I set , Nant gives following error "Unexpected attribute "label" on element <vssget>". Any solution or reason to that?
Last reply by obaidurehman, -
- 1 reply
- 1.2k views
i dont know how to make a listbox of variable width in which the the data of entire row is selected at a time i am using listbox1.items.add() method and inside add method i have writtem my variables for a single row like this listbox1.items.add(script(0) + " " + CStr(sp(0)) + " " + CStr(bp(0))) but the script is variable width and other fields are not comming in a line i want the out put to be as i have attached a file as 12kb zip plz help thanks for the sincerity.... untitled.zip
Last reply by RappyFood, -
-
- Administrators
- 1 reply
- 4k views
I wanted to open an attachment to a post in order to understand the question that the author was posing. I didn't open it because I am unsure of the safety of opening zip files like that. Although my AV definitions are current, I do not keep up with the latest exploits. Any comments? RappyFood
Last reply by PlausiblyDamp, -
-
- 1 reply
- 3.5k views
I have written a simple app to take a collection of single-frame tiff images from file and combine them to a single multi-frame tiff. It works fine. Unfortunately, the multi-frame tiff is saved with LZW compression. This app is meant to support an older process which can only read files with CCITT 4 compression. My source code follows. Irrelevant code is removed for clarity. It saves a multi-frame tiff with LZW compression. Does anybody know how I can save a multi-frame tif with CCITT 4 compression? I am using Visual Studio 2005 with .NET Framework 2.0 Private Sub MergeTifsWorker( _ ByVal SourceTifs As Collection, _ ByVal SaveName As …
Last reply by RappyFood, -
-
- Administrators
- 3 replies
- 2.5k views
I am in the process of learning the C# ways, and I came across this. In VB I can do this. For the record why I use the TRY Catch is that if a device shuts down on the GPIB bus then it raises an exception and I don't want to the program to crash. Public Function GPIBWrite(ByVal devGeneric As Device, ByVal strCommand As String) As Boolean Try devGeneric.Write(strCommand) Return True Catch ex As Exception Return False End Try End Function so here is how I converted in C# public bool writeGPIB(Device devGeneric, string strCommand) { try { devGeneric.Write(strCommand); return true; } catch(Ex…
Last reply by techmanbd, -
-
- 2 replies
- 1.4k views
I have nothing against NUnit or the like, I think that these unit-testing programs really are excellent... But more and more it's been bothering me that the testing code is separate from the class that is being testing. So I decided to put my testing code for each class within an internal, nested class named "Tester", nested within the class being tested. I then use the assembly:InternalsVisibleToAttribute to enable my testing assembly -- and only my testing assembly -- to have access to this testing code. So far, so good... However, for my last step, I would like to prevent this testing code from being emitted to CIL when compiled as a release build. My first tho…
Last reply by Mike_R, -
-
- Leaders
- 3 replies
- 5k views
Hi I'm trying to create something like a MultiKeyDictionary/List while maintaining the fastest possible speed. It is almost finished but one problem remains when adding elements: If I use a List Object the adding of elements will be fast but creating a new instance of it is slow, on the other hand creating a Integer array is fast but redimensioning is really slow. Here the Code in question: Public Sub Add(ByVal Value As tValue, ByVal KeyIndeces As iKeyIndeces) Dim I As Integer Dim KeyIndex As Object Dim Indeces As List(Of Integer) ' indeces Container for duplicate Keys For Each Key As Dictionary(Of Object, List(Of Integer))…
Last reply by Arokh, -
-
-
- Administrators
- 2 replies
- 1.5k views
A little background on my problem: we have a pilot program in the gov't agency where I work where we are testing a vb.net Windows Application with a LOCAL SQL server database. The people who go out on the road do not have any inter/intranet connection, once they are on the road they have static data. It is used primarily for inquiry purposes, some printing. They also do not have SQL Enterprise or any SQL management tools. The data is refreshed from our mainframe computer in the morning, when they plug into the intranet through their shop. We don't do a backup on the individual laptop, rather we keep a backup on another computer here in the main office. From that …
Last reply by lauriemc, -
-
-
- Administrators
- 2 replies
- 2.3k views
Using C# 2005 with SQL Server 2000: I'm getting this error: The solution on forums.microsoft.com is to add "MultipleActiveResultSets=True" for SQL Server 2005. Since I only have SQL Server 2000, the solution appears to be that I need to close my DataReader. My question is, How is a DataReader closed in the following code? string fmt = [color=red]"SELECT DISTINCT [{0}] FROM dbo."[/color] + employeeInfo + [color=red]" WHERE [GROUP]='"[/color] + cboGroup.Text + [color=red]"'"[/color]; string[] strCbo = { [color=red]"DEPT"[/color], [color=red]"JOBTITLE"[/color], [color=red]"SHIFT"[/color] }; cboDept.Items.Clear();[color=green] // clear ComboBox Items on form[/color…
Last reply by joe_pool_is, -
-
-
- Administrators
- Leaders
- 7 replies
- 2.5k views
As usual I am having a bit of trouble and I am hoping one of the gurus out there can shed some light. I think I know what the problem is, I just don't know how to fix it even after searching myself half blind. I am working with a third-party DLL written in unmanaged code. I used DLL import to pull it into my project like so (yes it is a plugin for DarkBasic Pro if you recognized it): <DllImport("Matrix1Util_20.dll", EntryPoint:="CallFunctionPtr", CallingConvention:=CallingConvention.Cdecl)> _ Friend Shared Sub CallFunctionPtr(ByVal FunctionPointer As Long) End SubThe problem comes when I try to use the function. It works, then crashes immediately wi…
Last reply by snarfblam, -
-
con fus ed
by et_-
- Administrators
- Leaders
- 7 replies
- 986 views
I have a small app that adds pics to a picture box, but id like to make the images clickable. I know how to fire an event, add handlers, etc, but how do i add an event to an image ? Im not sure if im even asking this question correctly. I just want to know how i can tell when a newly added image (to a pic box) has been clicked. Thanks
Last reply by snarfblam, -
-
- 1 reply
- 947 views
Using VS2005 Pro, the *Help says the DataRow has an Item Property that is supported in the .NET Framework 2.0, 1.1, and 1.0. *Reference: ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref4/html/O_T_System_Data_DataRow_Item.htm) However, whenever I try to index a row by its Item, I get an error. The compiler says: What happened to the Item Property? Do you have this on your version?
Last reply by joe_pool_is, -
-
- Administrators
- 2 replies
- 751 views
hi folks is there a way to get an enumeration over all tables of a db-connection? i need to retrieve tables from a databsae, without knowing theire names and the exact count. best regards george
Last reply by ganders, -
-
-
- Administrators
- 2 replies
- 614 views
Using VS2005 Pro: Every time I double click one of the files in my Solution Explorer, the IDE closes the tab I am on and opens the one I double clicked in a new tab. This feature worked yesterday, but now the IDE just won't do it! Is there a setting somewhere that enables multiple tabs to be open at once?
Last reply by joe_pool_is, -
-
Who's Online 1 Member, 0 Anonymous, 49 Guests (See full list)