• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

Visual Basic and Windows NT

I have created compiled and run a project in VB 5.0 on a Windows 95 platform and it runs with no trouble. When i try and run the same project on another PC which has Windows NT 4.0 there seems to be loads of bugs and the simplest bit of code cannot be run i.e Format() function does not work OR connecting to Oracle Database using RDO object.
Am I mad or is there a difference to running programs on these OS's??
0
eld
Asked:
eld
1 Solution
 
eldAuthor Commented:
This is a very important issue for me as a lot of Pc's in my company will soon be Windows NT 4.0

Any help appreciated
0
 
PedroGCommented:
I've runned several programs i've made in NT with no problem.

Have you instaled your program correctly???
0
 
muffinthedogCommented:
Have you tried compiling it on an NT box?
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
mathiesCommented:
For your Format function, it's make no difference the os you use.
But check if the system format are the same on to machines.
One can be 1998/12/21 and the other one 98-12-21.

For your Oracle driver, check if required file for ODBC Driver are installed on both computer and the file you install are not os specific.

0
 
eldAuthor Commented:
Mathies - thanks for your comments. I'll check the Oracle 7 ver 2.5 driver for operating specific issues
As for the format function i'm totally stumped
any help on this would be appreciated:

Also VB running on NT seems to be very rigid
On Windows 95  -  if you use a variable (assign a value) that isn't
defined when you compile the program this get's let through
BUT on NT this stops the compilation

Is this to do with Project Properties and setting up the type
of code to compile in  - i.e Native Code or P Code??
Or am i just clutching at straws??

0
 
mathiesCommented:
No
You should always use Native Code, P Code is just a precompile code, not computer code.  Mayby 1 time in you life P Code will be faster but never see...

For your compilation error check if you have Option Explicit at the start of all your code page.

If the variable is not declare the compilation assing the type variant to your variable and when you try to access this variable with other type this cause an error.
And why you don't have this error on 2 OS, it's because NT detect more problem at compilation then Win95.

0
 
mathiesCommented:
If you need more help with format function make a new comment or send me e e-mail mathies@tactician.ca
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now