I am using Borland Builder C++ 2009. I want to open a particular file from Microsoft Excel during runtime. The following line of code opens Excel, but there's a message saying it cant find the file "Tool.xls" -- I have tried giving it the entire path for the file, and it still can't find it. Does anyone know how ShellExecute() works? I am wondering if I have filled the parameters correctly.
Code:
ShellExecute(NULL, "open" ,"Excel.exe", "C:\\Documents and Settings\\Lab1\\My Documents\\Tool.xls", NULL, SW_SHOWNORMAL);