|
http://en.wikipedia.org/wiki/Public-key_cryptography[^]
Look at the diagrams down the right hand side.
You send a private message by encrypting with the recipients public key. They decrypt with their own private key. This allows you to be sure only the intended recipient can view it, because only they have the correct private key.
You sign a message by encrypting it with your own private key. The recipient decrypts it with your public key. This verifies that it came from you, otherwise the decryption wouldn't have worked. But importantly the message isn't secret because anyone can decrypt with your public key as everyone has access to it. All you have done is verified the sender though.
Simon
|
|
|
|
|
I have a DataGrid that binds to a DataSet, bu specifying the DataSource and DataMember properties:
this.myGrid.DataMember = "Something";
this.myGrid.DataSource = this.myDataSet;
However, I wish to filter some data that it displays. More precisely, I wish to filter out or even replace (in a column in the DataGrid) some data according to another column value in the DataGrid.
Is there a way to accomplish that ?
Best wishes, D
|
|
|
|
|
Have a look at the DataView class desmond,
with it you are able to query the dataSet...
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
hii..frnds,can anyone help me out in getting a c# code for converting a wmv file to mpeg file..i need very urgently..thanking everyone..
santosh
|
|
|
|
|
This is a huge and complex topic. No one here is going to knock up code to do this for you. You have 3 choices:
1) Study and learn the specifications for WMV and MPEG video and actually understand how to do the conversion yourself.
2) Find a project/application online that does this, and is open source, and look at their source code. Note though, that you need to be aware of the license the open source project is released under if you plan on re-using their code.
3) Find a 3rd party .net component that will do the conversion for you. (Probably quite unlikely, but you might find 1)
WMV[^] is a proprietary container format, so to be honest you'll have difficultly finding much information on it, and will probably have to understand and reverse engineer the format yourself.
MPEG[^] refers to several things, and there are several different codecs all named under the same banner.
Simon
|
|
|
|
|
In C++ you can assing a variable a value of for instance 0xAAAA;
I tried this in C# but it didn't work. What is the syntax like in C# when assigning a hexadecimal number?
I couldn't find an example of this in books about C# which I checked, but I am sure people here know the answer to my question.
Thanks!
Ranger.
|
|
|
|
|
|
|
DaveyM69 wrote: int x = 0xAAAA;
Thanks, I wondered...
I think my error message was caused by the fact that I didn't know how many 'A's fit into a short type number.
Ranger
|
|
|
|
|
Ranger49 wrote: I think my error message was caused by the fact that I didn't know how many 'A's fit into a short type number.
Guess you know now
short = 2 bytes
int = 4 bytes
long = 8 bytes
|
|
|
|
|
Ranger49 wrote: I think my error message was caused by the fact that I didn't know how many 'A's fit into a short type number.
Don't forget to pay attention to whether that short number is signed or unsigned!
short a = 0x7AAA;
short b = 0xAAAA;
ushort c = 0xAAAA;
You can also use the 'unchecked' syntax to force it to be a signed short.
short x = unchecked((short)0xAAAA);
|
|
|
|
|
hello freinds i need guide how can we calculate frequency of audio inn from computer or of mic using c# i need good example code but simple one to learn how i can get or read the frequency of audio in computer n how can i match 2 frequncies thx in advance
its me yami
now cheers
|
|
|
|
|
i have never develop any application using c# which will run on PDA device.
so before developing any apps for PDA please some one help me with few urls from where i can gather the knowledge that how to develop database apps for pda. because i dont know which files need to be installed as .net runtime on pda and how to move and run apps from pda and how to work with database apps in pda and where to copy the database. basically i need many basic knowledge for developing apps which will run on pda. so please give me some urls who provide video based tutorial and step-by-step guidance that how to develop a apps for pda from the scratch. thanks.
tbhattacharjee
|
|
|
|
|
hello i need to know how can i make such kind of varibale which should be available in whole project of c# desktop application like if we make some variable in some from then it just available in that form if you dispose that form then it not goana accessable i need to know how to make some variable global for all the application forms so you just type there name and get there value thx
its me yami
now cheers
|
|
|
|
|
Create a static class within the project's root namespace and create static variables in there.
Dave
|
|
|
|
|
You can make it public static inside the form, you could create a static class and put it in there, or you could use the singleton pattern. However, I would suggest that you first check that it actually needs to be stored like this rather then passed around as a parameter.
Hope this helps,
Chris
|
|
|
|
|
Or perhaps a public constant.
Public enumerations are also very good.
|
|
|
|
|
I use like the following...
public static class GlobalInfo
{
public struct Diary
{
public struct Status
{
public const string Active = "Active";
public const string Closed = "Closed";
...
The above works with enum too.
|
|
|
|
|
Hi ,
I have added 2 columns, 1 of type checkbox and 1 of type textbox
but i do not want anyone to edit the text in the cell but he can check any row, how can i achieve that.
|
|
|
|
|
just make the column readonly.
|
|
|
|
|
I am consuming a secure java webservice over https from an Excel Office add-in.
I am having problems with a method which both uploads and downloads a file. My binding looks like this:-
<binding name="uploadServiceHttpBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="67108864" maxBufferPoolSize="524288" maxReceivedMessageSize="67108864"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="TransportWithMessageCredential">
' <transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
And the method signature like this:-
public byte[] uploadFromOffice(byte[] fileBytes, String fileName, Long folderId)
When I run the upload succeeds however c# does not like the response, I get the following error:-
There was a communication problem. The content type multipart/related; type="application/xop+xml";
start="<soap.xml@xfire.codehaus.org>"; start-info="text/xml"; boundary="----=_Part_8_23410216.1215684578307" of the response message
does not match the content type of the binding (text/xml; charset=utf-8).
I have been told that the web service is Mtom enabled. When I change my message encoding in my binding to be messageEncoding="Mtom" the server does not like the request and I get this error:-
'There was a communication problem. Could not find the attachment cid:http%3A%2F%2Ftempuri.org%2F1%2F633512846834593677'
Does anyone have any suggestions on where I am going wrong, or how to set about debugging this?
|
|
|
|
|
Hello everyone,
My operation is like this, I am using WinDbg to set a breakpoint to method foo. Here is what I did.
0:000> !bpmd TestDebug.exe TestDebug.Program.foo
Adding pending breakpoints...
0:000> lm
start end module name
00000000`00400000 00000000`00408000 TestDebug C (private pdb symbols) D:\Visual Studio 2008\Projects\TestDebug\TestDebug\bin\Debug\TestDebug.pdb
0:000> g
(1b0.5c4): CLR exception - code e0434f4d (first chance)
(1b0.5c4): CLR exception - code e0434f4d (!!! second chance !!!)
KERNEL32!RaiseException+0x5c:
00000000`77d4dd10 4881c4c8000000 add rsp,0C8h
But when pressing g, and the program stops, then I pressed k to display the current stack. I found there is no my code in the stack. The seems the stop execution is not because of breakpoint (because no break point hit information)? I am so confused. Any ideas?
namespace TestDebug
{
class Program
{
static void foo()
{
int a = 100;
throw new Exception ("Hello Exception Debug");
}
static void Main(string[] args)
{
foo();
}
}
}
thanks in advance,
George
|
|
|
|
|
Why don't you set breakpoints through VS IDE?
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thanks Thomas,
I am just trying new things. Any ideas?
regards,
George
|
|
|
|
|
Hi,
I have a project done in c# VS2003. And i need to change the layout, but i have a problem, i don't know how to solve it!
I have a form (the parent) with the FormBorderStyle property set to FormBorderStyle.None. When i try to open the MDI Child forms with the same property set to FormBorderStyle.None the behavior is different. The border and the title bar appear briefly (like a flash)and then the form is correctly displayed.
How i can solve this problem?
Thanks!
|
|
|
|