PDA

View Full Version : نحوهء کامپایل و اجرا ؟



Farshad99
جمعه 27 مهر 1386, 23:05 عصر
چند روزی هست که نرم افزار بیلدر 2007 رو(++C) رو گرفتم
این نرم افزار در قالب یک دی وی دی هست وتحت ویندوز ویستا نیز کار میکنه

مشکلی که من دارم اینه که بعد از نوشتن برنامه در قالب فایلهای CPP برای Run کردن برنامه باید قسمت Run

رفته و از قسمت Parameters 4 تا گزینه رو پر کرد نا برنامه از طریق یک فایل EXE اجرا بشه.

من هر گزینه ایی رو زدم نتونستم برنامه رو اجرا کنم.
به ترتیب این چهار گزینه رو مینویسم تا اگه ممکنه دوستان کمک کنن.


Host Application " Specifies the path to an executable file. (Click Browse to bring up a file-selection dialog.) If the current project is a DLL or package, use this edit box to specify a host application that calls it. You can also enter the name of any executable that you want to run in the debugger. If you want to run the project that you have open, there is no need to enter anything in Host Application.


"Parameters" Specifies the command-line parameters to pass to your application. Enter the command-line arguments you want to pass to your application (or the host application) when it starts. You can use the drop-down button to choose from a history of previously specified parameters.



"Working Directory" Specifies name of the directory to use for the debugging process. By default, this is the same directory as the one containing the executable of your application.


"Source Path "Specifies the directories containing the source files. By default, the debugger searches paths defined by the compiler. If the directory structure has changed since the last compile or if the debugger cannot find a source file, a path can be entered here to include the file in the debugging session. Click the ellipsis button to display a dialog box that allows you to edit an ordered list of directory source paths Additional directories are searched in the following order


http://forum.persiantools.com/images/statusicon/user_online.gif http://forum.persiantools.com/images/buttons/report.gif (http://forum.persiantools.com/report.php?p=1464191) http://forum.persiantools.com/images/misc/progress.gif

Inprise
جمعه 27 مهر 1386, 23:18 عصر
F9 رو بزن و برنامه ات رو اجرا کن . مسیری که رفتی برای تست و اجرای برنامه های غیر اجرائی مثل DLL هاست که باید از طریق یک میزبان اجرا بشن .

Farshad99
جمعه 27 مهر 1386, 23:41 عصر
الان تست کردم و دیالوگ پارامتر هم پر نکردم.
همون پیغام اول رو میده و میگه بدونه تعریف Host Application نمیتونم برنامه رو Run کنم.

در قسمت Host Application برای انتخاب فایل Exe پیش فرض میره توی System 32 ویندوز که تا بحال من Note pad,Wriet Exe,word,Sticky Note رو انتخاب کردم و هر بار هم برای پارامتر اسمی گداشتم.
ویندوز من هم ویستا Home Premium و با لیسانس شرکت وایو هست.

Inprise
شنبه 28 مهر 1386, 00:15 صبح
چجور برنامه ای نوشتی ؟
Win32 Application ?
ویندوز و لیسانس و سخت افزار و غیره که مهم نیستند . در مورد برنامه ات باید توضیح بدی . اگر یک برنامه اجرائی سادهء ویندوز مینویسی با انتخاب گزینهء اجرا از منو باید بتونی اجراش کنی .