I'm sorry for my reply too late.
Shyjumon N. wrote:
> Hi Group,
> As i checked all the src made by Wsbuilder, i can see
> newproject.cpp, newwin000.cpp, and quit_ep.cpp(a procedure i added).
> Non of this src has the main function.
> Then how the Widestudio is starting up. I mean where it is getting main ?
The main() function is included in the platform dependent library such
as libwsx11.so or libwswin.dll or libwsdevfb.so..
> My question is, if i have an executable say "Helloworld", i need to
> pass an image file to it in the following way,
> [root@...]# ./Helloworld pic1.jpg
> [root@...]# ./Helloworld pic2.png
> [root@...]# ./Helloworld pic3.gif
> I thought of calling argv to store pic name ?
> Is there any way to do it.
You can access the arguments of argv[ ] or argc of main() function by
the following method:
Get latest updates about Open Source Projects, Conferences and News.