Greetings!

I keep trying running Excel without success.
I tried the ShellExecute, and it didn't run my Excel sheet when I made my app to an exe file.

So now I decided to try spawnle. I used the appropriate parameters, and as error checking I use the errno global register.

My error is: Exec format error
What does this mean?

Code:
int result=spawnle(P_WAIT,fileBuffer,paramBuffer,NULL,NULL);
FileBuffer contains the path and the name of my excel sheet. I assume that excel is run when running a sheet by default. ParamBuffer contains /p + the path of my app.

What's the problem? How can I solve it? Maybe any other suggestions?

Could any of you send me an exe file which DOES run and excel sheet?

Thanks a lot.

ByZ
Han