cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

fiery
Journeyman III

OpenCL GUI application?

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?

0 Likes
5 Replies
nou
Exemplar

it possible have console window and GUI window.

try redirect stderr to file before first CL function call

0 Likes
fiery
Journeyman III

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

0 Likes

try fclose(stdout)/fclose(stderr)
0 Likes

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.

0 Likes

fclose is part of stdio.h, so it should work on windows also.
0 Likes