|
Hi,
I have an application which part of its code should be done in script code in order to be modified by the user. I also should need to pass information to this script code, like instances of objects already created.
Is there any way to do it?, is there any sample or direct reference which explains it?
Thanks in advance,
Edgar
__________________________________________
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
I'm proud to announce the release of our first product Aspose.Obfuscator 1.0 on October 6, 2002! Aspose.Obfuscator is a .Net assembly obfuscator. With it, you can:
1. Obfuscate .Net Exe files while reserve all necessary names by itself
2. Obfuscate .Net Dll Files while reserve all necessary names by itself
3. Obufcate Asp.Net applications while reserve all necessary names by itself
4. Obfuscate applications whose type information is decided at runtime while reserve all necessary names by yourself
You can find more information at http://www.aspose.com and your comments or suggestions will be greatly appreciated.
Thanks,
Aspose Support Team
info@aspose.com
Aspose Pty Ltd
A .Net Component Developer
http://www.aspose.com
|
|
|
|
|
Nice cross-posting.
Who cares an obfuscator? We developers are spending most of our time trying to understand how .NET works. So obfuscation is just a useless thing to worry about.
You'd better improve your website. 15 clicks or so before I get anything shown on screen.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
StephaneRodriguez wrote:
Who cares an obfuscator?
YES, we obfuscate enough here in the forums
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
Who cares?
This topic is very important (strategicquestion ) for me. And I wonder what is the best obfuscator.
|
|
|
|
|
i have created a setup wizard type project in dot net.
it contain an exe file that contain a service.
i want to install it during the setup wizered.
so that i could not do any thing manually.
i know its possible because i have seen many examples like that.
what stapes i have to perform to do that?
r00d0034@yahoo.com
|
|
|
|
|
I find some errors can not be caught in its original position if it is called in FORM_PAINT event.
a simple example, the hello function will raise a null pointer error.
In Paint, the debugger in VS will show highlight at Main, the root caller of whole application.
But in Click, the debugger will show the right error raising position in hello().
So what's on earth, the VS can't find the error source while it is called by Paint?
I recently turn all the Paint debug work to a click event.
But is there any setting to make Paint event accept the error?
void hello()
{
string s;
s = null;
s.IndexOf("hello");
}
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
hello();
}
private void Form1_Click(object sender, System.EventArgs e)
{
hello();
}
|
|
|
|
|
The OnPaint() method is called by the guts of the WinForms library, and is wrapped in a try/catch block. The exception is being handled in a catch() handler there, which is why the debugger reports to you that it does not have the source code for the execution point.
You can handle this two ways:
- You can use the Debug | Exceptions dialog box to tell VS.NET to break immediately after any exception is thrown (whether or not it is handled). This will cause VS.NET to break inside your OnPaint() method.
- You can wrap your entire OnPaint implementation in a try/catch block so you handle all exceptions yourself (and possibly re-throw ones you can't recover from).
I would suggest the second option.
--
Russell Morris
"Have you gone mad Frink? Put down that science pole!"
|
|
|
|
|
how can i achieve video streaming using .NET technology. that is, capture video from my logitech web cam and transfer it to client broswer?
thank you.
regards
yccheok
|
|
|
|
|
|
quite nice. that that is nothing to do with live video streaming
|
|
|
|
|
|
------------------------------------
Bitmap b = new Bitmap("\\live.jpg");
this.pictureBox1.Image = b;
------------------------------------
i make my picture box point to live.jpg. when i try to edit the live.jpg (ie:when i try to replace the live.jpg, or i try to call Bitmap.Save("live.jpg") in another thread), i was not allowed to do so.
i try to change the code to:
------------------------------------
Bitmap b = new Bitmap("\\live.jpg");
this.pictureBox1.Image = b;
b.Dispose();
b = null;
------------------------------------
this will cause the run-time error n make the picture box diaplay a BIG cross instead of the content of live.jpg.
i then try to duplicate the bitmap using:
------------------------------------
Bitmap b = new Bitmap("\\live.jpg");
this.pictureBox1.Image = b.Clone(new Rectangle(0, 0, b.Size.Width, b.Size.Height), b.PixelFormat);
b.Dispose();
b = null;
------------------------------------
now, i still cannot edit the live.jpg (ie:when i try to replace the live.jpg, or i try to call Bitmap.Save("live.jpg") in another thread).
how can i release the handle to live.jpg file and at the same time let the picture box to have the content of live.jpg.
thank you.
regards
yccheok
|
|
|
|
|
Hi,
Just wondered if anyone has tried this already?
I'm trying to write a button control that use
APIs in uxtheme.dll to draw its background image.
I also want to have an alpha blend option for the
button. My solution is to draw the theme background
on a temporary bitmap, do the alpha blending, and
then, copy it to the screen.
But here comes a problem. If theme background already
contains some pixels which are semi-transparent, these
pixels are drawn in black color on the target bitmap.
While there isn't any problem if I want the theme
background image to be drawn on the screen (alpha pixels
are rendered correctly on the screen, perfectly drawn on
top of whatever sits there.) Does anyone know the
solution to draw a theme background correctly onto a
bitmap?
Thanks
Li-kai Liu
|
|
|
|
|
how to uninstall a software programatically ?
r00d0034@yahoo.com
|
|
|
|
|
how to creat a setup project that will install an application through a wizerd ?
how to creat DNS programatically ?
how to logoff and login programatically ?
r00d0034@yahoo.com
|
|
|
|
|
I hope anyway!
I want to do (for example):
StreamReader sr;<br />
if (cond1)<br />
sr = new StreamReader(@"C:\temp.txt");<br />
<br />
for (int i = 0 ; i < 100 ; i++)<br />
{<br />
if (cond1)<br />
sr.WriteLine("{0},{1}",v1,v2);<br />
}<br />
<br />
if (cond1)<br />
sr.Close()
but the compiler flags up (sr) as unassigned. What's the easy way out of this?
Rgdz
B.
|
|
|
|
|
Why are you writing to a StreamReader?
My guess is that you really want a StreamWriter and because the file doesn't exist, new StreamReader(...) , it's returning null .
Paul
|
|
|
|
|
Oops, sorry typo. I wish that was the problem!
The trouble is I only want to use the StreamWriter (!!) if a certain condition is true. Otherwise, don't use it. Since C# uses references, if I don't declare it, the compiler flags it as null regardless of what conditional it's inside
In C++ I could do:
Writer* pWriter;<br />
if (cond1)<br />
pWriter = new Writer;<br />
<br />
if (cond1)<br />
pWriter->WriteLine()<br />
<br />
without any trouble, which is what I'm trying to achieve in C#
Rgdz
B.
|
|
|
|
|
Barry Lapthorn wrote:
Oops, sorry typo. I wish that was the problem!
Well, you said it was simple.
If I'm understanding you correctly, I think this might help.
You can set a StreamWriter to StreamWriter.Null which does all the work for you. You can write to it as much as you like and it all just disappears into Bill Gates ass (or something like that ).
Paul
|
|
|
|
|
Almost but I want it for a generic object as well. I think the next item in the thread answers it.
I'm a C# noob I'm afraid
B.
|
|
|
|
|
Sorry, yeah, I missed the point completely again. My biggest fault is always looking for something bigger than it actually is. I should have read the bit about assignment a bit more carefully
I'd still advise using StreamReader.Null [edit]StreamWriter.Null, duh![/edit] purely because it means you don't have to worry again about whether it's null or not.
Paul
|
|
|
|
|
I wasn't exactly on top form either as the compiler error message does actually say that the variable was unassigned/undefined! Which tells you that you should set it to something. Doh!
Thanks
Barry
|
|
|
|
|
Paul Riley wrote:
My guess is that you really want a StreamWriter and because the file doesn't exist, new StreamReader(...), it's returning null
I didnt even see that!
Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
|
|
|
|
|
StreamReader sr = null;
That should the compiler behave null is an assignment.
Give them a chance! Do it for the kittens, dear God, the kittens!
As seen on MS File Transfer: Please enter an integer between 1 and 2.
|
|
|
|