|
Are there any compression classes under .NET Framework. I need to zip-compress some files or something similar.
Thanks!
Best regards,
Alexandru Savescu
|
|
|
|
|
Have a look at I C# Code. There's a .NET Zip lib. for download.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Thanks for the link Simon. I am suprised there are no compression classes in the .NET framework.
Best regards,
Alexandru Savescu
|
|
|
|
|
I have a file/structure with polygons that could be either filled or a hole. These are added to or substracted from the "master"-polygon.
If the points in a polygon are in clockwise order the polygon is added. If the points are in counter clockwise order the polygon is substracted.
How can I tell if a polygons points are in counter clockwise order?
Can I use GDI+ classes (Region? GraphicsPath?) for this? (The good old way of finding the angle between the first two vectors in the polygon is way too time consuming. I have a lot of polygons to manage!)
-Øyvind
|
|
|
|
|
What software protection strategy are you using under .NET?
Do you know if any company selling protection system?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I haven't seen many full blown ESD applications with support for .NET. Most of the offerings at present appear to be obfuscators, with the intention of protecting the developers IP by making IL as difficult as possible to reverse engineer.
One vendor I have noticed is Crypkey (http://www.crypkey.com) has announced support for the .NET platform with its products. I'm not too sure about how secure their software is -- astalavista.box.sk might be a good resource to check out (beware though, popups are of a slightly dodgy nature).
I guess it depends upon what you need in a package. If its just to prevent others from understanding your algorithms etc., then an obfuscator may be all you need. If you need to limit people to trial periods etc., then you'll need something more advanced (but probably also an obfuscator to stop others from determining how to patch your protection). If you need a complete ESD solution then it gets even more complicated.
I think the key way ahead will be the opportunities available with web services, the ability to place parts of logic onto a separate server (under your control) which could quite happily protect logic from prying eyes, and/or patching. However, this would have to be done in a certain way to prevent users becoming annoyed with slow start-up times etc.
Incidentally, this was something I was considering looking into and writing a (speculative) article about possible protection schemes using .NET web services.
As another side note, since there are few .NET applications out there, I don't think there's a great body of knowledge in the cracking community, so for the short term you may have a marginal advantage
|
|
|
|
|
I call this function to remove the last item in a listview in details view. The problem is that the control is on a tab page, and if i call this function before the control has been viewed(ie. before the tab page with this control is shown), this function fails with the inner exception of message "Object reference not set to an instance of an object", and, the regular exception of "unable to create handle". This only happens if the control is not viewed first. Can someone help me out here.
public void RemoveLastItem()
{
int index = Items.Count;
try {
Items.RemoveAt(index-1);
}
catch(OutOfMemoryException e){ // Error is caught here!! Why ????
#if DEBUG
MessageBox.Show(e.InnerException.Message);
MessageBox.Show(e.Message);
#endif
}
catch(NullReferenceException e){
#if DEBUG
MessageBox.Show(e.Message);
#endif
}
}
|
|
|
|
|
Does dotNet will work on Apples Mac OsX in future ???
If not, dotNet is not the right thing, to be base of cross-platform development
Has anybody an idea, what the future with apple ???
|
|
|
|
|
.NET does not necessarily intend to be cross-platform but its design is such that it could be. See the mono project: http://www.go-mono.com/
Kevin
|
|
|
|
|
considering that Microsoft's Rotor project is an implementation of the clr that runs on FreeBSD, I don't think it's such a strech that they could be planning a port for MacOS X.
|
|
|
|
|
I was under the impression that the new OS X was based on FreeBSD.
If this is right, then I don't see why the MONO version of .NET wouldn't run on it.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Hi all,
I have MS Visual C++ .NET standard installed on my PC.
I created a MFC dialog-based application with the help of wizard.
During compliation I get the following error:
error:C2065: 'ID_FILE_EXIT': undeclared identifier c:\Program\...\afxmsg_.h
error:C2065: 'ID_STUFF_GO': undeclared identifier c:\Program\...\afxmsg_.h
error:C2065: 'hIcon': undeclared identifier c:\Program\...\afxmsg_.h
error:C2065: 'hIconSm': undeclared identifier c:\Program\...\afxmsg_.h
Why I get these errors, have I missed some path info?
Any kind of help in this regard
regards
/rsasalm
|
|
|
|
|
Hi,
I have not touched .NET till now.
But I would like to try some programming now.
My question is can we program .NET in
VC6 ?
Can you please give me some idea on how to
do it ?
PS: Obviously we can use the platform SDK
for programming for .NET(I think).
But I would be missing the Wizards & stuff
in VC.NET.
|
|
|
|
|
Prem Kumar wrote:
My question is can we program .NET in
VC6 ?
No.
I vote pro drink
|
|
|
|
|
|
This is what I'm looking at doing via code:
Instantiate an instance of IE, direct it to site X and then take a screen shot of the completed page.
How can I do this?
Maybe get a handle to the newly created process and then send a windows message to it and ask it to take a screen dump of itself?
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
In XP and .Net Server, you can use the PrintWindow function. In anything else, it gets more complicated. Have a look at this sample on GotDotNet.com for some ideas.
|
|
|
|
|
Thanks.
I gave this a try, but the WindowAsBitmap returns null.
Have you tried this before?
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Part of the problem with the original code was that it relies on bringing the window to the top, which doesn't always work on W2K/XP. I got it working in VB.Net on XP by modifying the code to use the PrintWindow API:
#Region "API"
Private Declare Function GetDesktopWindow Lib "user32" () As IntPtr
Private Declare Function GetWindowRect Lib "user32" (ByVal hWnd As IntPtr, ByRef rect As Rectangle) As Boolean
Private Declare Function PrintWindow Lib "user32" (ByVal hWnd As IntPtr, ByVal hDC As IntPtr, ByVal nFlags As Integer) As Integer
#End Region
Private Shared Function ImageFromWindow(ByVal hWnd As IntPtr) As Image
If IntPtr.Equals(hWnd, IntPtr.Zero) Then Return Nothing
Dim myImage As Image
Try
Dim rc As Rectangle
GetWindowRect(hWnd, rc)
Dim lW As Integer = rc.Width
Dim lH As Integer = rc.Height
If lW = 0 OrElse lH = 0 Then Return Nothing
myImage = New Bitmap(lW, lH)
Dim grImg As Graphics
Try
grImg = Graphics.FromImage(myImage)
Dim iDC As IntPtr
Try
iDC = grImg.GetHdc()
PrintWindow(hWnd, iDC, 0)
Finally
grImg.ReleaseHdc(iDC)
End Try
Catch
myImage.Dispose()
myImage = Nothing
Finally
grImg.Dispose()
grImg = Nothing
End Try
Finally
End Try
Return myImage
End Function
Public Shared ReadOnly Property DesktopAsBitmap() As Image
Get
Return ImageFromWindow(GetDesktopWindow())
End Get
End Property
Public ReadOnly Property WindowAsBitmap() As Image
Get
Return ImageFromWindow(hWnd)
End Get
End Property
It should be fairly easy to convert back to C#.
Also, Nish has an article on a similar topic for C++: http://www.codeproject.com/managedcpp/ijwscrcap.asp#xx174639xx
|
|
|
|
|
Thanks for this, Richard.
I'll have a bash at getting this to work in my app.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
I am looking for a free library for creating floatable docking windows (like the VS.NET IDE).
Can anyone help me with this? (it has to be freeware)
Øyvind
|
|
|
|
|
Øyvind Bratland wrote:
free library for creating floatable docking windows (like the VS.NET IDE)
Check out dotnet Magic.
I'd be interested in hearing your experiences with this.
Cheers,
Simon
"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)
|
|
|
|
|
Thanks! I'll have a look at it.... looks good.
Øyvind
|
|
|
|
|
Hi
I'm currently working with Visual Studio.NET Professional and am trying to integrate an FTP client into one of my programs. What would be the best way to do this? Code the FTP client myself from the ground up, or is there an FTP script available here at codeproject I could use. Any help greatly appreciated.
Thanks
|
|
|
|
|
Try this...
http://www.codeproject.com/csharp/FTP.asp
|
|
|
|