Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

can't run VB program in NT

Posted on 1999-01-12
6
Medium Priority
?
164 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
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.

 
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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
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…

719 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