473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Using VB 2005

Hi all,
I run a exe of VBNET on computer A, it run OK. But there is an error
(missing DLL - ag8614x_32.dll) when I run the same program in computer
B. I search dll on computer A and found at i386, Window\system and
Window\system32. I copied the dll from computer A to the same location
on computer B. Restart computer B and run program, the same error
(missing DLL display). Please help me to fix this problem. Thank you
very much.

Mar 27 '06 #1
5 1553
It could be some DLL that your executable depends on is missing from
computer B. Download DependencyWalker
(http://www.dependencywalker.com/), install it on both computers. Open
up the executable and see if it says that any components that your exe
uses are missing. Sometimes some are missing, (usually mpr.dll is
missing that is usually OK to be missing). If there are any files
missing on computer B that aren't missing on computer A, then
distribute (and possibly register) them to computer B and try again.

Mar 27 '06 #2
Hi Hayworth,
Thank you very much for your help. I am new in VB.NET, would you pls
give me more details on how to distribute/register dll file.

ha******@hotmail.com wrote:
It could be some DLL that your executable depends on is missing from
computer B. Download DependencyWalker
(http://www.dependencywalker.com/), install it on both computers. Open
up the executable and see if it says that any components that your exe
uses are missing. Sometimes some are missing, (usually mpr.dll is
missing that is usually OK to be missing). If there are any files
missing on computer B that aren't missing on computer A, then
distribute (and possibly register) them to computer B and try again.


Mar 27 '06 #3
Well, you can manually register things like DLLs and OCXes from the
Start/Run command of the task bar using "regsvr32.exe filename" or
"regsvr32.exe /u Filename" to unregister, but by far the easiest way is
to copy this code into a new text file called "RegisterOCXsAndDLLs.reg"
and then double click on it, which will put some stuff into the
registry which will allow you to register and unregister files simply
by right clicking on them in Windows Explorer and selecting Register or
Unregister from the popup context menu. Note that some DLL's can't be
registered and some can. If it can't, don't worry about it because it
doesn't need to be - you just declare it in your code and call it.

I would think your setup project in your solution should do the
registering for you. You can use the built-in installer maker in
VS2005 or get a separate one like Wise or Install Shield. I prefer
Wise.

Reviewing:

1. Open Notepad or Wordpad with a new text file, copy the following
into it, save it as RegisterOCXsAndDLLs.reg.
2. Double-click RegisterOCXsAndDLLs.reg and say yes when it asks you if
you want to change the registry.
3. In Windows Explorer, browse to your DLL or OCX. Right-click on it
and select Register or Unregister.

;================================================= =======
REGEDIT4

; This adds the ability to Right-Click on a .dll or .ocx
; and get the Register / UnRegister options.
;
; If it doesn't work for you, mail me and tell me about it.
; Jon Evans <jo*@evansoft.demon.co.uk>

; ==========
; .DLL files
; ==========

[HKEY_CLASSES_ROOT\.dll]
"Content Type"="application/x-msdownload"
@="dllfile"

[HKEY_CLASSES_ROOT\dllfile]
@="Application Extension"

[HKEY_CLASSES_ROOT\dllfile\Shell\Register\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""

; ==========
; .OCX files
; ==========

[HKEY_CLASSES_ROOT\.ocx]
@="ocxfile"

[HKEY_CLASSES_ROOT\ocxfile]
@="OCX"

[HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command]
@="regsvr32.exe \"%1\""

[HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command]
@="regsvr32.exe /u \"%1\""

; End
;================================================= =======

Mar 27 '06 #4
Thank you very much for helping me. It try this but there is the error
"can't find the dll file" right after I click "YES" to change the
register. Any idea ?

Mar 28 '06 #5
In Windows Explorer, you double click the RegisterOCXsAndDLLs.reg file
you just created. It will ask "Are you sure you want to add the
information in the file to the registry?" Click Yes.

After you've done this, in Windows Explorer, locate a DLL file or OCX
you want to register. Right click on its filename. A pop-up context
menu appears. At the top it will say Register, and possibly
Unregister. Click which action you want to take.

Alternatively, you can do Start/Run and then type in "regsvr32.exe " --
make sure there's a trailing space. Then bring up Windows Explorer
(not maximized). Click and drag the file you want to register into the
edit field of the Run box. If the filename is not all one word (like
it lives in a Program Files subfolder) then regsvr will think that
there are two files and just take the first one like "regsvr32.exe
c:\Program" In that case, enclose the filename in double quotes.

Should work. If it doesn't, please give very precise actions and error
messages. As you can see from the contents of that file, there is no
DLL file needed to run the RegisterOCXsAndDLLs.reg file so I don't
understand how you can get that error message.

Another nifty utility you'll wonder how you ever lived without is
PathCopy:
http://home.worldonline.dk/ninotech/
You can right click on a file and get all kinds of ways of copying the
filename: with and without folder, UNC version (if on a network drive),
enclosing in quotes, converting to short DOS ~ names, converting slash
directions etc. Again, works from a popup context menu. You can use
this to copy the long filename into the clipboard with quotes around it
so you don't have to add them yourself. Also great if you're using
Java (the slash conversion copying that is).

Did you solve your original problem using dependency walker?

Good luck,
Mark H.

Mar 28 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
6
by: charliewest | last post by:
Can someone pls point me to or recommend the easiest way to calculate someone´s age using the TimeSpan object, in .NET CF? Isn´t there a simple way to use the TimeSpan object to calculate the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
by: Mike Owen | last post by:
Hi, I am trying to pre-compile a project prior using ASP.Net 2.0, VS 2005, to putting it onto a live server. The reason for doing this is that other people have access to the server, and I...
5
by: AliR | last post by:
Hi Everyone, I have a Visual C++ MFC program, and I am trying to use a webservice written in C#. When I add the webservice to my project using Add Web Reference the sproxy compiler complains...
0
by: ME | last post by:
I can't seem to delete records using an objectdatasource. The object is a Typed Collection built by Visual Studio that access a SQL Database. When I try to delete using the ObjectDataSource it...
3
by: den 2005 | last post by:
Hi everybody, Can VS 2005 Express Edition run side-by-side without affecting each others projects and applications, new and existing ones? Can you provide info link where it is stated? Can I...
3
by: Tom | last post by:
I'm building a web application using VS 2005. This application uses Windows authentication to 'authenticate'. However, when I test it (debug) via the VS 2005 built-in test server, it doesn't work....
1
by: swethak | last post by:
hi, i have a code to disply the calendar and add events to that. It works fine.But my requirement is to i have to disply a weekly and daily calendar.Any body plz suggest that what modifications i...
13
by: ramprakashjava | last post by:
hi, i hav "java.lang.NullPointerException" error while Deleting table records using checkbox in jsp here i enclosed files help quickly plzzz.. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.