I have an application that I built using Delphi 2006 VCL and dtSearch COM api. It has been working as expected until lately when I get the error "CoInitialize has not been called" when ever I use the SelectDirectory function then try to call the dtSearch COM procedures. The SelectDirectory procedure had not precipitated the error before but now it does ever time. I understand that the SelectDirectory function uses COM support in it internal call to the ShBrowseForFolder. What I need is another way to have a dialog box (that does not use COM) that shows the existing directories available or a way to call CoInitiatize that works. I called the Coinitialize in the startup of the application but I still got the error in the same situtation.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.