Last time (with Stream Beta2) I've tried to call OpenCL.dll function from a GUI application (Delphi, Win32), it failed due to the fact that OpenCL.dll tried to write the expiry message to the console. The same function worked just fine when I compiled it in a console application.
With Beta4 I was hoping to use OpenCL.dll from a GUI application, but I can see it also prints out that silly expiry message to the console in the Hello sample.
When can we expect a Stream SDK release that will be callable from GUI applications?
it possible have console window and GUI window.
try redirect stderr to file before first CL function call
Originally posted by: nou it possible have console window and GUI window.
try redirect stderr to file before first CL function call
I'm not sure how can one do that. When you launch a process using CreateProcess, I suppose it's possible to do so. But when you load a DLL using LoadLibrary, how can you redirect stderr or stdout from there? Thank you
Originally posted by: MicahVillmow try fclose(stdout)/fclose(stderr)
Thanks, but I suppose that's for Linux and *ix I'm writing a GUI (windowed) application running under Windows XP and Windows 7. It's in Delphi -- but of course I can use any advices intended for MS Visual C++ environment.