|
If I'm not mistaken there is no regular expression for what you need to do because the language you descibed is not regular.
So I guess you will need to write a custom parser or use a parser generator such as this one http://www.codeproject.com/csharp/spart.asp.
--------
Dave
[Math Studio]
|
|
|
|
|
Hi
How do I add a custom MenuItem on a MainMenu,ContextMenu or Menuitem? Is there an event I can override?
I have made a collection designer property on them all, where I can add custom MenuItems, but that only works when using the property editor. What I whant is, when u have f.ex. the MainMenu activated and click on an empty menuitem field, that a custom MenuItem is added instead of the standard MenuItem.
Any hints, workarounds articles? I can't seem to find any.
TIA
-spif2001
|
|
|
|
|
Hi all,
I need some samples for licensing the windows form application.My criteria is whenever user attempting to login the application i want to check the license key which is stored in a database table. The way to generate the license is, wherever application is installed, a KEY is generated with that computers CPU number.When user is logging in, how do we check this, (i.e.) we have application running on a server 10 users who are connecting to a server, we don't have to install the license on all the clients (PC's).
This should be checked only on the server side.
We should check the license when any one connects to a server (MSSQL) (I don't want to install license on every client, it should be only on the server, here ever the MS SQL you have installed or connecting to)
Any body have idea about this type of requirement, please send me the code samples or documentation .
thanks
sastry
sastry
|
|
|
|
|
Considering most machines have their CPUID's turned off by default, and some machine don't even have them, why would you want to create a license key using this number? It's an unreliable source...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I've been playing with the new Visual Studio 2005 beta and am quite impressed with the potentials of the built-in "ClickOnce" deployment scheme.
I've deployed (err, 'published' according to VS) my company's application to a network share using Visual Studio 2005 beta. When I try to run the .application file from the network share, all goes well, until a message box pops up telling me that the application has been blocked because it 'poses a high security risk'.
My question is, is there some way to allow all the users on our corporate network to run the application without having to configure each and every machine? Isn't there some way to make ClickOnce popup a dialog saying "hey it's dangerous, but it's your data. yes/no"?
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
If a Visual Studio application is compiled on a Windows 2000 Professional operating system, even as simple as an unmodified form, and the program is attempted to be run from a computer with a Windows 98 operating system, could this be the reason why the project has an error? Does the file need to actually be compiled on a Windows 98 machine, or is there in fact a version of the .NET framework specifically designed for Windows 98?
Attempting to load a simple form onto a Windows 98 machine, and the .NET framework has been loaded. What could account for the error message, as there is not even a single line of code written on the form that is attempted to be run on the Windows 98 computer. Works fine on Windows 2000 Professional.
|
|
|
|
|
Virtually all of the .NET framework should work on Windows 98. A few things, such as the XP themed visual styles, System.IO.FileSystemWatcher, and a few others don't work on '98.
That said, a default Windows Form app without any user code to my knowledge should work ok on '98. Is the correct .NET framework version installed on the target 98 machine?
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
The error message that I get with just a simple form with no code is as follows: What could be the problem?
Application has generated an exception that could not be handled.
Process id=0xffef253b [-1104581], Thread id=0xffefab87 [-1070201].
Click OK to terminate the application
Click CANCEL to debug the application.
Any advice as to what the cause could be?
|
|
|
|
|
Again, it seems the .NET framework is not installed. Be sure the lastest version of .NET is installed on the target meachine.
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
You can't run the development environment on Windows 98, and compiling on it is not supported.
I agree with the other posts, make sure that the .NET Framework installed on 98 is the same version that you compiled the app under.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to extract the email ids and names (if any) from the emails content. The emails may contain forwarded emails as well, so I should be able to extract the email ids within those forwarded messages too. I want to do it in C#.
Ratsy
|
|
|
|
|
Hi,
Is there anyone can see all exe structures: functions, parameters list, constants, properties or even events?
If anyone can do it, is it possible to use that functions or events?
Thnk
|
|
|
|
|
You can decompile an exe, but you won't get proper variable/function names, and you certainly won't get comments. You'll get code that compiles back into the same exe, with generic names for everything.
Microsoft have a tool to do this, I think it's called disasmil or something.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Christian Graus wrote:
I think it's called disasmil or something.
It's called Ildasm.exe and is located in your \VisualStudio\SDK\v[number]\bin\ directory. If you're doing decompilation, I'd recommend the free Lutz Reflector which can examine .NET assemblies and generate the equivalent IL, C#, VB, or Delphi).
Any remotely useful information on my blog will be removed immediately. There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango
|
|
|
|
|
Judah Himango wrote:
Lutz Reflector
I was just going to post link to Reflector...
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Ok, thx. But can we can do it on unmanaged code?
|
|
|
|
|
short answer: no
long answer: no. Why do you post it to C# forum then? AFAIK C# is managed language (it translates to IL).
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
dnh wrote:
AFAIK C# is managed language (it translates to IL).
Well, you could use ngen.exe[^] to compile an assembly to a native code image and then decompile that into C or whatever you have a decompiler for. I know that this information is 100% useless but I just wanted to complete your long answer.
Best regards
Dennis
|
|
|
|
|
Dennis C. Dietrich wrote:
I know that this information is 100% useless but I just wanted to complete your long answer.
Thank you! Sometimes I feel like that too (in general, not neccessary your answers).
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hey all.
I need to make a program that can make screenshots of other windows (that is other applications in windows). It needs to make continuous screenshots so the my program probably needs to use the HWND information of the window in question. The optimal case would be that my program can make "screenshots" even though the window it needs to capture is minimized, is this possible?
Can anyone help?
Kind regards from Casper
|
|
|
|
|
If the window is minimised, it is not being drawn, and there is nothing to capture.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Yeah, it's not possible to capture a window that is not visible.
/\ |_ E X E GG
|
|
|
|
|
I know how easy .NET made it to create, use, and retrieve custom attributes. My question is not regarding this surface stuff. I'm trying to get at the Target within the custom attribute. This is probably not possible, but I'm still crying and whining until someone tells me to stop!!! I know that the .NET provided attributes do more that a custom attribute does. Ie... SerializableAttribute will actually set the IsSerializable to true in the Type definition of the Target. That's pretty cool in my book and I want to do similar things. Basically, a good example of what I want to do is I have two or three attributes that prompt my code to do certain things. They all mean completely different things, but aren't really meant to be used together...
Example:
EncryptAttribute
SignAttribute
DefaultOutputAttribute
<br />
[DefaultOutput("s1")]<br />
public class c1<br />
{<br />
[Sign]<br />
[Encrypt]<br />
public string s1;<br />
public string s2;<br />
}<br />
Basically I want to know if there is a way in the SignAttribute class definition to test what other attributes decorate the field/class/etc. that I am decorating because I don't want to allow Sign and Encrypt on the same target. I also don't want a class with DefaultOutput set to have any internal fields/properties to have Sign/Encrypted set. I know this is kind of a weird thing to do, but I know there as tons of people that would benefit from having a reference to the Target within a custom attribute.
Any help would be greatly appreciated...
"C makes it easy to shoot yourself in the foot;
C++ makes it harder, but when you do,
it blows away your whole leg."
--Bjarne Stroustrup (inventor of C++)
|
|
|
|
|
- Let Sign and Encrypt inherit from the same base class and prevent multiple attribute instances.
- Play around with accessebility (public, internal, private , etc) of the attribute definitions.
- Attributes really shine when they are applied to a concrete base class. Handle attributes in the default constructor. Here you can deal with all the detail .
top secret Download xacc-ide 0.0.3 now! See some screenshots
|
|
|
|
|
Can someone direct me to the location where I can find the ID's for the various edit control messages like: EM_EMPTYUNDOBUFFER and EM_CANUNDO?
Thank you in advance,
Eric
|
|
|
|