| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Jul 15, 2003 7:52 am Post subject: |
|
|
Here's the line:
%A = @lib(kernel32,WriteConsoleA,INT:,%%hConsoleOut,@addr("%B"),@sum(@len(%B),1),NIL:,NIL:)
I did eventually save the file, but the error still occurs.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 15, 2003 10:31 am Post subject: |
|
|
In win 9x this occurs and removing A doesnt help . I dont think its related to ANSI/Unicode may related to window title /something else. I newer went into depth though  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Jul 15, 2003 1:56 pm Post subject: |
|
|
| Garrett wrote: | Here's the line:
%A = @lib(kernel32,WriteConsoleA,INT:,%%hConsoleOut,@addr("%B"),@sum(@len(%B),1),NIL:,NIL:)
I did eventually save the file, but the error still occurs.
-Garrett |
Ok I think it is your antique OS
Acutally let me do some research on this... It could be that WriteConsoleA has requirements for Win9x that are not being met with this script. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Jul 15, 2003 2:11 pm Post subject: |
|
|
| Garrett wrote: | Here's the line:
%A = @lib(kernel32,WriteConsoleA,INT:,%%hConsoleOut,@addr("%B"),@sum(@len(%B),1),NIL:,NIL:)
I did eventually save the file, but the error still occurs.
-Garrett |
Ok We may need to pass the address of a variable for the 4th parameter of this function for it to work with Win9x. I was lazy and tried to get away with as few variables as possible. I will update my code in my previous post. Garrett can you please try it when you log on and let me know if it fixes the problem. This should not cause a problem with other versions of Windows. Also it may be that WriteConsole is spelled differently in your version of kernel32.dll Like _WriteConsoleA or __WriteConsoleA or with the function's ordinal number. I am just not sure  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Jul 15, 2003 2:17 pm Post subject: |
|
|
Also I am having trouble using the SetConsoleCursorPosition function. If I can get more info about these other Console functions and make them all work I will build a VDS Unit... _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jul 15, 2003 3:24 pm Post subject: |
|
|
OK minpower it now works on Win 9x too
BTW it look funny that one starts a 32 bit GUI which brings up a antique 16 bit command window asking to enter name !  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Jul 15, 2003 3:31 pm Post subject: |
|
|
| CodeScript wrote: | OK minpower it now works on Win 9x too
BTW it look funny that one starts a 32 bit GUI which brings up a antique 16 bit command window asking to enter name !  |
Hey this is not my Idea...Ask FreezingFire about that hehehehehe
BTW I figured out what was wrong with moving the cursor around in the console screen. I have fixed it and will be finishing my VDS unit to make console apps possible with VDS 5 very soon. Also I will be adding the ability to load files into the console app as well using ReadFile and WriteFile functions. Also I believe it is possible to spawn batch files into the console window too using VDS'es shell command. Because the console window is a shared window for the process the batch file should show in the already allocated console window. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|