|
I Dont have GINA.DLL. Where I can find it.Please tell me. T_T
|
|
|
|
|
Look for msgina.dll
Read this too[^]
But, this method is among the more complex. I hope you realize that Windows is quite often unstable even when left alone. What you are trying to do is only adding fire to the flame. I suggest picking a less obtrusive method.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I Cant convert c++ to C#.Because It is VS6 Source code. Can you convert it? Show me for example,please.
ps Thank you sor much for every one.
-- modified at 0:55 Wednesday 23rd August, 2006
|
|
|
|
|
I don't have time to convert the code, but you could just use Antonio Feijao's WinLockDll.dll.
using System.Runtime.InteropServices;
...
[DllImport("WinLockDll.dll")]
public static extern int CtrlAltDel_Enable_Disable(Boolean bEnableDisable);
...
CtrlAltDel_Enable_Disable(false);
Nice and easy.
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Thank you...So muchhhhhhhhhhhhhhh. but I don't know any function about other key. alt +tab, alt + f4, ctrl + shift + esc ,win key etc. tell me for how to use function for that key in c#. Thank you.
-- modified at 12:35 Wednesday 23rd August, 2006
|
|
|
|
|
hi all....
Is there any testing tool available for testing the performance of a Desktop Application or windows Application developed in C#.net2005...
Thanks in Advance...
|
|
|
|
|
You can use the free CLR profiler[^] by Microsoft to profile the memory usage of your application, which affects performance. You can use the NPerf Framework[^] to write some performance tests in an NUnit-like fashion.
For more advanced things, there are some good 3rd party .NET profilers that tell you how long each line of code is taking. The one we use at work is ANTS Profiler[^], which give you per-line timings.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Dumbest. Movie. Title. Evaaar.
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Dear colleagues,
I have a simple question to the following function
void fct<t>( T x) {
is x numeric???
}
How can I determine if a variable x is numeric type ( char, short, decimal, double ...)?
With kind regards ! ! !
|
|
|
|
|
|
|
Knowledge Base
HOW TO: Implement Visual Basic .NET IsNumeric Functionality by Using Visual C# .NET
This step-by-step article describes how to use the Microsoft Visual Basic .NET IsNumeric function in Visual C# .NET. The IsNumeric function returns a Boolean value that indicates whether an expression can be evaluated as a number. The IsNumeric function returns True when the data type of the expression is Short, Integer, Long, Decimal, Single, or Double. It also returns True if the expression is a string that can be successfully converted to a Double.
Create the IsNumeric Function
In Visual C# .NET, you can use the Double.TryParse method to obtain functionality that is similar to IsNumeric. Double.TryParse
converts the string representation of a number in a specified style and culture-specific format to its double-precision floating point number equivalent. To create the IsNumeric function:
Start Visual Studio .NET. On the File, point to New, and then click Project.
In the New Project dialog box, click Visual C# Projects under Project Type.
Under Templates, click Console Application, and then click OK. By default, Class1.cs is created.
At the end of the Class1 class, add the following code for the IsNumeric function:
static bool IsNumeric(object Expression)
{
bool isNum;
double retNum;
isNum = Double.TryParse(Convert.ToString(Expression), System.Globalization.NumberStyles.Any, System.Globalization.NumberFormatInfo.InvariantInfo, out retNum );
return isNum;
}
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
With the same table of MS Access Database I can retrieve sucessfully most of the record by comparing records with strings. But when I try to search records comparing with DateTime I always catched errors! Here are my trial SQL's for searching from 1st Jan 2006 to 2nd Jan 2006:
<br />
strSQL = "SELECT * FROM Table1 WHERE DayStart >= '20060101' AND DayEnd < '20060103' ";<br />
or
<br />
strSQL = "SELECT * FROM Table1 WHERE DayStart >= #01/01/2006# AND DayEnd < #03/01/2006# ";<br />
The same later SQL worked perfectly with VB.net (same table)
Many thanks for any help
|
|
|
|
|
I am in the planning phase of developing a 3D feature in a C# gui project. It is supposed to run as a window inside a C# MDI GUI. I was planning on using OpenGL for this as I have some knowledge of it from an earlier C++ project. Is it possible to code OpenGL with C#? I have read a little about the Tao project.
Another thing is to have some sort of scene graph so I thought of OpenSceneGraph.org, but this is written in C++. Is it possible to develop the 3D application with OpenSceneGraph as managed C++ and run it inside the C# MDI GUI?
- Atle
|
|
|
|
|
Atlemann wrote: Is it possible to code OpenGL with C#?
Yes, the Tao project does exactly this.
Atlemann wrote: Is it possible to develop the 3D application with OpenSceneGraph as managed C++ and run it inside the C# MDI GUI?
Sure, you can wrap the native C++ calls with C++/CLI calls that are visible to all other .NET languages.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Dumbest. Movie. Title. Evaaar.
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
I'm working with an MS Excel spreadsheet that contains 2 additional pivottables. When I update this spreadsheet, the 2 pivottables should update as well but currently, they do not.
So my problem is the pivottables do not take into account the possibility that when I update my spreadsheet, there may be more rows than there were before (i.e. if the pivottable was reading the data from the 1st 20 rows of the spreadsheet before, it's still only going to look for the 1st 20 rows after I update the spreadsheet. Even if there are now 50 rows of data). So how do I edit the range of a pivottable?
Does anyone know how to correct this or know of a tutorial?
thanks.
-Goalie35
|
|
|
|
|
Dear Respected programmers
Please convert this command lines into C# Language :-
if IsNull(objRecordSet.Fields("SNO").Value) = Ture then
strYesNo = "Yes"
else
strYesNo = "No"
endif
Thank you very much
|
|
|
|
|
if(IsNull(objRecordSet.Fields("SNO").Value) == true)
strYesNo = "Yes";
else
strYesNo = "No";
or even shorter:
(IsNull(objRecordSet.Fields("SNO").Value)) ? (strYesNo = "Yes") : (strYesNo = "No");
I'm not sure about the first line (never done something with a record set), you might also try objRecordSet["SNO"].Value
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
How about this for shorter:
strYesNo = (objRecordSet.Fields["SNO"].Value == null) ? "Yes" : "No";
Also considering there is:
- No IsNull function in C#
- Indexers use
[] in C#, not () which is VB - The
(comparison) ? trueResult : falseResult you gave will not compile
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Next time I will open up VS and test what I'm actually suggesting to other users
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
That'd be advisable, or just remember how to write C#
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Does IsNull simply check if the value is null? If so:
if(objRecordSet.Fields("SNO").Value == null)
{
strYesNo = "Yes";
}
else
{
strYesNo = "No";
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Dumbest. Movie. Title. Evaaar.
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
You'd better go with either my or Judah's post since Greeegs is not valid C#
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hi,
I want to develope an web application using asp.net 2.0.For validation,whether javascript validation is better or using validation controls is better?
Thanks in advance.
|
|
|
|
|
A lot of this is going to depend on two things; how complicated is your validation? and how good is your java.
The validation controls just generate java script to run on the client, so you are not buying anything by doing it in java unless you have some validation that the controls won't do.
The big advantages of using the validation controls is that you don't have as much code to write or support AND the validation automatically happens on the client AND the server side. If you write your own java script, and want the added security of having the validation run on the server, you'll have to code it there as well.
HTH
WhiteWizard
aka Gandalf
|
|
|
|
|
I`m getting trouble with a rdlc report in VS 2005.
I want keep a group together in such way the pages doesn`t break when the group doesn`t fit exactly in the page. I have searched a lot in the report/group properties but didn`t find anything helpful.
Does anybody know how to solve this? In design time? Programmaticly?
I`m using C# and developing a desktop app.
Thanks in advance ...
|
|
|
|