[Webinar] Streamline your web hosting managementRegister Today


Looking for dll, and usage

Posted on 1999-11-12
Medium Priority
Last Modified: 2012-05-04
My app accesses a file.  I would like the user to be able to modify the file, by either typing it into a textbox, or pushing a "Browse..." button.  The button should call the dll that many Microsoft applications use to allow you specify which file to open.

What is the name of this dll, what parms do I provide it and what does it return?  (I have no manuals for this info.)
Question by:tlaks
  • 2
  • 2

Expert Comment

ID: 2203337
Is this a text file? You may be able to use the common file dialog to get the name and then a Shell command to open it in Notepad (or your specific text editor).

Don't have manuals...do you have the help files? Also, what version of VB?

Author Comment

ID: 2203375
This is version VB 6.0
The help files are slow massive and confusing, but I checked there first and could not find help that would walk me through my dll.
I probably am looking for the common file dialog.  The program will read and process the file.  All I need is the dll, syntax, and what it returns.

Accepted Solution

psmith789 earned 200 total points
ID: 2203401

Private Sub mnuFileOpen_Click ()
   ' CancelError is True.
   On Error GoTo ErrHandler
   ' Set filters.
   CommonDialog1.Filter = "All Files (*.*)|*.*|Text _
   Files (*.txt)|*.txt|Batch Files (*.bat)|*.bat"
   ' Specify default filter.
   CommonDialog1.FilterIndex = 2

   ' Display the Open dialog box.
   ' Call the open file procedure.
   OpenFile (CommonDialog1.FileName)
   Exit Sub

' User pressed Cancel button.
   Exit Sub
End Sub


Author Comment

ID: 2203481
Yes.  This is to the mark what I needed.

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

591 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