Go Back   ø-Windows XP UsersGroup-ø > Hardware and Software > Embedding Xp
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Tags: , , ,

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-13-2008, 01:47 AM
Markus Pietrek
 
Posts: n/a
Default Target Designer Scripting Questions

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


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-13-2008, 01:47 AM
KM
 
Posts: n/a
Default Re: Target Designer Scripting Questions

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...
> 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
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Contact Us -|- ø-Windows XP UsersGroup-ø -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 12:53 AM.



Design By: Miner Skinz.com
Powered by vBulletin® Version 3.6.7

Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.