DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    1

    Registry Value for Date

    I am using VB 6.0 with Visual Studio Installer to install an Application.
    During the Installation I have the option of writing Keys/Values to the Registry.

    It appears that Value types are

    a. String
    b. Binary
    c. DWORD (integer)

    I want to enter a Registry value that represents the Current Date (Date of Installation).
    How do I do it?

  2. #2
    Join Date
    Dec 2003
    Location
    South Carolina
    Posts
    72

    Convert Date to String

    You will need to store the Date value as a String type in the Registry; there are no Registry objects that directly store a date.
    Stephen H. Stubbs
    Software Systems Engineer
    Smith Engineering, LLC

  3. #3
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You don't have to store the date as a string, although you certainly may. You may also encode it in a binary format and store the raw bytes. This requires more effort to code, but makes it more difficult for your users to change the date.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Visual Installer removing registry entries
    By AndrewH in forum VB Classic
    Replies: 0
    Last Post: 04-20-2006, 05:06 AM
  2. Replies: 4
    Last Post: 03-16-2006, 05:23 PM
  3. Writing in HKEY_LOCAL_MACHINE...Access is denied
    By Martin in forum VB Classic
    Replies: 22
    Last Post: 12-03-2001, 03:53 AM
  4. Registry? INI Files? What's In Store With .NET?
    By Dave Keighan in forum .NET
    Replies: 20
    Last Post: 07-08-2001, 07:40 PM
  5. Re: ASP and the Registry
    By Hans in forum ASP.NET
    Replies: 1
    Last Post: 06-29-2000, 11:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links