I have a viewer to show my saved reports. Delphi XE7 works all right. But, on new version (Delphi Tokyo) it doesn't work.
if OpenDialog.Execute then
ShellExecute (0, nil, 'C:\C_Progs\CrystalViewer.exe',
PWideChar('"' +OpenDialog.FileName+ '"'), nil, SW_ShowMaximized);
It's curious, since it only occurs when I select a file from a mapped drive.
ERROR: The application was unable to start correctly (0xc0000001). Click OK to close the application
Solution: i was used the TOpenDialog component, but i changed to TFileOpenDialog. I don't understand why, but it worked.
User contributions licensed under CC BY-SA 3.0