should be \lstinputlisting{filename.ext}safl wrote: ...
Then i insert (Insert->TeX Code) the following:
\inputlisting{code.cpp}
...
see also :
http://www.ctan.org/tex-archive/help/Ca ... tings.html
http://www.ctan.org/tex-archive/macros/ ... stings.pdf