Re: Need Help whit Assembly
two things:
Double-posting the exact same question is frowned upon and moderators usually either delete one of them or combine them into one thread anyway.
and...
Visual basic 6 (or for that matter any of them) does not support assembly. I am not sure you are actually referring to the assembly programming language, however. Please clarify. C++ is the only compiler in visual studio that supports inline assembly.
Re: Need Help whit Assembly
This one's a non-starter.
Re: Need Help whit Assembly
I did not double post i think?
But i have c++ but its harder then VB6.
And a friend code in VB6 and use Assembly??
Re: Need Help whit Assembly
if he programs in assembly, ask HIM how he did it. It is possible to use an assembler to create a .dll from assembly and link into the .dll from vb. But you can't write the assembly in vb.
Re: Need Help whit Assembly
On a side note:
There is a VERY nasty hack in which you can directly insert the output of FASM straight into a byte array in VB code and then use a few API calls to load that byte array as a function and run it. But that is the sort of thing that idiots get up to, because to be honest the amount of work involved is probably ten times more than just using inline ASM in C which would be safer anyway.
Re: Need Help whit Assembly
There was an article written by, I believe, John Chamberlain called "Taking control of the compiler" or something like that. He provided code that hooked the CreateProcess of vb's ide and you could modify/add asm directly into the asm that vb ide spits out before it was compiled and linked. Maybe that is how he did it.
Re: Need Help whit Assembly
Quote:
Originally Posted by wossname
On a side note:
There is a VERY nasty hack in which you can directly insert the output of FASM straight into a byte array in VB code and then use a few API calls to load that byte array as a function and run it. But that is the sort of thing that idiots get up to, because to be honest the amount of work involved is probably ten times more than just using inline ASM in C which would be safer anyway.
Sounds exactly like the hoops necessary to get qbasic to work with a mouse.
Re: Need Help whit Assembly
Re: Need Help whit Assembly
Quote:
Originally Posted by Lord Orwell
Sounds exactly like the hoops necessary to get qbasic to work with a mouse.
Man that takes me back.
*nostalgia*
I always liked the way that the qbasic interpreter was about 15% faster than qbasic's compiled EXE's. Quality.
Re: Need Help whit Assembly
my version of qbasic wouldn't compile. You sure you aren't thinking of quickbasic? I never was able to compile until i got visual basic for DOS, which was a really retarded program because it had a MDI you could use similar to windows for your program, but every single program had to be in the same exe. Not much use for it really. I simply compiled my qbasic programs with it.
Re: Need Help whit Assembly
I didn't realise there was a distinction. This was a long time ago though.
Re: Need Help whit Assembly
yeah, qbasic was the confusing name of the free interpreter that came with every version of dos. I was not aware they were separate for a long time either.
Re: Need Help whit Assembly
Hmmm, I have to drop by here more often. I didn't realize that qbasic was NOT the same as quickbasic. I thought one was just an abbreviation for the other, sort of like qsort.
Re: Need Help whit Assembly
kind of like jscript and javascript