|
Hi...
I have a really strange behaviour in a piece of code where I'd like to encrypt and decrypt data. I wrote a small program to test, when I saw that everything was working fine I did a copy/paste of that code in my main app...
I can't understand why: in my main app the decryption, when I do the FlushFinalBlock(), throw me a Bad Data...
The strange thing is that when I encrypt in my main app, the decryption in my test program works fine...
any idea?
Thanks
|
|
|
|
|
I got a similar behaviour when I didn't close the encrypt stream correctly. It didn't write the final bytes until I did that.
|
|
|
|
|
I have written a small app for displaying a web site, the app will check where the navigation is going etc before alowing to proceed.
everything works well apart from one thing, one of the pages has a map written in flash, now when viewed using ie you can drag an item around the map, when i view in my app the flash map is very jerky and doesnt alway move the item round the map... i am wondering if there is something in the program which could be taking the focus and not allowing the flash to work properly...
anyone got any ideas ??
Thanks
Lee
|
|
|
|
|
We've seen various issues with Flash as well, and with the WebBrowser in general. There seems to be some mouse activation/clicking bugs that are caused by the managed WebBrowser. I'd try using the unmanaged mshtml COM component (upon which the WebBrowser is based) and see if anything is fixed for you.
|
|
|
|
|
Hi All,
I need to know how can i find some windows id -
I will explain - some application launch my win-form application - this my Form need to be on always on top of this application. So i want need to know the windows id of the application.
I can know the title of this application ( with windows title ).
Thanks for the help.
|
|
|
|
|
You would need to use the FindWindow function from the Win32 API. Check this[^] out for an example of finding the window handle.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
HI,
I like to know this :
if someone wrote an Interface using VS 2005 C++
Can i Use it In my C# APP?
THANKS
Have Fun
Never forget it
|
|
|
|
|
I think you can, if it's compiled into a .NET dll.
|
|
|
|
|
If it's a managed C++ interface, then yes. Check this[^] out for an example.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
THNKS
that really Halped
Have Fun
Never forget it
|
|
|
|
|
half-life wrote: if someone wrote an Interface using VS 2005 C++
You think "an Interface" is specific? What is your background? Are you web developer?
|
|
|
|
|
|
half-life wrote: an Inerface Like ImyInterface
Which need's to be implemented
Virtual Func....
Only if it is developed as a Managed interface using C++/CLI. A native C++ interface is a class and cannot be accessed from managed code.
|
|
|
|
|
|
I am trying to get Mono.GetOptions to work in my CSharp application that I am building using VS 2005. The application is failing to compile, complaining that my Options subclass does not contain an data member. However, I have clearly defined this member, and it shows as being part of the class when using the Class Browser interface.
Here is the message - "Error 1 'Mono.GetOptions.Options' does not contain a definition for 'file' "
but file is in the class as "public string file" .
Any ideas on what I can do to fix this issue? I will even take suggestions on using a command line parser that is similar to GetOptions.
John Gooch
|
|
|
|
|
You will need to post more code to get a better answer. But I'm assuming that you need to cast the return value of the Mono.GetOptions to your custom options type. Mono.GetOptions will return an object of type Options. If you have a custom Options class, say MyOptions, then you need to cast it to that type in order to access it's members. Like so:
MyOptions o = (MyOptions)Mono.GetOptions(...);
String s = o.file;
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Here is the where I define the class:
<br />
public class SampleOptions : Options <br />
{<br />
[Option("Write report to FILE", 'f')]<br />
public string file;<br />
<br />
[Option("don't print status messages to stdout", 'q')]<br />
public bool quiet;<br />
<br />
[Option("Sample int option", "use-int")]<br />
public int use_int;<br />
<br />
public SampleOptions()<br />
{<br />
base.ParsingMode = OptionsParsingMode.Both;<br />
}<br />
}<br />
<br />
And then I create and use it as per the example I linked to above(It errors on the Console.writeline line) :
<br />
static void Main(string[] args)<br />
{<br />
Options myoptions = new SampleOptions();<br />
myoptions.ProcessArgs(args);<br />
<br />
Console.WriteLine("File name is {0}.", myoptions.file);<br />
<br />
}<br />
<br />
<br />
<br />
John Gooch
|
|
|
|
|
Your problem is with the following line and is what I suspected:
Options myoptions = new SampleOptions();
The myoptions variable is of type Options, not SampleOptions. Eventhough, the actual instance is a SampleOptions, since the variables type is Options it cannot see the file field (which is defined in SampleOptions).
If you update your code to be:
SampleOptions myoptions = new SampleOptions();
Then myoptions will be of type SampleOptions and will be able to see any fields defined in it.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Hi,
My project windows application.I createn report with Crytal Report in VS.2005.NET.
My creating report code :
CrystalReport_myreport Report= new CrystalReport_myreport();
Report.SetDataSource(MyDataTable);
crystalReportViewer1.ReportSource = Report;
This report work server but client computers give error: LOAD REPORT FAILED
Why client computers give error???
Thanks
|
|
|
|
|
Hi
I have a problem to resize a page in asp.net.
I have a button in page "A.aspx" .When i click the button i want to open a child page.
The size of the child page would be specified by me.How can i do this.Please suggest me.
Arnab
|
|
|
|
|
Sorry To Say It
But U are Not At The right Forum
Try the ASP.NET Forum
Have Fun
Never forget it
|
|
|
|
|
|
Does C# have any similar data view such as the one in utorrent where each item is in different row with its column data?
I want to make a list of items stored in an Access database to display
|
|
|
|
|
Try Using The ListView
It Looks A lot like What you're Asking
P.S
What About DataGridView???
Have U tried It?
Have Fun
Never forget it
|
|
|
|
|
thanks, i havent checked the datagridview. i might do that later
another question regarding the tables
i choose the View to details and set some test rows. when i run the program and click on each row, the entire row wont get selected. if i click on the first column only that row and column will get selected. is there a way to get the entire row selected?
its not an important thing. but i think its neater than the current one
|
|
|
|