LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default dll in VBA

Hi,
Have made something in c++ to convert a unix file to
dos format. I declare the function in a module using

Declare Function Unix2dos Lib "unixconvert.dll" _
(ByVal InputFile As String, ByVal OutputFile As String)
As Long

and then reference the dll in References under the tools
menu. I then call the function in a sub in the same
module containing the Declare statement using

ConvertStatus = Unix2dos(FileIn, FileOut)

and get Err=53, i.e. file not found. What could be wrong,
excepting typos?

Any help appreciated.

jacob
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"