|
What Expressions?
I can't block or change input key data, how can i do it?
And Witch Expresioun vould help to get current verzion of app?
|
|
|
|
|
1. Override Control.OnKeyPress Method[^] and there check if pressed key was number... you can do this in many ways, I'd try char.IsNumeric or something like that (lazy to look it up )
2. Reflection: System.Reflection.Assembly.GetAssembly(this.GetType()).AssemblyName.Version
Check it in MSDN.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
OK,...I'm a maniac, but I was thinking of writing some fairly simple assembly routines to use in a Managed C++ application. If you go over to the MSDN site, they tell you this:
"For functions declared with the naked attribute, the compiler generates code without prolog and epilog code. You can use this feature to write your own prolog/epilog code sequences using inline assembler code."
You can see the Microsoft specific implementation at this page:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_pluslang_the_naked_attribute.asp[^]
Anyway, another thing that the Microsoft specific people tell you is that: "The naked keyword is ignored when compiling with /clr."
What I don't understand is what they refer to as the Prolog and Epilog code that the compiler automatically inserts.
By the way, I got this maniacal concept while reading the book: "Assembly Language for Intel-Based Computers, Fourth Edition", by Kip Irvine, 2003.
Anyone ever have any experience with this sort of thing?
I'd appreciate ANY intel, no matter how obscure and trivial.
|
|
|
|
|
ursus zeta wrote:
What I don't understand is what they refer to as the Prolog and Epilog code that the compiler automatically inserts.
The compiler automatically inserts code to save the stack pointer (mov ebp, esp), test for stack overflow, and possibly push a couple registers, often ebp, edi and esi. The epilog pops those registers and restores esp. It saves esp because local variables are placed on the stack, and this is simple way of returning the stack pointer to the proper state before doing a return (which, BTW, should also pop off any parameters pushed onto the stack before the function was called, unless you're using PASCAL calling convention, which requires that the caller pops the parameters off).
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Marc,
Thanks alot,...that is EXACTLY the information I was looking for. I appreciate it.
|
|
|
|
|
Hi,
I recently bought an ASP.NET 2.0 book, but I'm now looking for a more general book that will cover what's new in the framework (WinForms and ASP.NET, but mostly WinForms). There are tons of ASP.NET 2.0 books out there, but I can't find any good WinForms or Framework 2.0 books.
Recommendations anyone?
Thanks!
|
|
|
|
|
|
I know about MSDN, but the way things are organised is a royal PITA. Especially since I'm going on vacation and want to bring a book with me.
|
|
|
|
|
Anyone know how to create textbox without border in .Net Compact framework running in Pocket PC?
Thanks in advance.
|
|
|
|
|
i want to know what is the difference between the visual c++ and visual c++.net.from where the difference is in writting classes or something else.
what is the best book for visual c++.net
ddd
|
|
|
|
|
Visual C++ .NET is also known as Visual C++ 7.x. Visual C++ 7 is a newer version of Visual C++. It contains newer versions of C++, MFC and ATL. But it also includes Managed C++ for developing .NET applications or for integrating legacy code with .NET. Which book you should get very much depends on what you mainly want to do with Visual C++. No one book will be the best for everything.
Kevin
|
|
|
|
|
Hi,
You wont find easily, but there are some sites.
Try www.rapidshare.de , they have -believe me -tons of ebooks
Thx
|
|
|
|
|
how can i configure .net framework to work with Microsoft Visual Studio .net 2003 which uses version 1.1. Is it possible or not.
leo
Kathmandu, Nepal
|
|
|
|
|
|
Download the express editions if you want to try it.
|
|
|
|
|
could you plz send me the link of the express.
leo
Kathmandu, Nepal
|
|
|
|
|
|
Apparently there are SFTP and FTPS open source libraries out there for Java, and none for .NET. So now I have to put my Java Hat back on and leave .net Behind for a while...
Sigh, I so wish that the open source movement would intrude more into the .Net Farmework.
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
Perhaps you shouldn't wait around for someone else to do it and put a (S)FTP package together yourself for .NET
Also, what would happen if you tried to import the Java into VS? I've read that it will try and import it for you (don't know if this is right, I didn't really follow it too closely), maybe that will get you somewhere near??? (And then you can put that on SourceForge for the rest of us
|
|
|
|
|
Hi...
I want to Encrypt and Decrypt a stream of data using the RSACryptoServiceProvider.
But the problem is that it throws an error saying: "Bad Length".
Heard that there is a limit to the KeySize. How can I overcome it? Tried the overloaded constructor:
RSACryptoServiceProvider RSA = new RSACryptoServiceProvider((int)dataStream.Length * 8); //dataStream, a MemeoryStream object containing the data.
But no use..
Any help?
Regards,
Ganesh.
|
|
|
|
|
Since I've imported the Microsoft.Web.UI.WebControls.DLL he sometimes gives this error (see below). When I try to modify the dll in explorer he say's I can't, because the DLL is in use. Sometimes it helps to reboot VStudio and there are othertimes when I completely must reboot Windows.
During this project I've imported other DLL's which gave the same error, so it isn't particularly this DLL.
Is this a common problem? Does anyone knows how to solve this.
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.WebControls
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/wexs
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.Web.UI.WebControls
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/wexs/3b1373ac/81fbef07/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/wexs/3b1373ac/81fbef07/Microsoft.Web.UI.WebControls/Microsoft.Web.UI.WebControls.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/wexs/bin/Microsoft.Web.UI.WebControls.DLL.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Microsoft.Web.UI.WebControls, Version=1.0.2.226, Culture=neutral, PublicKeyToken=null
|
|
|
|
|
Jaymz666 wrote:
When I try to modify the dll in explorer
Modify the .DLL? Why?! There's no reason to do this that I can think of. You can't do anything with the file until the application that imported it is terminated. If you're working with an ASP.NET app, the termination point is NOT when you close the browser or stop the execution of your code in the debugger. The application is terminated when the last session that was using it terminates, usually about 20 minutes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Whoahh... that makes sense!
(By the way, what I ment with modify the DLL is try to change his name to check if the file is in use.)
Is the Session 'timing' variable? Where can i set it to like 5 minutes?
|
|
|
|
|
Hi,
Here i required some help in architecuring my Project.Here is whole senerio.
My project is already made in C# which is having around 60 .cs files.In my project,there is one main form and from that form i am calling and using all others .cs files of whole project.Currently there is somany coding available into main form.
Here another thing is that we are not using any database like sql or oracle but storing data into xml files as this is project requirement.
Now main thing is that as we had decided to build proper architecture of this project by which we can make it like library.Now from where to start i am confused so can anybody help me out here.
thanks.,
regards.,
|
|
|
|
|
Well, it sounds like all your code apart from the main form is just providing business logic for that form, and therefore could be moved into a library and imported into the project. Why do you want to build a library ? What benefit are you looking for ?
Christian Graus - Microsoft MVP - C++
|
|
|
|