Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Add %GUID% to Autotext and Code Templates
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Left
New Member

5 Posts

Posted - Oct 07 2004 :  04:21:42 AM  Show Profile
Could you please add %GUID% (like currently %DAY%, %MONTH%, etc.) to Autotext and Code Templates?
This macro should generate a new GUID and insert it to the code text.
I often create a new interfaces, they looks in code as:


MIDL_INTERFACE("C3301707-2132-4bd7-9948-FD37CAC66ACE")
IMyCoolInterface : public IUnknown
{
};


This will allow me to speed up this process.
I think this feature will not take a lot of time and will be quite useful.
Also, it will be useful if you planned to add code templates for IDL language.

Thanks.

Uniwares
Tomato Guru

Brazil
1684 Posts

Posted - Oct 07 2004 :  3:02:54 PM  Show Profile
A great way to solve the problem of extending %WHATEVER% variables, would be that if its not a builtin name, VAX tries to resolve it to a macro name. If it finds a macro with this name, it executes and inserts the return value of it.
If it does not resolve to a macro, it could try to resolve it to an environment variable. I think this would cover most possible scenarios.

Enterprise tools for email, storage, security and logs
http://www.uniwares.com
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 08 2004 :  11:13:09 AM  Show Profile
case=565

Edited by - support on Apr 21 2005 09:55:56 AM
Go to Top of Page

totem
Starting Member

1 Posts

Posted - Nov 30 2005 :  12:47:28 PM  Show Profile
Hello, I'm looking for the same feature, as I need to take whatever the command line tool generated and insert it into the file. It would be great to get %GUID% for now at least. Any progress on this?

thanks!
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
15905 Posts

Posted - Nov 30 2005 :  2:04:00 PM  Show Profile
you can use $GUID_DEFINITION$, $GUID_STRING$ and $GUID_STRUCT$ in 1432 and above. see this page for a complete list of autotext tokens:

http://www.wholetomato.com/products/features/autotext.html?more=yes

totem i am not sure if this will do what you want, since this relates to autotext, not converting tokens inside source files, presuming this is what you are referring to.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000