Results 1 to 6 of 6

Thread: Building Classes

  1. #1

    Thread Starter
    Hyperactive Member Jenova's Avatar
    Join Date
    Feb 2006
    Location
    Googleplex
    Posts
    413

    Building Classes

    At the moment i'm building a class for the System API's. It's not finished but i would like to know if i am doing it correctly, this is my first attempt at making a class, so can some one take a look at it and see if there is anything i could do to it to make it better or check for any mistakes. Just requesting feedback from it really.

    Regards,

    Jenova
    Attached Files Attached Files

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Building Classes

    There are many Types and APIs declared that you dont use.

  3. #3

    Thread Starter
    Hyperactive Member Jenova's Avatar
    Join Date
    Feb 2006
    Location
    Googleplex
    Posts
    413

    Re: Building Classes

    It's not finished yet, i just get the feeling that there is something wrong with it.

    Jenova

  4. #4
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    Re: Building Classes

    Is there anything specific that you worry about?

  5. #5
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Building Classes

    in the GetOSVersionName function, udtVersionInfo.dwPlatformId is VER_PLATFORM_WIN32_WINDOWS for pre-NT systems, yet in IsWin95/98/ME you're checking it against VER_PLATFORM_WIN32_NT

    also you should specify the clauses - just in case the computer decides to interpret it differently:
    VB Code:
    1. IsWin98 = [B]([/B]udtVersionInfo.dwPlatformId = [B]VER_PLATFORM_WIN32_WINDOWS)[/B] And _
    2.                     [B]([/B]udtVersionInfo.dwMajorVersion = 4[b])[/b] And [B]([/B]udtVersionInfo.dwMinorVersion = 10[b])[/b]
    use the typed version of the string manip functions, otherwise they return variants: Left$ Space$

  6. #6

    Thread Starter
    Hyperactive Member Jenova's Avatar
    Join Date
    Feb 2006
    Location
    Googleplex
    Posts
    413

    Re: Building Classes

    Great! Thanks alot, i was just worried about the class being useless or full of errors.

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