Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

Target Designer Scripting Questions

 
Post new topic   Reply to topic    Computer Forum Forum Index -> windowsxp embedded
View previous topic :: View next topic  
Author Message
Markus Pietrek
Guest





PostPosted: Wed Dec 19, 2007 9:27 am    Post subject: Target Designer Scripting Questions Reply with quote

Hi folks,

playing with the scripting possibilities on the components a few questions
came up where I couldn't find any references. Maybe someone can help?

1) I often see oPL.TraceEnter and oPL.TraceLeave.
Presumably they are for debugging. Where can I see the tracelog?
2) Is it possible to output text to the message windows? If even colored
than I'm in heaven.
This is for a small development component that should print me any
disabled components, registry
entries or RunOnce after build
3) Can I retrieve the .SDL revision within scripts? I'd like to place an
icon on the desktop that will give
me the build date&time and the revision.

Thanks in advance,
Markus
Back to top
Google
Sponsor





PostPosted: Wed Dec 19, 2007 9:27 am    Post subject: Advertisement

Back to top
KM
Guest





PostPosted: Wed Dec 19, 2007 6:29 pm    Post subject: Re: Target Designer Scripting Questions Reply with quote

Markus,

It is hard to answer your questions precisely simply because there is no publicly available documentation for CMI interfaces and
internals of TD.

Anyway, I'll give it my best guess.

1) Trace methods are just wrappers that map to WriteMsg method of CMI API. That methods is supposed to fire an event
(CMI.OnWriteMsg) and pass the message info in there. A CMI client application (could be anything from your own component script, or
TD, to CMI Explorer, or etc.) would catch the event and process the message and log it to whatever log UI it supports (could be GUI
debug output window, could be a console window, a log file, or etc.)
There is also a way to log the messages to a file that is supported by the CMI internally (without a need for client app).

2) See the event info mentioned above. How you implement the log window and how you parse and colorize the messages is up to you (up
to your own client app implementation).

3) Please take a look at CompChainRevs collection of IInstance interface. It gives you the revisions of the components on which the
Instance is based on.

--
=========
Regards,
KM


"Markus Pietrek" <m_a_r_k_u_s_._p_i_e_t_r_e_k_@_e_m_t_r_i_o_n_._d_e> wrote in message news:eVH8xFiQIHA.4684@TK2MSFTNGP06.phx.gbl...
Quote:
Hi folks,

playing with the scripting possibilities on the components a few questions came up where I couldn't find any references. Maybe
someone can help?

1) I often see oPL.TraceEnter and oPL.TraceLeave.
Presumably they are for debugging. Where can I see the tracelog?
2) Is it possible to output text to the message windows? If even colored than I'm in heaven.
This is for a small development component that should print me any disabled components, registry
entries or RunOnce after build
3) Can I retrieve the .SDL revision within scripts? I'd like to place an icon on the desktop that will give
me the build date&time and the revision.

Thanks in advance,
Markus
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> windowsxp embedded All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum