|
DirectInput is used for things like keyboards, mice, joysticks, etc. You actually want DirectBlow DirectShow, and you have to build a filter, blah blah blah (you'll swear you're in hell when you start testing with other web cams). I hate DirectShow.
EDIT - a quick search on Google led me to this:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1339&lngWId=10[^]
And there's even an article here on CP:
http://www.codeproject.com/KB/audio-video/cameraviewer.aspx[^]
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
modified on Saturday, May 17, 2008 8:42 AM
|
|
|
|
|
Hi John,
I've already read these articles and the problem of the 1th approach is that it used the system's Clipboard to save the frames. What I really need, I think, is to access to the frames still in memory to process and elaborate them. So, Is there a way to save frames in data structure such as a Bitmap object without saving the frame on disk?
|
|
|
|
|
Well, the first one captures data every x milliseconds, so I suppose it's okay to use the clipboard, but I agree- it seems clunky. It looks like you're going to have to go through DirectShow (or whatever they're calling it now).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
The issue is that by using the clipboard I disable the copy&paste functionality. The DirectShow applications must be written in C++ but I've to use C#.
|
|
|
|
|
maresp1982 wrote: he DirectShow applications must be written in C++ but I've to use C#.
I'm pretty sure you can use PInvoke to do your DirectShow calls. There shouldn't be any reason to use C++ (un-managed code).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
|
Is that meant to be a question ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
prakash_adysoft wrote: crawler how to work
what does it mean ?
|
|
|
|
|
|
prakash_adysoft wrote: crawler how to work
When somebody can't walk properly (possibly because they've had too much to drink), then they sometimes fall to all fours. This is how a crawler works.
|
|
|
|
|
i need daniel carvalho liedke s mail
|
|
|
|
|
Never heard of him. Not sure why you'd assume that anyone who read this would have his email, or know who he is. If he wrote an article, you can email him using the email he gave the site, via his article. If he posted here, you can email him via his posts.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi guys,
i want to validate the xml file using DTD in C#.net. can u send me the sample C#.net code to validate the xml file..
Cheers
velu
d.sengottuvelu
|
|
|
|
|
System.Xml.XmlReaderSettings.ProhibitDtd = false (But I don't use DTDs.)
|
|
|
|
|
Hi,
I need to Convert DWG file to .X file.Is that possible??Because DWG is a CAD file format and .X is DirectX file format.Kindly give me some useful information regarding my issue.
Regards,
Priya
|
|
|
|
|
You want to write code to do this, in C# ? If you just want to convert a file, your question has nothing to do with this forum, did you try google ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks Spacix One for help on how to open a comma delimited file into a spread sheet. That was awesome !!
|
|
|
|
|
I'm glad you got good help, but you create a new account, to post a comment of thanks to someone who may or may not see it ? why not use your old account and respond on the thread where he helped you ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Could not access my old account after long frustrating hours to access it
|
|
|
|
|
How bizarre. You could not access your account, for hours ? I guess you didn't give a real email address to use to get your lost password then ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hi all,
I have deploy a window application and install in admistrator account which can access by all user. I am successful install it and run in limited account. But the exception occure when need to delete data in database (ms access using oledb connection). Note that, it is no any exception if this application run under adminstrator account. Below is the exception details:
************** Exception Text **************
System.Data.OleDb.OleDbException: Could not delete from specified tables.
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at TimewayGeneratorRev2.SQLConnection.DeleteSQL()
at TimewayGeneratorRev2.FrmNew.CreateNewProgram()
at TimewayGeneratorRev2.FrmNew.btnsave_new_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
TimewayGeneratorRev2
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
ChartUserControl
Assembly Version: 1.0.3056.42194
Win32 Version: 1.0.0.0
CodeBase: file:----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:----------------------------------------
any idea or any solutions are welcome
regards
cocoonwls
|
|
|
|
|
Obviously, your limited account does not have permission to do this. Are you logging into the DB using a username/password, or windows integrated security ? If the latter, then changing your user could well change what the DB allows.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Christian Graus
Christian Graus wrote: Are you logging into the DB using a username/password
I don't think so, below is my connection string
@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Userprogram.mdb"
Christian Graus wrote: or windows integrated security
I have no idea whether i am using any windows integrated security or not.By the way,how can i to ensure it?
Christian Graus wrote: changing your user could well change what the DB allows
How can i do that?Please guide me thought it. Thanks
modified on Saturday, May 17, 2008 9:50 PM
|
|
|
|
|
The error originates in the Access (JET) database, when it tries to modify (delete) data. Assuming your database doesn't use the strange security mechanisms available in Access (using SYSTEM.MDB and so on for user names and passwords), I would guess that either:
a) The regular user doesn't have modify permissions on the MDB file.
b) The regular user doesn't have modify permissions on the LDB file, or sufficient permissions to create one when it doesn't exist.
This would make the database readonly for non-administrators, meaning that all attempts to modify data will throw exceptions.
If possible, you should look at using SQL Server 2005 Express Edition instead (sqlexpress for short). The Access JET database engine has been living under threat of extinction for a decade or so by now and has a number of drawbacks (one of them being that no user can modify any data in the database unless they have sufficient permissions to actually delete the entire database file if they feel like it). The learning curve for shipping it with your app (making it install silently and getting your initial database installed) is kind of steep but the job is simple once you get a hang of it (and there are a lot of good articles on it).
--
Peter
|
|
|
|