Command 'Dir' / VisualStudioC++ 6
Posted on 2000-03-17
I'm programming a VB-macro for the MS developer studio VC++6.
An error occurs by using the 'Dir'-command like shown below ( but I used it successfully in Excel). The error: "Typen unverträglich: 'Dir' " - means the parameter-type "path" has the wrong type for use with 'Dir' (but in my eyes it has the right type for use with Dir, its string).
path = "C:\product\fk\*.h" ' set path
name = Dir(path, vbDirectory) ' get first ".h"-name
Who can help me quickly?