[AccessD] 64 Bit Access and comdlg32.dll

Rocky Smolin rockysmolin at bchacc.com
Mon Feb 4 11:32:26 CST 2019


Dear List:

 

I have two apps which need to operate in both 32 and 64 bit Office
environments.

 

I have added PrtSafe to all of the declares and that part works.

 

However, the Open File Dialog box does not.  It calls the standard:

 

Private Declare Function GetOpenFileName _

    Lib "COMDLG32.DLL" Alias "GetOpenFileNameA" _

    (pOpenfilename As OPENFILENAME) As Long

 

But the dialog box does not open.  Control simply transfers to the next line
of code after the Call to GetOpenFileName.

 

Is there an open file dialog box method or function which will work in both
32 and 64 bit without having to use conditional compile?  I'd like to stay
away from that if possible.  All of the other calls to libraries are
working.

 

MTIA

 

 

Rocky Smolin

Beach Access Software

760-683-5777

 <http://www.bchacc.com> www.bchacc.com

 <http://www.e-z-mrp.com> www.e-z-mrp.com

Skype: rocky.smolin

 

 



More information about the AccessD mailing list