Click here to Skip to main content
15,886,518 members
Articles / Operating Systems / Windows
Tip/Trick

64 Bit Application Cannot Use DSOfile

Rate me:
Please Sign up or sign in to vote.
4.75/5 (6 votes)
16 Aug 2016CPOL 32.2K   2.4K   6   10
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:

VB.NET
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)


Written By
Software Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionUnable To Register Pin
Joe Sweeney22-Aug-23 7:24
Joe Sweeney22-Aug-23 7:24 
GeneralSystem32 or SysWOW64 Pin
Peter Tn31-Aug-22 21:22
Peter Tn31-Aug-22 21:22 
QuestionProblem with the update of XLSX / XLSM files properties Pin
Member 1494856922-Apr-22 22:31
Member 1494856922-Apr-22 22:31 
AnswerRe: Problem with the update of XLSX / XLSM files properties Pin
PaulStSmith18-Aug-23 23:50
PaulStSmith18-Aug-23 23:50 
QuestionDsoFileSetup_KB224351_x64 Pin
Member 1492594629-Aug-20 4:02
Member 1492594629-Aug-20 4:02 
PraiseDOSFile 64 bit Pin
richard_ca3-Apr-19 22:37
richard_ca3-Apr-19 22:37 
GeneralMy vote of 3 Pin
Member 1236439018-Aug-16 21:18
Member 1236439018-Aug-16 21:18 
GeneralRe: My vote of 3 Pin
robert8w819-Aug-16 0:33
robert8w819-Aug-16 0:33 
QuestionSource code? Pin
Brian Lewis18-Aug-16 12:25
Brian Lewis18-Aug-16 12:25 
Very useful tool, for those of us struggling to maintain Office-based applications as they move through versions, and up to 64 bit.
Perhaps you could include the 64-bit and 32-bit source in this article? That would be instructive.
AnswerRe: Source code? Pin
robert8w819-Aug-16 0:26
robert8w819-Aug-16 0: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.