Click here to Skip to main content
13,772,340 members
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

11.2K views
492 downloads
3 bookmarked
Posted 16 Aug 2016
Licenced CPOL

64 Bit Application Cannot Use DSOfile

, 16 Aug 2016
Rate this:
Please Sign up or sign in to vote.
DSOfile in 64 bit version

Introduction

64 bit application cannot use DSOfile. So I have compiled DSOfile to x64 version and it can be used now in 64 bit application.

Background

The original DSOfile can be download from here.

Using the Code

  1. Download zip file (64.2 KB)
  2. Unzip the file.
  3. Run as Administrator Install.bat.
    The script will copy dsofile_x64.dll to %WINDIR%\SysWOW64 and will register it.
  4. Add reference to your project: "DSO OLE Document Properties Reader 2.1"

VBA example of using DSOfile:

Private Function fnFileTitle(ByVal strFileName As String) As String
On Error GoTo OnError
   Dim oOleDocProp
   'Set oOleDocProp = New DSOFile.OleDocumentProperties 
   Set oOleDocProp = CreateObject("DSOFile.OleDocumentProperties")

   oOleDocProp.Open (strFileName)
   fnFileTitle  = oOleDocProp.SummaryProperties.Title
   oOleDocProp.Close
    
   If Not oOleDocProp Is Nothing Then Set oOleDocProp = Nothing

Exit Function
OnError:
    MsgBox Err.Number & " - " & Err.Description
    Resume Next
End Function

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

robert8w8
Software Developer
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Pro

Comments and Discussions

 
GeneralMy vote of 3 Pin
Member 1236439018-Aug-16 22:18
memberMember 1236439018-Aug-16 22:18 
GeneralRe: My vote of 3 Pin
robert8w819-Aug-16 1:33
memberrobert8w819-Aug-16 1:33 
QuestionSource code? Pin
Brian Lewis18-Aug-16 13:25
memberBrian Lewis18-Aug-16 13:25 
AnswerRe: Source code? Pin
robert8w819-Aug-16 1:26
memberrobert8w819-Aug-16 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02 | 2.8.181119.1 | Last Updated 17 Aug 2016
Article Copyright 2016 by robert8w8
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid