Solved

can't run VB program in NT

Posted on 1999-01-12
6
146 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 69

Expert Comment

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

Expert Comment

by:Mirkwood
Comment Utility
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
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now