forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Windows 9x is a piece of trash

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Mar 14, 2005 2:24 pm    Post subject: Windows 9x is a piece of trash Reply with quote

Windows 9x is a piece of trash. It should be consigned to the dustbin of history where it belongs.

I just wasted several hours trying to work out why some code for an installer to clean up after itself worked under XP and not on 98. It turns out that if you try to FILE DELETE a file that is in use, under '98, @OK() returns True, same as it does if the operation is successful. Under XP, it correctly returns False. This is not the fault of VDS, which is simply passing on the result of the API SHFileOperation call.

The attached test.exe is a VDS 5 EXE which returns the result of trying to delete itself. I would be interested to know the results of running it on as many different variants of Windows as possible.



test.exe
 Description:
A little test app to see the result returned by VDS after trying to delete a file that is already in use.

Download
 Filename:  test.exe
 Filesize:  9 KB
 Downloaded:  1504 Time(s)


_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Mon Mar 14, 2005 3:00 pm    Post subject: Reply with quote

You probably have already tested it, but on my windows XP Pro (SP2), it returns "Not OK".

Also, it returns "Not OK" on Server 2003.

_________________
Joe Floyd
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Mar 14, 2005 3:12 pm    Post subject: Re: Windows 9x is a piece of trash Reply with quote

jules wrote:
Windows 9x is a piece of trash. It should be consigned to the dustbin of history where it belongs.

I just wasted several hours trying to work out why some code for an installer to clean up after itself worked under XP and not on 98. It turns out that if you try to FILE DELETE a file that is in use, under '98, @OK() returns True, same as it does if the operation is successful. Under XP, it correctly returns False. This is not the fault of VDS, which is simply passing on the result of the API SHFileOperation call.

Hate to tell ya this, but XP will run code with errors that
98 will not, so this may (or may not) be the fault of VDS.

Sheep and I ran into this anomaly with C code a few
months ago - he was running XP and I was running 98
SE. When we finally found and fixed the code error, it
ran fine on both.

It appears that XP either does some error-correction,
or just overlooks some things perhaps it shouldn't.

I don't remember what the code or even the app was,
maybe Sheep does.

BTW, I'm not saying 9x (lol or any other MS product) is
bug free either - 98 obviously is not... Wink

Cheers, Mac Smile

_________________
VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
Back to top
View user's profile Send private message Send e-mail
JRoza
Contributor
Contributor


Joined: 17 Aug 2003
Posts: 182
Location: Netherlands

PostPosted: Mon Mar 14, 2005 6:31 pm    Post subject: Reply with quote

Well there's an old saying:

Computers are like air-conditioners .........
Both stop working when you open windows.
Very Happy
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Mar 15, 2005 12:46 am    Post subject: Reply with quote

jules,

i ran your test program under windows 98 se and the result was "OK"

Quote:
Computers are like air-conditioners .........
Both stop working when you open windows.


hadn't heard that one and i like it Very Happy Very Happy Very Happy

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 15, 2005 1:20 am    Post subject: Reply with quote

Serge wrote:
jules,

i ran your test program under windows 98 se and the result was "OK"

Quote:
Computers are like air-conditioners .........
Both stop working when you open windows.


hadn't heard that one and i like it Very Happy Very Happy Very Happy

serge


Hi Serge,

That's exactly the problem that Jules is talking about. Windows 98 is
returning OK, meaning that it deleted the file, when it really hadn't deleted
the file. I also ran the program on Windows 98 SE with the same results.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Mar 15, 2005 1:34 am    Post subject: Reply with quote

i understand that, bill Smile

just confirming what jules found at his end Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 15, 2005 2:31 am    Post subject: Reply with quote

Sorry Serge, wasn't trying to seem like a smart alec Embarassed, it just comes
naturally sometimes. Shocked Confused

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Mar 15, 2005 7:40 am    Post subject: Reply with quote

no problems, bill Wink

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Mar 15, 2005 9:08 am    Post subject: Reply with quote

Thanks, guys.

I've had to revert to using API calls, since I didn't need to use wildcards or delete files to the recycle bin.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Tue Mar 15, 2005 9:18 pm    Post subject: Reply with quote

Perhaps this may explain things...

Code:

/*
TOP SECRET Microsoft(c) Code
Project: Chicago(tm)
Projected release-date: Summer 1998
*/

#include "win31.h"
#include "win95.h"
#include "evenmore.h"
#include "oldstuff.h"
#include "billrulz.h"
#define INSTALL = HARD

char make_prog_look_big[1600000];

void main()
{
   while(!CRASHED)
   {
      display_copyright_message();
      display_bill_rules_message();
      do_nothing_loop();
      if (first_time_installation)
      {
         make_50_megabyte_swapfile();
         do_nothing_loop();
         totally_screw_up_HPFS_file_system();
         search_and_destroy_the_rest_of_OS/2();
         hang_system();
      }
      write_something(anything);
      display_copyright_message();
      do_nothing_loop();
      do_some_stuff();
      if (still_not_crashed)
      {
         display_copyright_message();
         do_nothing_loop();
         basically_run_windows_3.1();
         do_nothing_loop();
         do_nothing_loop();
      }
   }

   if (detect_cache())
   disable_cache();

   if (fast_cpu())
   {
      set_wait_states(lots);
      set_mouse(speed, very_slow);
      set_mouse(action, jumpy);
      set_mouse(reaction, sometimes);
   }

   /* printf("Welcome to Windows 3.11"); */
   /* printf("Welcome to Windows 95"); */
   printf("Welcome to Windows 98");
   if (system_ok())
   crash(to_dos_prompt);
   else
   system_memory = open("a:\swp0001.swp", O_CREATE);

   while(something)
   {
      sleep(5);
      get_user_input();
      sleep(5);
      act_on_user_input();
      sleep(5);
   }
create_general_protection_fault();
}


Hooligan
Wink

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 15, 2005 9:44 pm    Post subject: Reply with quote

ROFL Smile Laughing
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group