home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2755
Discussions: 188,382, Posts: 2,243,483, Members: 232,612
Old December 1st, 2001, 11:18 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Oct 2001
Location: NJ
Posts: 321
Can't run my VB program on win2000...

A couple of years ago I created a program with Visual Basic 4...
The .exe file run fine on any win9x & NT machine as long as I included the files 'VB40032.DLL" & "Comdlg32.ocx" along with it.

I tried it on windows 2000 & didn't work....

Any ideas????

Mr. NoOne is offline   Reply With Quote
Old December 1st, 2001, 11:22 PM     #2 (permalink)
Misanthropic
 
Join Date: Oct 2001
Location: Bay Area, California
Posts: 19,310
Blog Entries: 10
Check Microsofts website, i'm sure they have some kind of patch or something to fix that.

Mike is offline   Reply With Quote
Old December 2nd, 2001, 06:06 PM     #3 (permalink)
Ultimate Member
 
Join Date: Oct 2001
Posts: 21,019
Is there anyway for you to recompile it on VB6 on a NT or Win2k box?

My guess is your DLL's are out of date and incompatible with 2k, Does it use ADO hmm wait you said VB4, or maybe DAO or RDO by chance? The MDAC has changed quite a bit in the past few years and some things maybe unsupported now...

If anything I have VB6 I maybe able to help if you still have the source...

After I re-read it your problem could lie with the Comdlg32.ocx common dialog controls. If your references refer to it in the system32 directory (this file comes standard) it will use the standard win2k activex control and there are most likely several incompatibilities.



Last edited by vass0922 : December 2nd, 2001 at 06:09 PM.
vass0922 is online now   Reply With Quote
Old December 2nd, 2001, 06:17 PM     #4 (permalink)
Member
 
Join Date: Oct 2001
Location: australia
Posts: 445
Microsoft didn't introduce a native code compiler into VB until VB5. VB4 apps were compiled to P-code, I don't really know what that means but maybe it has something to do with it.
KraM is offline   Reply With Quote
Old December 2nd, 2001, 09:47 PM     #5 (permalink)
Member
 
Join Date: Oct 2001
Location: NJ
Posts: 321
Mmmm, I was thinking the same, maybe I need to recompile it on VB 6.....I'll give it a try & let you guys know.


Actually I tried that before but I think my .exe was bigger compiled with VB6 & it needed more libraries...since I was trying to keep it as small as possible I went back to VB 4.

I guess this time I've got no choice...I'll try VB 6 again....
Mr. NoOne is offline   Reply With Quote
Old December 3rd, 2001, 12:18 AM     #6 (permalink)
Ultimate Member
 
Join Date: Oct 2001
Posts: 21,019
yeah unfortunately VB6 does startup with more references. However you may try to remove some of those references. I've never tried it, but hell couldn't hurt

coughMUCHcough
vass0922 is online now   Reply With Quote
Old December 6th, 2001, 10:58 PM     #7 (permalink)
Member
 
Join Date: Oct 2001
Location: NJ
Posts: 321
It worked!

I used VB 6 this time & I got a not-so-much-bigger .exe file

The wierd thing is that this time it doesn't need anything else than the "Comdlg32.ocx" file, it doesn't need any runtime library...
Ain't that strange....now the whole application is under a Mb....

So far I've tested it on win98SE, NT & 2000.
Mr. NoOne is offline   Reply With Quote
Old December 10th, 2001, 01:46 AM     #8 (permalink)
Ultimate Member
 
Join Date: Oct 2001
Posts: 21,019
it still needs that?
Hmm thats odd...

Thats the common dialog control.
maybe you're using something thats fairly new?

That has to be already included in the OS for windows, or you can't save documents, print, open documents...


odd.

You can't run it on a machine w/o that eh?
blows my mind lol
vass0922 is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2888)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
hp compaq nc6000 problems (138)
Folderchat Weekday thread (440)
Antec 300 bulk purchase? (11)
Help with an Ati Radeon HD 4850 512.. (27)
Recent Discussions
Folderchat Weekday thread (440)
How to increase my ram? (5)
Building a gaming computer advi.. (2)
Help with an Ati Radeon HD 4850.. (27)
CPU wont boot (4)
2nd video card (1)
special characters in quarkxpre.. (3)
Need help removing my front usb.. (2)
Genuine Broadband Connection my.. (14)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 09:24 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28