CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Creating Constants at CompileTime

    I am trying to create a Constant at compile time so I can display the compile date at run time. I have tried with no success to use some of the few available compile time directives. Any one know if this is possible and HOW using VB 6.x?

    Example. User clicks the Help ABOUT button and the Compile date and time shows.

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Creating Constants at CompileTime

    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Creating Constants at CompileTime

    Thanks,
    That's not quite what I am looking for. I need to imbed the compile date and time within the compiled program so I can display it at run time

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Creating Constants at CompileTime

    Are you saying that you don't want to use the actual file date? I'm not sure I understand, unless you expect that the date might be changed after it is compiled, and you want to know the true date?
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured