[gme-users] logging to console

Zoltan Molnar zolmol at isis.vanderbilt.edu
Fri Sep 9 10:00:25 CDT 2005

In BON2 it is possible sending messages to the console only:

	void ProjectImpl::consoleMsg(const std::string& msg,
msgtype_enum type)
		GMEAppPtr pGME = getGME();
		COMTHROW(pGME->ConsoleMessage(Util::Copy( msg ), type));
Based on this you could add a new method to ProjectImpl class, since
there is a property of IGMEOleApp (GMEAppPtr in BON2) called
ConsoleContents which enables you extract the whole content of the

	std::string ProjectImpl::getConsoleContents()
		GMEAppPtr pGME = getGME();
		CComBSTR ccBstr;
		COMTHROW(pGME->get_ConsoleContents( &ccBstr));
		return Util::Copy( ccBstr );

Br, Zoli

> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu 
> [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf 
> Of Manfred Heckler
> Sent: Friday, September 09, 2005 4:54 AM
> To: gme-users
> Subject: Re: [gme-users] logging to console
> Hello again,
> I have one more additional question:
> How can I write the whole console log to a file?
> -Manfred
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users

More information about the gme-users mailing list