|
The law requires any and all personal information of an employee that gets saved to disk (id numbers, details ect) needs to be encrypted, or protected In Europe the law currently states that it includes fingerprints, and soon it will be law here in SA.
Now my problem is when the image gets saved to the disk it gets saved as a clear image hence the fact that i need to save it somewhere where no one via the windows shell or dos can get a hold of it even for that split second before it gets pulled back up in memory(Using the Image object i need) and deleted from disk
Chona1171
Web Developer (C#), Silverlight
|
|
|
|
|
What are the limits of this "save" function? Can it save to a named pipe?
|
|
|
|
|
No only 1 save and its save to directory.
Chona1171
Web Developer (C#), Silverlight
|
|
|
|
|
What happens if you put in a path to a named pipe anyway? Crash?
|
|
|
|
|
To be honest i haven't tried it but i will give it a go , I read an article about ti and it looks very interesting.
Chona1171
Web Developer (C#), Silverlight
|
|
|
|
|
if you have the image as a byte array, there are at least two Bitmap constructors that might help you:
1.
one takes a stream, any stream, so store the bytes in a MemoryStream and take it from there (don't forget to "rewind" your stream, i.e. position it at zero after writing it)
2.
another takes an IntPtr to the raw data. This needs unsafe code, and/or fixed, and/or GCHandle.
|
|
|
|
|
Thank you for all your help
I was able to retrieve the raw data, though i had trouble could not use a memory stream to write it into an image field i had to take the image loop through the byte array which will be the same length as the width and height of the acquired image maye a 2D loop and take the byte array and read it back as a color onto a bitmap .
That solved my problem
Though thanks for all the posts and all the help, the Truecrypt example will be usefull to me in other application i am developing and the named pipes solution is also one i will consider.
Thanx to all
Chona1171
Web Developer (C#), Silverlight
|
|
|
|
|
hello,
I build a scanner that takes all drive's with DriveInfo .
how i Discerning between drive from card reader and drive from usb ??
thanks....
|
|
|
|
|
|
Hi,
I have few dataGridViews and one ContextMenuStrip that is connected to all of the Grids.
At my function i'm trying to understand on witch grid the user pressed,
if i'm using the "sender" from the event i get the text from the line of the menustrip.
(if i check sender as DataGridView i get null).
How i can get the sender?
Can someone please advise?
|
|
|
|
|
Which event(s) are you handling?
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
|
Then you are handling the wrong click event - the DataGridView Click event always passes the DataGridView as the sender. Are you handling the Context Menu strip Click event instead - in which case the Click event sender will be a context menu strip?
BTW: Don't post in two places (as someone mentioned under Q&A) - it duplicates effort and annoys people. Go back and delete your Q&A version.
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
|
I thought of deleting it myself, but I prefer to let them know why not to do it - hopefully they won't next time. (yeah, right, when pigs floss)
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
i understant,
but i neet to start my function when the event of the menuStrip click fired...
|
|
|
|
|
So? You have the individual menustrip item click event, which tells you the user wants to do something, and what he wants to do. And you have the DataGridView click event which tells you that the user has left - or right - clicked and on which DataGridView he clicked.
Put the two together and something magical may occur...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
I believe you are are after the owner of the contextmenu click event. this is a sample from one I found to solve that problem.
ToolStripDropDownItem menu = (ToolStripDropDownItem)sender;
ContextMenuStrip strip = (ContextMenuStrip)menu.Owner;
ListView oLV = (ListView)strip.SourceControl;
There may be a more elegant way to do it but this works.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
I have an application in C# that use SQL Server 2008 R2 Express.
When i install the package i need to choose option and to install:
1. Microsoft .Net Framework 3.5 SP1.
2. Windows Installer 4.5.
3. Windows PowerShell 1.0
I have an SQL Script that will build my DB at SQL 2008 R2 Express and will add the user configuration that i want.
I want to make install package that will include the SQL 2008 R2 Express (including "Microsoft .Net Framework 3.5 SP1.",
,"Windows Installer 4.5" and "Windows PowerShell 1.0 ").
Will run the script and install my application.
I don't want to let the user to choose configuration for the DB in the installation process.
How can i do that?
Thanks,
Shai.
|
|
|
|
|
Already posted twice elsewhere.
It's time for a new signature.
|
|
|
|
|
|
My preference, and I think there are others here who agree, is to not try to do that.
Simply document the system requirements of the application and let the user install what's needed however they like.
Think of it this way... what if your install installs today's current features, but a user wants to install it sometime in the future and doesn't want to install "old" versions of this stuff.
Plus, the user may already have the stuff you require installed (or better). Why install SQL Server Express when the user already has the full package?
Or maybe the user wants to have SQL Server on a server (where it belongs), not on his workstation?
Your install should install your application and nothing else.
|
|
|
|
|
Indeed, don't force your customer to install sql express. I agree to PIEBALDconsult post.
Maybe its the easiest way to create your installation, but its the wrong way. Your installation should get the required data (connection settings etc.), check the connection, then it should install the database. If the connection fails, cancel the setup.
|
|
|
|
|
Hi
I am currently learning to use a directshow.net library and I would like to be able to catch a double click event on the video. Is this possible and if so how do I do it?
Thanks
|
|
|
|
|
WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_GRAPHNOTIFY:
{
}
break;
case WM_LBUTTONDOWN:
{
}
break;
}
I know nothing , I know nothing ...
|
|
|
|