Urgent - What Files are needed for Common Dialog Box??

what files are needed to run a VB program that has a common dialog box? I want to distribute a program to my friend but he keeps getting a runtime error that is something like (comdlg32.ocx 1 or more of its componenets in not registered properly). I know you need comdlg32.ocx, what are the others? the user does not have VB installed.
Who is Participating?
RLCornishConnect With a Mentor Commented:
If YOU have Visual Studio on your machine, you can run the Dependency Walker  - Start -> Visual Studio -> Visual Studio 6 Tools.

If you select COMDLG32.OCX, you get the following:
  *  COMDLG32.DLL  (the most important one - this is
     where all the logic is)
  *  kernel, user, ole32, advapi32, oleaut32, gdi32
    (these should all already be there)

  *  of course, as the other oster stated, you need
     the VB runtime (msvbvm50.dll or msvbvm60.dll)

You can look in msdn.microsoft.com/support/ -> "DLL Help" to determine the versions required (always deploy as a matched set).

Hope this helps,
Did you try to create a setup/install application using the Package & Deployment wizard that comes bundled with vis studio. Just select the vbp and follow the prompts, all necessary files and dependancies are included in the setup.exe file for installing your app.

Have a look its very straight-forward.  

Mr_ColemanAuthor Commented:
i just need to send my friend the files that are used by the common diaglog control. anyone know what they are?
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

You go to project->Component.
find Microsoft Common Dialog Control 6.0
select it.. then you can see the file name for dialog control.

it is in c:\windows\system\comdlg32.ocx

hope this can help you. good luck. ^_^
why just the common dialog control files - what can he do with it if he doesnt have vb installed?
why just the common dialog control files - what can he do with it if he doesnt have vb installed?
I think eamonk has the answer, it's unlikely that your file isn't working because he has n't got the .ocx's, rather that they are n't registered on his PC.
You are going to need more than just the comdlg32.ocx
You will need the vb runtime files, easier to just use the P&D wizard as was suggested
Anthony PerkinsCommented:
Please maintain your open questions:
Need Focus On Second Window Date: 12/06/2001 09:30AM PST
Sending Email Without ISP Date: 03/25/2002 10:23AM PST  
Gettting around Firewall Date: 01/10/2002 11:12AM PST  

Hi RLCornish,
Welcome to Experts Exchange.  Please note that it is the etiquette here to use comments only.  The questioner can still select your answer if he feels it is the best that suits his needs.
Only use the answer option if you are 200% sure your answer is the one and only possible solution. And also it does not duplicate a previous comment.
1:<<If YOU have Visual Studio on your machine, you can run the Dependency Walker>> You can download DW from Microsoft for free.
2: DW does not show any other components needed with the application.
3: Did you notice in your question you asked that a comment was posted not an answer.

Check this link for more information:
Again Welcome to EE, I would suggest you ask a moderator in Customer Service to reject your proposed answer
To hes,

My apologies.  I am new to the forum and I did not pick up on that in time.  I understand the reasoning behind that and will adher to the forum etiquette going forward.

Hopefully, I will only make each mistake one time.

No problem we, including myself have all made the same mistake.
Again Welcome to EE I hope you find it a great place to find answers as well as help others.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.