Solved

can't run VB program in NT

Posted on 1999-01-12
6
155 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
[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
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
Technology Partners: 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!

 
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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