I'm trying to decrypt some encrypted text that has been Base64 encoded. The following code throws a System.Security.Cryptography.CryptographicException with the message "Length of the data to decrypt is invalid." I'd appreciate it if someone could demontrate the correct way of doing this and/or point out the flaws in my code.
System::String^ Quantum::Util::DecryptString(System::String^ str)
using namespace System::IO;
using namespace System::Security::Cryptography;
I am developing application in VS2005 C#, Windows Mobile 5.
Please help, I have some doubts..
1. How to code for softkeys in Windows Mobile?
2. How to add background image?
3.If I closed the application, its still running at the background,I stop running programs also its still running,I need to remove the battery to shutdown the application.How to avoid this?
4.How to install exe file with icon/logo to Windows Mobile programs collection?
I am a newbie for WM development,So, please bear with my questions.
Thanks in advance
I am new to the .NET framework, but have a lot of experience with C++ and MFC. I need to do a simple thing. I am using a StreamReader to read lines of text from an ASCII file. I then need to do formatted reads on the Strings^s I get. That is, I want to read substrings, integers, floats, etc, from each line. I guess I could convert the String to a char array and use sscanf(), but that seems dumb.
I can't find any documentation on how to do this. Help!
By the way, are there any good books on C++ .NET that go over the class library ...
Well, I've found an answer that is workable and uses only Strings. There is a method String.Split() that lets one split the String into pieces - I use white space for the delimiter, and that gets me what I need without resorting to 'old' coding practices!
I need Urgently The Source code for video watermarking..
If Anyone out there has it Please Forward it to me.. Or Please paste it In the Discussion Board.,,
I've created the pseudocode But not sure about how to Implement it or which language should i use.(tyhinkin of VJ#.NET and C#.NEt)_..
i just need a small Utility and the basic idea as of yet is a 1min video.. split it into frames and watermark the frames and recompile images to video..
please help me out.. thank U.
Good evening Christian,
Wnt you leave this site for 24/7 hr,days. Why?. If I would have been you, I could be enjoying with my family a lot and lot and lot more. There is lot of life apart from this computer, am I right? I said this because today is Satur Day no. So that you can spend your personal life. I am sorry if you feel bad. I would like to do it. But I cant do, because mine is small company and to become like you, I have to do a lot. Right?
May be I dont know your conditions, why you are doing this(May be only to help others, if its then its great). But its my openion. I am sorry if I said more.
Truth is, I do 40 hours a week for CP, and I work every evening and through the weekends on other stuff. So long as I am working, I am online, keeping an eye on CP and looking for questions to answer. I work from home, CP is also my social life.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
Ok. Then other than that 40 hrs will be hell for us. Specially for me. Because I ask the questions for which nobody will(may be can I dont know) answer. Most of the times I got replies from you. If not from Pete. Few times from others too. Thank you for all those replies. And Salam too.
Public Class ClsFixRem
Public Delegate Sub EventHlndr(ByVal ObjOrderMsg As ClsFixRem.OrderMsg)
Public Event Evnt As EventHlndr
Public Function MessageSend(ByVal Ds As DataSet) As String
Dim Objmsg As New OrderMsg
Objmsg.OrderNo = "470"
I have a Server Exe Hosting the REmote Object as given Below. It is a winform app.
Dim channel As New Tcp.TcpChannel(8085)
Dim r As New RemLib.ClsFixRem
("RemLib.ClsFixRem, Remlib", "RemLib.ClsFixRem",
Obj1 = New RemLib.ClsFixRem
AddHandler Obj1.Evnt, AddressOf handlevent
Event Handler in Server.exe
Public Sub handlevent(ByVal ObjOrderMsg As RemLib.ClsFixRem.OrderMsg)
It is asp.net web application.
If ChannelServices.RegisteredChannels.Length = 0 Then
Objrelib = CType(Activator.GetObject
s = Nothing
Dim str As String
str = Objrelib.MessageSend(dsTemp)
The server.exe is connected to a third system thru a tcp socket. the socket connection is opened when the server.exe starts. the connection should be kept open.
When the client activate the remote object (Remlib) and call the method MessageSend. it should fire the EVent which is handled on the server Exe. in this event handler on the server.exe sends data to the socket and it awaits the response from the third system.
The client of the application is a asp.net web application.
Now when the MessageSend method on the Remote object (Remlib) is called from the asp.net application the event handler on the server.exe is not getting handled.
and because of this i could not send the message to the socket.
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[^]
Last Visit: 23-Nov-20 10:14 Last Update: 23-Nov-20 10:14