Solved

Visual Basic and Windows NT

Posted on 1998-12-22
7
173 Views
Last Modified: 2013-11-25
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
Comment
Question by:eld
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 

Author Comment

by:eld
ID: 1451979
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
 
LVL 2

Expert Comment

by:PedroG
ID: 1451980
I've runned several programs i've made in NT with no problem.

Have you instaled your program correctly???
0
 
LVL 1

Expert Comment

by:muffinthedog
ID: 1451981
Have you tried compiling it on an NT box?
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 1

Accepted Solution

by:
mathies earned 100 total points
ID: 1451982
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
 

Author Comment

by:eld
ID: 1451983
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
 
LVL 1

Expert Comment

by:mathies
ID: 1451984
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
 
LVL 1

Expert Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question