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
Solved

can't run VB program in NT

Posted on 1999-01-12
6
152 Views
Last Modified: 2010-05-03
I would like to ask that why prompt "Unexpected Error" when I run some VB program in NT?
What problems do you think?
0
Comment
Question by:cswkk98
6 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 1455750
Do you know which statement make this error to occur. This will help a lot!
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1455751
PRoblem areas can be:
-Unicode-> Ansi conversion
-Byte -> String conversion
-Installed OCX like common control (listview, treeview)
-Registry entries
-Unsupported API's. (toolhelp.dll)

So a lot of problem areas. We need more info
0
 
LVL 2

Expert Comment

by:cartti
ID: 1455752
I wrote an application for use by traders where I work. At the moment I coincidently have the same problem when loading the application on my computer. It comes up with

Run-Time error '50003'
Unexpected Error

The strange thing is it works on anyone elses computer and it works on my computer if I run it in VB rather than from an exe. I really have a strong feeling it's a bug in VB. To get round this I just recompiled the project and produced another exe file.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 1455753
For cartti:

We often have this problem with different version of components.

Try to find which component (DLL or OCX) causes the problem and then verify versions between both computers.

You must have surprise.
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1455754
50003 is a dll problem.
goto www.sysinternal.com and download filemon.
Run filemon before starting the program.
Filemon will make a trace of all dll/ocx used.
It will show "file not found" when the dll/ocx is not found.
Copy this OCX/DLL when needed and register it using regsvr32

0
 

Expert Comment

by:cuatog
ID: 1455755
for cswkk98!

You must recompile your program in NT. I have experience that problem so many times and the only solution i found is to recompile it in the NT.

cuatog
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

839 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