LizR 171 Posting Virtuoso

Well done. And whats better is is you almost certainly understand why you ended up with thec ode you did, rather than have someone hand you it.

ddanbe commented: This is going very well here... +4
LizR 171 Posting Virtuoso

A reason to use get/set is so that your class contains control over the input

For example

Exam results shoul dbe between 0-100

No exact type exists to hold only 0-100, so, if the class has a set which validates the data, it cant ever have an issue where the data has been rigged

Rashakil Fol commented: yes +9
LizR 171 Posting Virtuoso

well they can only update the record if your code lets them, so in your code allow them either to only hit save if the flag is not set, or, only run the save code if the flag is not set..

LizR 171 Posting Virtuoso

Only if you learn to ask a question that has real words in it. And you explain your interests and what the project is for - otherwise its just an unreadable set of characters and any answer would be just as random.

Salem commented: Well said. +27
LizR 171 Posting Virtuoso

if all you do is show some pages and allow a language change, I would sincerely expect you to fail. That would be an exceedingly minimal half effort

Salem commented: Seems about right to me. +27
LizR 171 Posting Virtuoso

Which is what I said in a lot less of a post.

Antenka commented: :( sowwy ... some time my carelessness will kill me O.o +1
LizR 171 Posting Virtuoso

Looking at the numbers hes adding the results together.

ddanbe commented: Well noticed with a fine eye! +4
LizR 171 Posting Virtuoso

I would expect it to. youve asked it to show you the details of the directory, not the contents within it.

LizR 171 Posting Virtuoso

Or you could do it more simply with System.IO.Path.GetDirectoryName

Antenka commented: Oh yeah. That's better way :) +1
LizR 171 Posting Virtuoso

Sounds like a config error. Whats in your config file?

LizR 171 Posting Virtuoso

Rapture is right, its not that we hate you or want you to hate us either. However the addage, give a man a fish, he eats for the day, give a man a fishing rod he can eat for a year.

If we give you an a line of code, what did you learn, we will feed you.

If we give you places to look and how to find your answers..
You learn to find them yourself and work faster and smarter.

ddanbe commented: I like eating fish +3
LizR 171 Posting Virtuoso

drfarzad, other than you are acting like a small child because no one will code it for you.

If its not your homework, and you need it *critically* it can only therefore be your job, and if you're being paid to do it, call a collegue..

You arent showing effort at all, you're acting like the small child who didnt get the toy they wanted for christmas.

Sure, RamyMahrous didnt show how to use the code he posted, but he did show some sensible code, the fact is you just pasted it and didnt bother working out what you'd do with it or what it means. All this demonstrates is you havent a clue about writing some code only copy and pasting from places and hoping it all works.

An app that works out max/min and sorts some salaries is not life essential, and is without doubt something you can do either in your head, or, in excel which ever you're comfortable with.

In the mean time, go to somewhere like http://www.3dbuzz.com and look at their free c# video training material about how to think about a program, how to code it, learn a little about c# and its OO and they have stuff on other languages, but, take a look at their hyperion code, and its a good basis for the lazy person who doesnt like reading too, as its video and code as you go.

ddanbe commented: just what I thought +3
LizR 171 Posting Virtuoso

Simple answer is unless your PC has an externally visible IP, you will need to use port forwarding.

Murtan commented: Not just this post for which you provided the only answer, but I keep seeing you make constructive posts elsewhere as well. +2
LizR 171 Posting Virtuoso

If you load them all into an array you can extract disctingly unique values from it.. (theres a hint in there)

LizR 171 Posting Virtuoso

Lanching MSDOS you should have been able to do, the problem is sending commands to it - this is a standard issue - normal way to do it is to either:

Do a lot of fancy work with copy and paste to a window handle you find by name, or by process ID

or

You can use something like http://www.delphi3000.com/articles/article_2298.asp

GOOGLE IS YOUR FRIEND

LizR 171 Posting Virtuoso

Except Ive yet to see a system come out of a converter that didnt need a rewrite anyway

ddanbe commented: Well said +2
LizR 171 Posting Virtuoso

Well it most certainly wont help it.
Try setting the event on the creation of the worker, and never again

LizR 171 Posting Virtuoso

Does it have to be IE? If you just run the link as a system call, it will open the default browser.

ddanbe commented: The solution to a question is sometimes a question! +2
LizR 171 Posting Virtuoso

You can walk through a library looking for classes that descend from something, and then instantiate those.

CommandTemplate newcmd;
            Console.Write("Loading commands");
            Assembly a = null;
            AssemblyName n = new AssemblyName("mycmds");
            a = Assembly.Load(n);
            foreach (Type t in a.GetTypes())
            {

                if (t.BaseType.Name == "CommandTemplate")
                {
                    newcmd = (CommandTemplate)Activator.CreateInstance(t);

                }
            }
            Console.WriteLine(" Done");
obscured47 commented: Excellent :) +2
LizR 171 Posting Virtuoso

I hadnt checked the if (a=b) thing, I did however assume that would work like c/c++ would, my bad. :P

I fell fowl of the ignored the return value of a function when I was using the string replace function, quickly hacking some code together for something and forgot to assign the changed string back to itself..

I am surprised on its pickiest warning level it doesnt mention that you didnt use the returned value, perhaps you should suggest it for VS2010 which is in beta..

At the same time, I cant help but wonder then how many times we all use some function and ignore its return code... and how many warnings it would generate if it did actually warn us..

ddanbe commented: Thanks for the help +2
LizR 171 Posting Virtuoso

RJC131, I disagree, No one has been rude. The nearest to rudeness is the original poster coming and asking a bunch of people to do his work for him. No one else has been rude

ddanbe commented: well said +2
LizR 171 Posting Virtuoso

thats because vb doesnt do the #$ notation.. I believe its something like vbCrLf .. but I dont do vb, its pointless.

and I believe VB still has a pos function where you can test if its > 1 or not.. check the helpfile

LizR 171 Posting Virtuoso

Because you dont check Process32First, if there is none.. that will be fase and you could save yourself a lot of effort with changing the name of your variable to mean still looking.. so its

finding := Process32First..
while finding do
begin
 if match 
   then ..
 else
    finding = process32Next...
end;
espSquall commented: Very useful and quick response +1
LizR 171 Posting Virtuoso

It hangs coz you told it to

for (int i = 0; i < 1000; )
                {
                    if (lotteryNumbers[i,0] == randomNumber)
                        lotteryNumbers[i,1]++;
                }

Look carefully at your loop

schmidty169 commented: Dead acurate +3
LizR 171 Posting Virtuoso

As you say, a lot of it is dependant on the app. If you have a huge system with modules, and reporting, and options, and potentially even client specific based chunks, and all that.. Id probably split the classes like you outlined above if not more so..

However, for general terms,

<company/codernickname>.<app> ..

I tend to have

core <- would be the GUI and front end related
classes.x group by function, so maybe db, controls, graphics
shared <- this one ive used a fair bit if Im using libraries or want functions to be available to other apps, so they are clearly the ones to use.

dickersonka commented: Very nice organizational method +2
LizR 171 Posting Virtuoso

Well the answer would be more evident if you debugged it.

You tell me what the values of each part of that line works out to be, so Z, ln(Z), etc.. you tell me which bit fails.. and what the values are.

Are you really using turbo pascal from the 80s? or do you mean the turbo delphi products?

Salem commented: Yes, gotta learn how to debug as well. +23
LizR 171 Posting Virtuoso

Ive not seen that, and with that screen shot its hard to tell as theres a red dot underneath.. the current line.

normally that only happens when its either finding a similar named dcu or cant overwrite the current one - make sure you turn optimizations off

AKJo commented: Spot on +1
LizR 171 Posting Virtuoso

You could google for ping and c# and use some c# code to do it without spawning anything - which will be more compliant with working with a service

chris5126 commented: very helpfull ta +3
LizR 171 Posting Virtuoso

No you arent a noob, but you didnt post anything about what you had done so far.. Its a waste of everyones time and effort if we post things you've already done.

The problem with "setting a pixel" on the screen is the next redraw it will be gone.

You can read them,

The awsome Charles Petzold has details on that.

http://www.charlespetzold.com/pwcs/ReadingPixelsFromTheScreen.html


However, Im not sure you can change it as easily

LizR 171 Posting Virtuoso

then your first answer is

GOOGLE

Salem commented: Best answer to such questions. +22
LizR 171 Posting Virtuoso

You're using windows, the driver handles it for you.

Lardmeister commented: clear answer, great +4
LizR 171 Posting Virtuoso

Perhaps you should add rows to your D1 dataset?

LizR 171 Posting Virtuoso

Doesnt make any difference. Most likely your desktops on drive C anyway.

Run.[it] commented: cheers +2
LizR 171 Posting Virtuoso

I guess my questions were a waste of my band width?

Salem commented: Welcome to the world of "suggest a project" dim-wits :) +21
LizR 171 Posting Virtuoso

Your post is not going to get you answers, the reminder of what a factorial is should be more than plenty assistance in working out the code to do it. Ranting at people will not endear anyone to help you.

And yes, I do know the code you need, and its very very simple.

LizR 171 Posting Virtuoso

It always puzzles me when people insist that XML needs to be used when you have direct access to the database, why over process.

Your dataset should be the datasource of your grid, and already exist, you shouldnt need to do a new dataset and then set a value it..

the file should be generated,..

LizR 171 Posting Virtuoso

Have a read on IDisposable - that will cover the disposal comment

The stringlist would be part of your new class you made from IDisposable, so that when it goes you can itterate through the things you need to do..

You then add to the list each time you change the image reference, to place the old unwanted item on the list for removal when its all over.

reaven commented: thanks for the help +1
LizR 171 Posting Virtuoso

Then we need more of the code, because you only show up to the start of the decision making process.. If the file was not found then yes the index will be -1 because its not on the list.. whats the actual error you get?