Results 1 to 5 of 5

Thread: How to know .dll, .ocx etc.. used by VB 6.0 Program

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    7

    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

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2008
    Posts
    7

    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

  4. #4
    Fanatic Member
    Join Date
    Dec 2008
    Location
    St. John's, Newfoundland, Canada
    Posts
    965

    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?

  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width