LizR 171 Posting Virtuoso

Well faking pressing a button is usually easy enough, and sending a point to your method looks reasonable - so, the question is, what code did you have that didnt work?

LizR 171 Posting Virtuoso

Its a bad idea to integrate an interface with your service as many computers block services having access to forms and the like for security reasons.

LizR 171 Posting Virtuoso

OK, so you have working code. What stops it working automatically? Do you get an error? What values are you passing your method when you called it after the image load? What did debugging show you?

LizR 171 Posting Virtuoso

This is a nice and simple thing to do, What have you read and what problems are you having? (Please read the stickies)

LizR 171 Posting Virtuoso

Forgive my denseness (its past 11, and Im about to go to bed but..)

5.8740105200E-00 = 0.58740105200E+00

as 5.8740105200E surely is 0.587... just as 0.587E+00 is also 0.587....

LizR 171 Posting Virtuoso

Well the Forms part has always worked for me, however, it may vary with delphi versions, as well as the HTML you have.. so.. you need to debug it. That always has the answers

LizR 171 Posting Virtuoso

Well hence my first post :)

LizR 171 Posting Virtuoso

given hes done it in c++, I would argue that the trig side etc is not the problem, or shouldnt be as its not changed.

LizR 171 Posting Virtuoso

Because you didnt change your code...
You need to look through the elements available, most likely rather than "All" you probably want forms..

It depends a lot on the html

LizR 171 Posting Virtuoso

Im guessing username is in a form? then you'd need to go through the whole document tree, eg forms etc

LizR 171 Posting Virtuoso

So what did debugging it show you?

LizR 171 Posting Virtuoso

Why not be more helpful and give an example of your XML as well as your failing code.

LizR 171 Posting Virtuoso

Then that would strike me as your problem.

LizR 171 Posting Virtuoso

Thats why debugging was invented.

Step through your code, see why its not doing what you thought..

First thing that comes to mind is

Delay (kk);

kk doesnt seem to be defined, so I truely doubt that your code compiles.

LizR 171 Posting Virtuoso

You're starting a service, what does the service run as? are you running vista?

LizR 171 Posting Virtuoso

Well its telling you access denied (as you could find by following the error codes)

LizR 171 Posting Virtuoso

Try WebBrowser1.oleobject.document.all ..

LizR 171 Posting Virtuoso

The button is eating your keys, if you remove the button the problem goes too If all you're using is the button to get the events setup, dont, use the forms direct.

LizR 171 Posting Virtuoso

I hate to make an analog clock...

Then dont do it.

I even dont know how to draw a circle and line in C#..I have made that all in C++...But i cant swtich that to C#.. Please help me with this.

Why not? most of the code is at least similar.. What do you have, what problems do you have? What is not working?

LizR 171 Posting Virtuoso

Both those books will explain it further

LizR 171 Posting Virtuoso

>Are you suggesting they're incapable of finding their own ass in the dark\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b post? ;)
http://www.daniweb.com/forums/thread145077.html

Considing it was the same person.. Yes :) I would suggest they would suffer from the affliction you mention.

LizR 171 Posting Virtuoso

OK but if you had

class MyClass
{
   private int myval =0;
   public MyClass (int value)
  {
     myval=value;
  }
  

  public int MyValue
  {
     return myval;
  }
}

You would call this in your inherited with

public MyNewClass : MyClass
{

  public int MyNewValue : base MyValue(1)
  {

  }

}
LizR 171 Posting Virtuoso

What control currently has focus? Sometimes a control with focus can prevent some of these things working

LizR 171 Posting Virtuoso

Why doesnt it work? Remember that "username" will be case sensitive.

LizR 171 Posting Virtuoso

Then read the information I gave, you you will work out what the code line does, and have an answer

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

This has been posted before. Please use the search function

LizR 171 Posting Virtuoso

Well give you have some code, in what way does it not work?

LizR 171 Posting Virtuoso

:)

Answer is to try it and find out :)

LizR 171 Posting Virtuoso

No, because the listbox should be linked directly to the biscuits table, so would only have 1 entry

LizR 171 Posting Virtuoso

Im not being pedantic. You obviously dont know what the code you had did, someone must have given it to you, if your teacher wont teach you, and hes paid to do so, why should I? Ive linked you a training course, did you look at it? by the sounds of it no.

Im not being pedantic, no one can be there to do everything for you, and countless times Ive seen people go "ooh but I only learn if someone shows me the answer" only to watch them ask the same question again days/weeks later.. Its a waste of my time handing out answers, its better use of my time (although more frustrating for me) to try and help you help yourself.

First thing you need to do is work out what that line of code does.

Once you know what it does, you can change it.

Until then, you're not going to understand anyway

LizR 171 Posting Virtuoso

Things like toner level arent always available through the driver, so you may have to look at connecting to the printer on any web interface it has and working from there.

LizR 171 Posting Virtuoso

You need to define what you want, for your own sanity and that of anyone whos going to try and help you.

What you wrote is not a definition, its a waffle, with fluff..

LizR 171 Posting Virtuoso

You can only do #2 once youve done #1 or you will waste your time.

Its hard to teach something that is simple logic as write down what you want and flesh it out till you have something you can code from.

Teach yourself by starting simple. Something like mulitpllication tables..

Write that down, what you want, how you want it to work, flesh it out till you can code from it..

then you just do more of it

LizR 171 Posting Virtuoso

OK, why cant the list box and grid be bound, you mention it gives problems - what were the problems?

As for why your message box makes it work, thats hard to say, other than either something is happening time related, or, perhaps instead of selected value != null, you might want to test if the index is >-1

LizR 171 Posting Virtuoso

Hi,

Firstly if you have read the stickies, you'll know we wont be giving you the code, secondly, its your home work, you need to research the out come of your first question, eg, does it split the message or not.

When you have code and a specific question about it.. someones more likely to help you.

LizR 171 Posting Virtuoso

Start at the beginning

Does your kernel have serial built in?
If so, what serial ports does it find? and tell you are available?

LizR 171 Posting Virtuoso

Nope, no code..

UDP is not generally a good idea to use for transfers, as it is connectionless, it doesnt guarentee that the other end receives your data.

As long as you set up a protocol such as FILE <size> <name> <DATA>

you send exactly that.

its up to you and your app as how best to implement it.

LizR 171 Posting Virtuoso

You can convert it like any other conversion with pansichar(txt) or, you could have made the variable an ansichar and sent the pointer..

LizR 171 Posting Virtuoso

So you dont even know what the line does then..

I would suggest you go back to your teacher, as that line of code is far from complex if you have failed to understand, either the guy is a complete moron, or you didnt listen. Or some percentage of the 2.

If you changed the TxtUserName (and assuming its an editbox) then that code shouldnt have compiled as editboxes dont have an itemindex.

If you struggle with something as simple as breaking down some code you were given try working through this free online training course

Its not perfect but it should teach you more than you seem to already know

LizR 171 Posting Virtuoso

Well as you know from the stickies we wont do it for you, what code do you have so far? and what seems to be wrong with it?

LizR 171 Posting Virtuoso

You almost certainly will, its the error insight.

LizR 171 Posting Virtuoso

Optimizations *ARE* good (generally) however, they arent good for debugging.

LizR 171 Posting Virtuoso

Or as a student, perhaps you arent asking him the right questions, as with me, you didnt say "oh, I dont see how I'd do that" you just ignored it.. perhaps you do the same to him?

Anyway.

Do you have understanding as to what the line

Uppercase(trim(a_User[TxtUsername.ItemIndex].s_password))

does?

LizR 171 Posting Virtuoso

No, protected mode wont stop you, however, keylogging which is what you described, wont get you assistance.

LizR 171 Posting Virtuoso

When the child opens, it has to tell the parent to set the part of the treview to say its visible and when the child closes, it has to unset it.. Take it from there

LizR 171 Posting Virtuoso

Well first thing to try is telnet to port 8000, ask it a web style question check thats what you get.. Work from there.

LizR 171 Posting Virtuoso

Sort of, but that sounds incredibly virus like.

LizR 171 Posting Virtuoso

Please read the stickies.

What exact question do you have? What do you have so far?

LizR 171 Posting Virtuoso

I think I answered your question. You just chose to ignore me.