|
-
Oct 29th, 2009, 08:47 AM
#1
Thread Starter
New Member
How to know .dll, .ocx etc.. used by VB 6.0 Program
Good morning to the community,
I have developed a VB 6.0 program 2 year ago and installed on a user machine.
After 2 years the company ask me to install that program to other user.
The program mainly whats do is read a text file and insert rows in a Sql Server DB.
The Strange part-
The program runs perfectly only in one computer, the one where was installed initially, In others computers including the one used to develop it, only insert the first record and finish without any errors.
The connection string is included in the code, the ODBC is the same with the same username and password.
After some hours trying to identify what can be the reason of the problem I decide to create a Ghost Image from the only computer where the program run and insert the total amount of rows from the text file.
The Imaged computer make a test of the program and works perfectly.
The only thing that I think is one .dll or ocx used by the program was updated in other tested machines, except the one that runs ok.
Its there a way to know what .dll , .ocx etc... and version that's used in some VB program?
Thanks for any help on this strange situation
--evick
-
Oct 29th, 2009, 08:52 AM
#2
Re: How to know .dll, .ocx etc.. used by VB 6.0 Program
Do you still have the source files? If so, open the project in IDE and 1) press Ctrl+T to see ocx references, 2) from IDE menu, select Project|References for DLL/TLB references.
If you no longer have the source files, you might have some luck with apps like Dependency Walker which can show you the app's dependencies.
-
Oct 29th, 2009, 09:00 AM
#3
Thread Starter
New Member
Re: How to know .dll, .ocx etc.. used by VB 6.0 Program
Thanks for the quick response
Yes I have the Source available I'm going to check what you suggest.
I let know the community what's found because its very time consuming to identify this type of problems.
Thanks a lot
--evick
-
Oct 29th, 2009, 09:14 AM
#4
Fanatic Member
Re: How to know .dll, .ocx etc.. used by VB 6.0 Program
I do have one question regarding .dll libraries...
If I were to not use Direct X7 control, and I wanted to apply a few seconds pause in between parts of the code, like this...
Code:
PlaySound App.Path & "\sounds\round1intro.wav", _
ByVal 0&, SND_FILENAME Or SND_SYNC
Label1.Caption = "The first player to win two games will become the champ, and goes on to play the Big Money Cards for up to $32,000."
playing = True
KeyPressed = 0 ' clear the key
Me.KeyPreview = True 'clear the key intercept
' Timer1.Enabled = True
Command2.Enabled = False
Pause 5000
token = PlayIntro
End If
Case PlayIntro
contBkgd(1).Visible = True
Label1.Caption = "Good Luck to both players, and the first question is for (red player)..."
RBorder(1).Visible = True
Command1.Enabled = True
' Timer1.Enabled = False
And I were to apply this Private Declare function near the top of the form:
Code:
Private Declare Sub Pause Lib "kernel32" (ByVal dwMilliseconds As Long)
What do you recommend if I choose not to use a Direct X7 reference?
-
Oct 29th, 2009, 09:20 AM
#5
Re: How to know .dll, .ocx etc.. used by VB 6.0 Program
Jon, I think your question is not the same as the original posters (OP)? You may want to start your own thread.
1. Pause is not a kernel32 function, Sleep is.
2. I don't see what DirectX has to do with your code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|