[Insight-users] Error

Luis Ibanez luis.ibanez at kitware.com
Sun Aug 16 11:07:08 EDT 2009


Hi Suchita,


Yes, it makes a difference to run a program by directly double clicking
on the .exe file, or running it from the command line.

The difference is that in the first case you don't have a mechanism for
passing the command line arguments to the program, while in the second
case you can.

Your situation illustrates the pernicious effect that GUIs have on users.
They prevent you from understanding how the essential element of software
works, and create an environment of ignorance and dependency.

We have an entire generation of developers who don't know what
command line arguments are, and who are ignorant of what really
happens below the surface of the Windows interface.


          There is not much that we can do for you
          if you are not interested in learning....


Regarding the new question that you post in the second part of your
email: That's the consequence of trying to build an application by
default from the Visual Studio interface, instead of configuring it
with CMake.


     You will have to first decide if you really want to learn.


After that you may benefit from following the Tutorials:

http://www.itk.org/ITK/help/tutorials.html

In  particular, you should read:
http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm


      Regards,


             Luis


--------------------------------------------------------------------------------
On Sun, Aug 16, 2009 at 10:41 AM, Suchita Manandhar <
suchitamanandhar at hotmail.com> wrote:

>  Hello Luis,
>
> Thanks for the link. But it doesn't solve my problem. I think it shouldn't
> make any difference if i directly click .exe file or use command prompt to
> run it. But in both case, the same thing. Well So I again tried from the
> beginning. This time I tried to run Data Representation/Image files. I ran
> CMake and configured it. It was ok with this. Configuration successful. Then
> I tried to build the .sln file. It showed "stdafx.h" file missing. Then I
> included this in all the file and rebuilded it. Then again it showed:can't
> open include file itkImage.h,itkTestMain.h ,itkVector.h .Now how to solve
> this. where and how shall i include those file ? What Should I do to solve
> this problem.
>
> Thanks
>
> Regards,
> Suchita
>
>
>
>
> ------------------------------
> Date: Sat, 15 Aug 2009 23:04:20 -0400
>
> Subject: Re: [Insight-users] Error
> From: luis.ibanez at kitware.com
> To: suchitamanandhar at hotmail.com
> CC: Insight-users at itk.org
>
>
> Hi Suchita,
>
> Please watch this instructional video in Youtube:
>
>
> http://www.youtube.com/watch?v=foYsmpDrYjY&feature=PlayList&p=6D392A9F3AD04537&playnext=1&playnext_from=PL&index=57
>
> and read the Wikipedia page:
>
> http://en.wikipedia.org/wiki/Command_Prompt_(Windows)<http://en.wikipedia.org/wiki/Command_Prompt_%28Windows%29>
>
> and look at the list DOS commands that you can
> use in the command prompt:
>
> http://en.wikipedia.org/wiki/List_of_DOS_commands
>
> In particular you need to learn:
>
>
>    - cd
>    - dir
>    - del
>    - copy
>    - set
>
>
> Once you get familiar with the command prompt,
> you should do:
>
>
>    - "cd" to the binary directory where you build your example
>    - type "dir" and locate the .exe file
>    - type the name of the executable followed by the command line
>    arguments.
>
>
>
> Regards,
>
>
>        Luis
>
> ---------------------------------
> On Sat, Aug 15, 2009 at 10:55 PM, Suchita Manandhar <
> suchitamanandhar at hotmail.com> wrote:
>
> Hello Luis,
>
> Well Can you please help me how can I run those programs from the command
> line then. I have been using Windows vista and i am using Visual C++.Net. I
> opened the console application and tried to run these programs. Can you
> refer any links so that I can get into those.
>
> Thanks
>
> suchita
>
>
>
> ------------------------------
> Date: Sat, 15 Aug 2009 20:07:44 -0400
> Subject: Re: [Insight-users] Error
> From: luis.ibanez at kitware.com
> To: suchitamanandhar at hotmail.com
> CC: insight-users at itk.org
>
>
> Hi Suchita,
>
> All the Examples in ITK are are intended to be run
> from the command line.
>
> Please get familiar with the process of calling
> command line programs in your platform.
>
>
>      Regards,
>
>
>            Luis
>
>
> -----------------------------------------------------
> On Mon, Aug 10, 2009 at 10:23 PM, Suchita Manandhar <
> suchitamanandhar at hotmail.com> wrote:
>
>
> Hello ,
>
>
> I have some error running the program...I tried to run
> BinaryMediumImageFilter.cxx file. But it is giving error. In the code
> section, there is
>
> if( argc < 4 )
>     {
>     std::cerr << "Usage: " << std::endl;
>     std::cerr << argv[0] << "  inputImageFile outputImageFile radiusX
> radiusY" << std::endl;
>     return EXIT_FAILURE;
>     }
>
>
> and my program just executes this part and throw error. How to solve this ?
>
>
>
> Thank you
> suchita
>
>
>
> ------------------------------
> Get free photo software from Windows Live Click here.<http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
> ------------------------------
> Get your vacation photos on your phone! Click here.<http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM>
>
>
>
> ------------------------------
> Hotmail® is up to 70% faster. Now good news travels really fast. Try it
> now.<http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090816/6f43c574/attachment-0001.htm>


More information about the Insight-users mailing list