|
Thanks Christian!
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
*grin* no problem.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Grr bloody formating...
I'll try again...
List<YourClass> CollectionOfYourClassObjects = new List<YourClass>();
--
Cheers,
Gary
http://www.garyshort.org
|
|
|
|
|
You would do better to use a List, as you can add and remove items from it. List<myClass> Otherwise, you would do myClass[] coll = new myClass[10] ( for example, to create an array of 10 items ).
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
use this logic:
ClassName[] obj = null;
obj = new ClassName[size];
|
|
|
|
|
hi,
i have found many of ur articles very helping but i have to make a project on a keylogger in c# that should show the details of the current user including his login/logoff details, screen saver on/off details, application opening and closing details etc. plz reply me as soon as possible with ur helpful assistance.
thank u
|
|
|
|
|
I can't think of any non malicious use for the software you want to write
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Why on earth do you think you'll get help here on an issue that, at first second and third glance, seems to be a malevolent purpose. I can't think of many legitimate uses that you could put keylogging to. Check the site - it's codeproject.com not hackerzrus.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
how to create custom format validation ?
I want to know about the any converter which can convert validation in to regular expression
|
|
|
|
|
What do you mean ? There are regular expression validators. Are you talking about ASP.NET ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes I am talking about regular expression. but In my case it is not static. so i can not directly specify regex validation. For this I want one convector which will convert given expression to the regex. so I can set this converted expression as validation.
|
|
|
|
|
You want to set your regex at runtime ? Again, is this ASP.NET ? Where does the regex come from ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
yes at run time i want to apply regex on text box in asp.net. one expression which is like ##.## (ex 34.56) is stored in database . I need to convert it into regex and want to apply to the text box for that field.
|
|
|
|
|
OK. First of all, we have an ASP.NET forum. If you want to do things dynamically on the client end, then this is vital, b/c you will want jscript, not C# solutions.
you can set the regex applied to a regex validator in your code behind, this is not an issue. Generating regex from a number, is not really possible. I mean, there are tons of different regex which all will match 34.56. If the regex is always a double, and you just want to set the number of significant figures each side of the decimal, that's pretty trivial. \d{2}\.\d{2} will match the above, and you can just change the number to change how many figures there are on either side.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I want validation in asp.net - textbox but i want to create one function which can take expression from database and convert that expression in to regex. so this will be C# Lib only.
Thanks.
|
|
|
|
|
OK - you didn't add anything to what you told me before, so I have nothing further to add, either.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have tried a lot on google and did some coding for saving the form in a access database but it dint work so if u have any clues or suggestion tell me
THANK U
|
|
|
|
|
You can't save a 'form'. You can save the state of a form, and then recreate the form's state from that data.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Should allow minus sign '-' at first position(index) only
should not allow in between
Thanks in advance
Praveen Kumar palla
|
|
|
|
|
Hmm.. Create a KeyDown event and then check for the input character.
If its what you want.. then allow it.. or else cancel it.
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
Can anybody help me in dynamically linking to a ActiveX.exe created with VB from a C# program. I also need help to access the exposed function in the ActiveX.exe.
Thanks in advance..
|
|
|
|
|
Add a reference and use it when you want.
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
thanks Swader,
but I want to load and create object in the run time, 'cos if we add it as reference I will will have to recompile my program each time the dll version changes..
|
|
|
|
|
Nope.. Thats the feature of .net that you wont need to recompile your project unless you want to use the new features of the dll
------------------------------------------------------------------
Life would have been much easier if I had the source-code!!
|
|
|
|
|
but Is it true if the dll is created in VB6..??
'cos now I need to change references in my program each time anything changes in the VB dll
|
|
|
|