Results 1 to 40 of 178

Thread: VB - A Program Registration Scheme

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: VB - A Program Registration Scheme

    Quote Originally Posted by MartinLiss
    My code is meant for VB and not VBA. Are you using VB6?
    I am using VB6 Enterprise Edition

    What is the difference between VB and VBA?

  2. #2

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: VB - A Program Registration Scheme

    VBA is Visual Basic for Applications and is the form of visual basic that you use from within Word, Excel etc.

    What did you mean when you said "compile the protect.vbs"?

  3. #3
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: VB - A Program Registration Scheme

    Quote Originally Posted by MartinLiss
    VBA is Visual Basic for Applications and is the form of visual basic that you use from within Word, Excel etc.

    What did you mean when you said "compile the protect.vbs"?
    when i would do F5 when the project is open, or when it would attempt to compile into an exe.

  4. #4
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Re: VB - A Program Registration Scheme

    Hey Martin....

    Can you tell me what I am doing wrong here... I open your project vb file and I press the play button (F5)..

    And I get a compile error - can't find project or library...

    I am using Win XP and VB 6.0

    The underlined line of code is highlighted blue when I get the error..

    VB Code:
    1. Public Function GetSerialNumber() As Long
    2.  
    3.     Dim strVolumeBuffer As String
    4.     Dim strSysName As String
    5.     Dim lngSerialNumber As Long
    6.     Dim lngSysFlags As Long
    7.     Dim lngComponentLen As Long
    8.     Dim lngResult As Long
    9.    
    10.     strVolumeBuffer$ = [U]String$[/U](256, 0)
    11.     strSysName$ = String$(256, 0)
    12.     lngResult = GetVolumeInformation("C:\", strVolumeBuffer$, 255, lngSerialNumber, _
    13.             lngComponentLen, lngSysFlags, strSysName$, 255)
    14.                  
    15.     GetSerialNumber = lngSerialNumber
    16.    
    17. End Function
    Thank you for taking the time!
    Stilekid007

  5. #5

  6. #6
    Hyperactive Member stilekid007's Avatar
    Join Date
    Apr 2005
    Location
    DUDE! I'm your neighbor! HELLO!!!
    Posts
    388

    Re: VB - A Program Registration Scheme

    Thank you so much marty!

    Thats worked! Thats a really nice program...

    So I understand if the user doesn't have outlook then it will display a message window saying send an email to blah blah blah...

    Is this a correct asumption?

    Thanks again man!

  7. #7

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: VB - A Program Registration Scheme

    Yes, that's the assumption. There are other, more general, ways of sending email and so if you have the need you might want to look into changing the code.

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