Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Installation / Documentation > Code executed at compile-time


Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2004, 04:40 AM
lazerfisk's Avatar
lazerfisk lazerfisk is offline
Contributor
 
Join Date: Jan 2004
Location: Karlstad, Sweden
Posts: 401
Default Code executed at compile-time


Hi!

I need to have some code executed (or actually it's more like a metadata parser) at compile time. It should assign some values, for example builddate, and gather the versions and descriptions from all the loaded classes and modules ($version, $description etc.).

Is this possible using code? Is this possible by writing an addin or activex control. Is this possible *at all*? :|

One approach could perhaps be to write an addin that scans all the files and writes a .bas-file containing everything compiled as global variables or something... Or perhaps visual basic compiles from memory and not from disk? I don't know :/
Reply With Quote
  #2  
Old 01-26-2004, 10:51 AM
Flyguy's Avatar
Flyguy Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 18,882
Default

You can only parse data when compiled.
You can't add VB code afterwards
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standards and Practices loquin Tutors' Corner 10 07-28-2006 12:16 PM
A Brief History of Time (and Date) BillSoo Tutors' Corner 1 11-11-2003 03:36 PM
Why does sample code not compile? hweinstein Web Programming 6 08-12-2003 07:54 PM
need help on vb code for time zone InS- General 26 06-30-2003 12:32 AM
Text formattting watkins General 16 04-23-2002 12:01 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->