Discussion:
Macro Expander for VB6 IDE Wanted
(too old to reply)
expvb
2006-07-20 22:05:37 UTC
Permalink
Is there an Addin for VB6 that lets me expand macros, like C++ that might
include several lines? The Addin must not modify the source code, but makes
a copy of the source code then compile it.

I am not interested in solutions done at run time, as this will be used for
a special purpose. Without an Addin, I could make a tool that reads the VBP
file, then in a temp folder expands the macros and compile the project via
command line options, however, I prefer an Addin.

Thank you
Ralph
2006-07-21 17:43:06 UTC
Permalink
Post by expvb
Is there an Addin for VB6 that lets me expand macros, like C++ that might
include several lines? The Addin must not modify the source code, but makes
a copy of the source code then compile it.
I am not interested in solutions done at run time, as this will be used for
a special purpose. Without an Addin, I could make a tool that reads the VBP
file, then in a temp folder expands the macros and compile the project via
command line options, however, I prefer an Addin.
Thank you
One always hates to say "No". After all there are quite a few bored
programmers out there. But there is nothing built-in that would support such
an expansion (there is no preprocessor) so any work-around would have to
mimic the alternative you described.

Another alternative, depending on what you are trying to do, might be to get
creative with the Conditional Compile directives. (#If...Then, #Else,
#Const, etc) and perhaps creating a 'generic' bas file.

-ralph
expvb
2006-08-12 13:04:56 UTC
Permalink
Post by expvb
Is there an Addin for VB6 that lets me expand macros, like C++ that might
include several lines? The Addin must not modify the source code, but
makes a copy of the source code then compile it.
I am not interested in solutions done at run time, as this will be used
for a special purpose. Without an Addin, I could make a tool that reads
the VBP file, then in a temp folder expands the macros and compile the
project via command line options, however, I prefer an Addin.
Thank you
The only thing I could find is this:

VB.IDE Macro Studio Professional Edition Version: 1.3
http://www.qwerks.com/product/1876.html

But the company that made it only lists products for dotnet now. See "DNN VS
Macro's" link:

http://www.subzero-solutions.net/

Loading...