[Insight-users] problem with Visual c++ 2008 experss edition
Luis Ibanez
luis.ibanez at kitware.com
Sun Jan 27 09:21:00 EST 2008
Hi Mostafa,
The "HelloWorld" example *is not a GUI application*.
It is intended to just print "ITK Hello World" in your
console:
#include "itkImage.h"
#include <iostream>
int main()
{
typedef itk::Image< unsigned short, 3 > ImageType;
ImageType::Pointer image = ImageType::New();
std::cout << "ITK Hello World !" << std::endl;
return 0;
}
You should have seen a MS-DOS command window appear,
with that message printed out.
You could also run the HelloWorld executable from
an MS-DOS command window.
You can also "step" through the code by setting a
break point in the first lines of the HellowWorld.cxx
code.
Regards,
Luis
------------------------
mostafa charmi wrote:
> Hi Luis,
>
> I did it, but I could not debug it again. the following messages can be
> seen in output window:
>
> 'HelloWorld.exe': Loaded
> 'C:\D\workspaces\insight-itk3.4.0\projects\helloWorld\Binary\Debug\HelloWorld.exe',
> Symbols loaded.
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
>
> 'HelloWorld.exe': Loaded
> 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll'
>
> 'HelloWorld.exe': Loaded
> 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\shimeng.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\lpk.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\usp10.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
>
> 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
>
> 'HelloWorld.exe': Unloaded 'C:\WINDOWS\system32\shimeng.dll'
>
> The program '[3964] HelloWorld.exe: Native' has exited with code 0 (0x0).
>
> Best Regards Mostafa
>
>
>
>
>
>
> On Jan 26, 2008 1:33 PM, Luis Ibanez <luis.ibanez at kitware.com
> <mailto:luis.ibanez at kitware.com>> wrote:
>
>
> Hi Mostafa,
>
> You are probably trying to run the "ALL_BUILD" target from the
> Visual studio IDE.
>
> Instead of doing that, you should select the "Hello World" project
> as the default project, and only after that, use the F5 key to
> run it in Debug mode, or use CTRL+F5 to run it without debugging.
>
>
> Regards,
>
>
> Luis
>
>
>
> ----------------------
> mostafa charmi wrote:
> > hello all,
> >
> > I have recently installed visual c++ 2008 express edition on my
> > computer. I wanted to test "helloworld" with this new compiler, but I
> > could not. A window appeared with title named "Executable for debug
> > session" and asked for executable file name.
> > I will appreciate if anyone can help me to solve this problem.
> >
> > thanks in advance
> >
> > mostafa
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org <mailto:Insight-users at itk.org>
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list