|
I think my first mail should have caught him.
Thanks again for the offer again. Maybe you might want to do a little beta *installation* testing for a free license when I get this rolling? That should be more fun.
Just for the heck of it I looked things over again and decided to turn Compact Framework compatibility off. (I guess I was stupid to think the option meant extended versatility.)
So now when I protect, I get this (different) message string:
Step 1 [Examining] :
Successful
Step 2 [Protection Layer 1] :
Successful
Step 3 [Protection Layer 2] :
Successful
Step 4 [Resign Assembly] :
Successful
.NET Assembly Successfully Protected
New Protected Version Of Your .NET Assembly Created In:
C:\VS2005\N\GC\obj\Release\GCControls_N_Secure\GCControls_N.dll
Please Only Ship Your Protected Assembly Together With 'GCControls_N_nat.dll'
-----
What do you know. That's the first I saw a *nat.dll, and *nat.dll cannot be disassembled. Nor does my GCControls_N.dll seem to have but a little information in it now -- and not much at that.
I don't know what to make of the resource multiplication yet. We have grown from a 60K library to two libraries, one being 67K and the other (*nat.dll) being a whopping 212. Ouch. I expect that means ultimate distributables will be bloated that much.
I am a happier camper however with the arfie dog part barking.
Researching what I can do with a license scheme. I think the cleanest thing will be to do as you have -- write your own.
|
|
|
|
|
There ya go - it worked.
I have compression turned on and the .exe that I distribute is 791k verses about 1.8 meg for the executable and three included dll's.
Glen Harvy
|
|
|
|
|
Wow. Pretty interesting content in *nat.dll, including a string, "This program must be run under Win32"
I wonder if that has anything to do with the 64-bit behavior. In any case, some of the widely spaced strings have me wondering what I'm looking at here (in Notepad). Have you looked at this stuff?
|
|
|
|
|
That's interesting - perhaps NR will explain it.
I haven't bothered with looking at theend result - just as long as no one can easily de-obfuscate it I'm happy.
Glen Harvy
|
|
|
|
|
mike montagne wrote: This is not looking good. It's like all settings are ignored in trial mode, or... ehem. Have you looked at your output with ILDasm? I'm getting the same thing every time -- readable IL, not even obsfucated.
I can send you a screen shot if you like:
---------------------------
ERROR
---------------------------
error : 'D:\VS2005 Projects\MyClubV2\bin\Debug\myclubv2_Secure\myclubv2.exe' has no valid CLR header and cannot be disassembled
---------------------------
OK
---------------------------
Cheers,
Glen Harvy
|
|
|
|
|
I'll get back to you in a bit. I can't send the demo, but... at least it looks like your installation is working. I have no idea why mine won't NR as advertised.
BIG THANKS.
|
|
|
|
|
|
Yes, I have. I tried their online demo, but it doesn't tell me much. I have the download, but haven't installed it yet. I have no idea if it will fill my needs, and I'm not really very hopeful because I know that if I were documenting either product I'd try to make the features I'm looking for jump right out at you. I'm still waiting on answers from Denis at .NET Reactor.
|
|
|
|
|
I am trying to remove a specific column from a listView. The column disapears, but the Items.Subitems do not change at all, and the result is I got mixed columnHeaders and items. What is more surprising is when I am debuging. Then I see that, for example, columnHeaders form 19 become 18, but Items.Subitems stay 19. And in the end of the debuging I see the listView the way it should be! Have no idea why, but when I'm debuging slowly the Remove is ok. Without breakpoints - not ok.
Any help will be appreciated.
10x
-- modified at 12:41 Tuesday 6th March, 2007
P.S. I have just tried with RemoveAt and same ****.
|
|
|
|
|
First post, so hi to all the regulars.
I have a combo box to which I have bound an object. I've set the datasource to my object and the display member to the 'name' property. The combo box picks up the 'name' but only for the first item in the list - for the rest it displays the fully qualified name: that is <namespace>.<class name="">. For example:
ComboBox -> Copy
Plugin.Move
Plugin.Properties
Plugin.Show
The 'name' property is definitely bound and reordering the list proves it's always the first item that fails.
Has anyone come across this before? Any help appreciated.
|
|
|
|
|
i have an image with size "for example" 600*600 and i need to convert it to 200*200..
how is that???
thanks allot
|
|
|
|
|
Create a new Bitmap object with the size you want, use the Graphics.FromImage method to get a graphics object for the image, and use that to draw the original image onto the new image at the correct size.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks allot for reply
but a code example will be better.
thanks
|
|
|
|
|
using (Bitmap bitmap = new Bitmap(200, 200, PixelFormats.Format24bppRgb))
{
using (Graphics gfx = Graphics.FromImage(bitmap))
{
gfx.DrawImage(originalImage, 0, 0, 200, 200);
}
bitmap.Save(@"filename.bmp", ImageFormats.Bmp);
} Or something like that.
|
|
|
|
|
thanks allot
i will try it
it converts from a higher resolution to a lower one, is not it?
|
|
|
|
|
That depends on what you mean by resolution.
It converts an image of any size to the specificed size, regardless if the original image is larger or smaller.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks allot
it really did the job.
|
|
|
|
|
I have control Lable on Form , I wanted to update text propertrty of that control from another class in same namepsace so I expose that label control visa public property . and now I m using that property in my other class for setting text fro that lable .. but the new text is not displaying on Form ???
What I am doing wrong here ???
Class Form1 {
public string updatelable
{
get
{
return label.text ;
}
set
{
label.Text = (string)value;
}
and using it in my other class as
Form1 f = new Form1();
f.updatelable = "abc";
but its not working... what I m doing wrong here ???
Thanks
HELLO
|
|
|
|
|
Hello,
You have to add "this.Refresh()" in the set of your property.
All the best,
Martin
|
|
|
|
|
You can only update the control in the UI thread. You'll need to use invoke, or some other method to update the text on the label.
only two letters away from being an asset
|
|
|
|
|
I am using Asynchronous methods in my extern class and trying to update UI from these methods .
I have created a delegate and delegate method in Form1 class and when I tried to invoke delegate from external class it says definition of invoke does't exist in current reference ... ???
What I m doing wrong here ?
Thanks
|
|
|
|
|
Hello,
For helping you we hav to know a little more.
Please show us the code of:
delegate, invoke call and method;
|
|
|
|
|
Hi all,
i've created a user control, and using too
but now --My requirement is i need to use the same control in the same form many times,
plz help me with solution...
i am trying by taking an array..[but i couldn't proceed]..plz help me asap.
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
Hello,
I don't know why you need an array?
Or do you whant to hold the reference of you controls in your forms class?
int many = 10;
System.Collections.Hashtable AllControls = new Hashtable();
for(int x=0;x<=many;x++)
{
UserControl2 myControl = new UserControl2();
myControl.Location = new Point(10, x*(myControl.Height+10));
this.Controls.Add(myControl);
AllControls.Add(x, myControl);
}
Hope it helps!
All the best,
Martin
|
|
|
|
|
I'm new to C# threads and I was trying to populate a list with a series of threads but my list is not being populated after the threads finish. Some code might help describe my situation:
NOTE: I have left some methods out but I don't believe that will be an issue.
public class ManagerClass {
private List<BeanType> beans = new List<BeanType>();
private static Object lockObj = new Object();
private static readonly int MAX_THREADS = 5;
public List<BeanType> getBeans() {
string[] keys = null;
keys = getKeys();
ThreadPool.SetMaxThreads(MAX_THREADS, MAX_THREADS);
foreach (string key in keys) {
ThreadPool.QueueUserWorkItem(new WaitCallback(getValueThreaded), key);
}
Thread.Sleep(10000);
Console.WriteLine(beans.Capacity);
return beans;
}
public void getValueThreaded(object obj) {
string key = (string)obj;
string value = getValue(key);
lock(lockObj) {
beans.Add(new BeanType(key, value));
}
}
}
That is the jist of it. BeanType is an arbitrary type for the sake of this example.
In the console the list prints out a capacity of 0 every time. Can anyone explain this?
-- modified at 11:20 Tuesday 6th March, 2007
-- modified at 12:24 Tuesday 6th March, 2007
Kelsen
|
|
|
|