Is there a similar class in c++ like the Desktop class in java? (Windows specific) -
given following code:
import java.awt.desktop; import java.io.ioexception; public class myclass{ public static void main(string args[]){ try{ desktop.getdesktop.open("file.txt"); catch(ioexception e){ system.out.println(e.getmessage()); } } }
i know if there similar class in c++ performs same function statement desktop.getdesktop.open("file.txt");
?
if please describe how use method calls open file.
try this:
shellexecute(0, 0, "file.txt", 0, 0 , sw_show );
Comments
Post a Comment