Mr. Wagner ?

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Cor,
What had to be done
Add decimal 3 did mean that you first had to translate it to the bit value
11. When you had done that, you could add 11 to the accumulator let us
think that this was already holding 01111111. That would give an overflow
that you had to catch and to add to the next accumulator.

Personally I have never gone *that* low level, I have tried a little
assembly at one time and understand how it works but I had no idea that was
how you done that. Seems like a bodge really doesn't it? (Though I'm sure
it was standard procedure)
The only point with Net is that by instance the API has now an extra level
above it what is the Net Intermidiate.

Definite ACK.
However it does not mean that that is slower. It is fast enough, to say as
an famous English car builder tells about the horsepower of his engines.

It all depends on what you are trying to achieve, I regularly download
the demos from the demo scene and am amazed by the speed that people can
achieve using their own assembly routines, even on a cruddy old laptop you
get some amazing results. But then again, as you said, there is allot more
work involved.
I hope this gives some ideas, when you knew this already, than forget it.

LOL, no way do I know more about progamming that yourself Cor, I'm only
22 and have allot more to learn!!

Nick.
 
Nak said:
int cbuttons;
int dwExtraInfo;

printf("Moving to top left...\n");
SetCursorPos(0, 0);

sleep(2000);

printf("Moving to top right...\n");
SetCursorPos(1280, 0);

sleep(2000);

printf("Moving to bottom right...\n");
SetCursorPos(1280, 1024);

sleep(2000);

printf("Moving to start button...\n");
SetCursorPos(10, 1014);

sleep(2000);

printf("Clicking start button...\n");
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, cbuttons, dwExtraInfo);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, cbuttons, dwExtraInfo);

Well, that could be done in VB.NET too.
 
Hi Herfried,
Well, that could be done in VB.NET too.

Yes, of course it can. I was simply giving an example of it being done
in C, if you read my post you would see that I was referring to more
advanced things being impossible to achieve with a high level language like
VB.

I believe he may be new to programming so I was suggesting starting with
another language, just my personal view on the subject.

Nick.
 
nick, thanks again for all your time and help with this.it is greatly
appreciated.you are correct in that i am new to programming.i used to use
Qbasic long time ago but haven't done anything since.i'm trying to teach
myself vb.net.i have several books and code samples i've downloaded.i spend
quite a bit of time reading in the forums to learn as much as i can.which
would be the best language, in your opinion,to learn if you were mainly
interested in winforms and winapps ? thanks again for the help.
 
herfried, that is what i'm having trouble with.i am new to programming and
have searched all over for code examples for the program i'm working on but
amazingly can't find any.i've been to numerous forums and have posted to many
with no replies.not sure how to translate "c" to vb.net .it's hard to try
and write the code for my program with no previous examples in vb.net to go
by because this seems like it's more of an advanced subject.alot harder than
i thought it would be.thanks for all your time and help with this herfried.
 
Hi aam,
nick, thanks again for all your time and help with this.it is greatly
appreciated.you are correct in that i am new to programming.i used to use
Qbasic long time ago but haven't done anything since.i'm trying to teach
myself vb.net.i have several books and code samples i've downloaded.i
spend
quite a bit of time reading in the forums to learn as much as i can.which
would be the best language, in your opinion,to learn if you were mainly
interested in winforms and winapps ? thanks again for the help.

VB.NET, I love it, it's allot easier to use that C# and less
frustrating, mainly due to the fact that C# is case sensitive, which I
personally believe to be absurd, but never mind.

You might like taking a look at PSC

http://www.planet-source-code.com/

That's where I started to learn VB 6, it's quite nice getting feedback
on your applications and soon enough you will out grow it and not want to
share your code on there anymore as some people can be a little rude with
their comments. But it's a good place to start!

Good luck.

Nick.
http://www.npsoftware.co.uk
 
thanks again nick for the help. also, where is the vb.net version of the code
you posted ? if i'm mainly interested in creating win apps, wouldn't "C" or
"C++" be a better choice for me ? i'm not really too interested in database
or internet programming yet.
 
aam said:
thanks again nick for the help. also, where is the vb.net version of the
code
you posted ?

Nick attached it to his post, but the web interface doesn't display
attachments (for some good reasons!). What you can do is setting up a real
newsreader like Outlook Express, add an account for the "news.microsoft.com"
server and subscribe to this group (microsoft.public.dotnet.languages.vb).
Then you can search for the message and download the attachment.
if i'm mainly interested in creating win apps, wouldn't "C" or
"C++" be a better choice for me ?

No.
 
thanks, i will look into that because i would like to look at the code he
posted. also, wouldn't Control.InvokeOnClick Method work for what i'm trying
to do ?
 
aam said:
also, wouldn't Control.InvokeOnClick Method work for what i'm trying
to do ?

'Control.InvokeOnClick' is not suitable for your requirements.
 
Hi Cor,


Personally I have never gone *that* low level, I have tried a little
assembly at one time and understand how it works but I had no idea that was
how you done that. Seems like a bodge really doesn't it? (Though I'm sure
it was standard procedure)
[snip]

One thing that's not been discussed here is that LOW LEVEL was different
on every CPU/Hardware type. I use to write code for the 1802, Z80, 8085,
8088, 68000, 68010, 6502, 8086, 80286, and then stopped when it got to
the 386 stage. I was in heaven when Assemblers came out so that you
didn't have to code in Hex and remember that a jump was X-1 on some
CPU's it was X, and that BSL,BSR sometimes didn't move anything in to
the carry/overflow positions....
 
thanks again nick for the help. also, where is the vb.net version of the code
you posted ? if i'm mainly interested in creating win apps, wouldn't "C" or
"C++" be a better choice for me ? i'm not really too interested in database
or internet programming yet.

If you are going to design windows applications and you are not going to
use the .Net platform, then C++ would be the way to go. C, while being
great and low-level, is not something I've found fun to mix with Windows
- I write drivers in C, and Windows apps in C++.

If you really want to write Windows apps quickly, VB 6 or VB.Net would
be the way to go.
 
thanks. could you post the link because i'm having trouble trying to find out
how to subscribe to this forum ?
 
aam said:
could you post the link because i'm having trouble trying to find out
how to subscribe to this forum ?

Here's the code Nick posted:

\\\
Public Module main

Private Const MOUSEEVENTF_LEFTDOWN As Int32 = &H2
Private Const MOUSEEVENTF_LEFTUP As Int32 = &H4

Private Declare Function SetCursorPos Lib "user32.dll" (ByVal x As
Int32, ByVal y As Int32) As Int32
Private Declare Sub mouse_event Lib "user32.dll" (ByVal dwFlags As
Int32, ByVal dx As Int32, ByVal dy As Int32, ByVal cButtons As Int32, ByVal
dwExtraInfo As Int32)

Public Sub main()
Call Console.WriteLine("Moving to top left...")
Call SetCursorPos(0, 0)

Call Threading.Thread.Sleep(2000)

Call Console.WriteLine("Moving to top right...")
Call SetCursorPos(1280, 0)

Call Threading.Thread.Sleep(2000)

Call Console.WriteLine("Moving to bottom right...")
Call SetCursorPos(1280, 1024)

Call Threading.Thread.Sleep(2000)

Call Console.WriteLine("Moving to start button...")
Call SetCursorPos(10, 1014)

Call Threading.Thread.Sleep(2000)

Call Console.WriteLine("Clicking start button...")
Call mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
Call mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)

Call Console.WriteLine("Press any key to exit.")
Call Console.Read()
End Sub

End Module
///
 
Hi there,
One thing that's not been discussed here is that LOW LEVEL was different
on every CPU/Hardware type. I use to write code for the 1802, Z80, 8085,
8088, 68000, 68010, 6502, 8086, 80286, and then stopped when it got to
the 386 stage. I was in heaven when Assemblers came out so that you
didn't have to code in Hex and remember that a jump was X-1 on some
CPU's it was X, and that BSL,BSR sometimes didn't move anything in to
the carry/overflow positions....

Absolutely, I'm certainly not going to argue with that as I don't have a
clue! but if you jump up a level to "C" you have the most portable language
available, and your still lower than VB.NET. I just believe with learning
things from the ground up, the history of programming and how the languages
have evolved, if you build a strong foundation for your knowledge it's going
to fair better (like the sound of your knowledge).

Hopefully sometime I'll get a chance to look at programming in assembly as I
would love the extra knowledge, I just have to find the project that needs
it I suppose :-)

Nick.
 
Hi Nick,

Are you trying to brake your own record with Fergus about the longest thread
in this newsgroup, however now together with Herfried?

:-)))

Cor
 
Back
Top