Click here to Skip to main content
16,007,858 members
Home / Discussions / C#
   

C#

 
GeneralMeasure the width of a Character Pin
Nnamdi Onyeyiri24-Aug-02 3:46
Nnamdi Onyeyiri24-Aug-02 3:46 
GeneralOff topic Pin
leppie24-Aug-02 4:56
leppie24-Aug-02 4:56 
GeneralRe: Off topic Pin
Nnamdi Onyeyiri24-Aug-02 9:38
Nnamdi Onyeyiri24-Aug-02 9:38 
GeneralRe: Measure the width of a Character Pin
Paul Ingles25-Aug-02 7:14
Paul Ingles25-Aug-02 7:14 
GeneralRe: Measure the width of a Character Pin
Nnamdi Onyeyiri25-Aug-02 7:16
Nnamdi Onyeyiri25-Aug-02 7:16 
QuestionQuick way to evaluate expression in .Net? Pin
leppie24-Aug-02 3:13
leppie24-Aug-02 3:13 
AnswerRe: Quick way to evaluate expression in .Net? Pin
Domenic Denicola24-Aug-02 17:47
Domenic Denicola24-Aug-02 17:47 
AnswerRe: Quick way to evaluate expression in .Net? Pin
James T. Johnson24-Aug-02 18:47
James T. Johnson24-Aug-02 18:47 
You mean something like this?

int i = (int) Evaluator.Evaluator.DoEval("1 + 3");<br />
<br />
MessageBox.Show(i.ToString());
Smile | :)

Take this bit of code; and put it in a file called eval.js

package Evaluator
{
    public class Evaluator
    {
        static function DoEval(str : String) {
            return eval(str);
        }
    }
};
Now compile with this command line

jsc /target:library /out:eval.dll eval.js (you'll have to make sure the directory %windir%\microsoft.net\framework\%net_version%\ is in your path)

Now add a reference to eval.dll and to the Microsoft.JScript assemblies; execute the code above Wink | ;)

James
"And we are all men; apart from the females." - Colin Davies
GeneralRe: Quick way to evaluate expression in .Net? Pin
leppie24-Aug-02 23:50
leppie24-Aug-02 23:50 
GeneralRe: Quick way to evaluate expression in .Net? Pin
Anonymous26-Aug-02 3:58
Anonymous26-Aug-02 3:58 
GeneralIE Toolbar Pin
Boris Yankov24-Aug-02 2:40
Boris Yankov24-Aug-02 2:40 
GeneralC# Security Problem - Please Help Pin
Rodney S. Foley23-Aug-02 19:05
Rodney S. Foley23-Aug-02 19:05 
GeneralRe: C# Security Problem - Please Help Pin
leppie24-Aug-02 2:33
leppie24-Aug-02 2:33 
GeneralRe: C# Security Problem - Please Help Pin
Rodney S. Foley24-Aug-02 12:04
Rodney S. Foley24-Aug-02 12:04 
GeneralRe: C# Security Problem - Please Help Pin
leppie24-Aug-02 12:11
leppie24-Aug-02 12:11 
GeneralRe: C# Security Problem - Please Help Pin
Rodney S. Foley24-Aug-02 12:46
Rodney S. Foley24-Aug-02 12:46 
GeneralRe: C# Security Problem - Please Help Pin
James T. Johnson24-Aug-02 12:53
James T. Johnson24-Aug-02 12:53 
GeneralRe: C# Security Problem - Please Help Pin
Eric Gunnerson (msft)26-Aug-02 11:11
Eric Gunnerson (msft)26-Aug-02 11:11 
QuestionImageFormat and EncoderParams? Pin
Steven Behnke23-Aug-02 14:58
Steven Behnke23-Aug-02 14:58 
GeneralWindows Application Design Question Pin
Chris Austin23-Aug-02 13:07
Chris Austin23-Aug-02 13:07 
GeneralRe: Windows Application Design Question Pin
David Stone23-Aug-02 13:12
sitebuilderDavid Stone23-Aug-02 13:12 
GeneralRe: Windows Application Design Question Pin
Chris Austin23-Aug-02 13:25
Chris Austin23-Aug-02 13:25 
GeneralRe: Windows Application Design Question Pin
David Stone23-Aug-02 13:34
sitebuilderDavid Stone23-Aug-02 13:34 
GeneralRe: Windows Application Design Question Pin
James T. Johnson24-Aug-02 7:47
James T. Johnson24-Aug-02 7:47 
GeneralRe: Windows Application Design Question Pin
bfarley26-Aug-02 4:20
bfarley26-Aug-02 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.