CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: VB Resources

Hybrid View

  1. #1
    Join Date
    Jan 2001
    Posts
    73

    VB Resources

    Hello,
    Okay I'll be honest. I am C++ guy. I don't know any VB yet, and I am just starting out. There are too many resources on the web for a VB programmer I know. But as I went to look for online books/tutorials I found that they treat the reader as a beginner to Windows programming as well. I was just wondering if there is some online place where I can quickly learn VB without having to re-learn windows programming etc.

    Thanks a lot,
    Nas.





    What matters in a fight, is not the size of the dog in the fight. It is the size of the fight...in the dog!

  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: VB Resources

    I don't know of any web sites but Programming Microsoft Visual Basic 6.0 (Mps)
    by Francesco Balena - Microsoft Press is the place to start, covers everthing from an experienced developer and programmers pov



  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: VB Resources

    A good bet is "Carl & Gary's VB Homepage" at
    http://www.cgvb.com
    And of course some information is best heard from the horse's mouth:
    http://msdn.microsoft.com

    HTH,
    D.
    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    Dublin, Ireland


    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  4. #4
    Join Date
    Sep 2020
    Posts
    3

    Re: VB Resources

    Quote Originally Posted by Clearcode View Post
    A good bet is "Carl & Gary's VB Homepage" at
    http://www.cgvb.com
    And of course some information is best heard from the horse's mouth:
    http://msdn.microsoft.com

    HTH,
    D.
    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    Dublin, Ireland
    I'm having trouble getting your code from http://vbcity.com/forums/t/1393.aspx working. I've tried messaging you on that site (it errored out), this site (no such feature can be found) and your site (no longer seems to be yours) to no avail.

    I tried this, but every SPI_GET param returns zero

    Public Function GetSystemInfo(Optional uAction As enSystemParametersInfo = SPI_GETFONTSMOOTHING) As Long
    Dim lpvParam As Long
    SystemParametersInfo uAction, 0, lpvParam, 0
    GetSystemInfo = lpvParam
    End Function

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: VB Resources

    [QUOTE=NeoTechni;2237777...
    I tried this, but every SPI_GET param returns zero

    Public Function GetSystemInfo(Optional uAction As enSystemParametersInfo = SPI_GETFONTSMOOTHING) As Long
    Dim lpvParam As Long
    SystemParametersInfo uAction, 0, lpvParam, 0
    GetSystemInfo = lpvParam
    End Function[/QUOTE]
    From MSDN ( https://docs.microsoft.com/en-us/win...arametersinfoa ):
    Return value
    Type: BOOL

    If the function succeeds, the return value is a nonzero value.

    If the function fails, the return value is zero. To get extended error information, call GetLastError.
    I do not see any call of GetLastError nor the check of the SystemParametersInfo return value.
    Victor Nijegorodov

  6. #6
    Join Date
    Sep 2020
    Posts
    3

    Re: VB Resources

    GetSystemInfo = lpvParam <-- this line is checking the return value as lpvParam is SUPPOSED to be BYREF

  7. #7
    Join Date
    Jul 2008
    Location
    WV
    Posts
    5,362

    Re: VB Resources

    You do know that the post you are responding to is over 19 years old? I would think the chance of a response is low at best.
    Always use [code][/code] tags when posting code.

  8. #8
    Join Date
    Sep 2020
    Posts
    3

    Re: VB Resources

    Quote Originally Posted by DataMiser View Post
    You do know that the post you are responding to is over 19 years old? I would think the chance of a response is low at best.
    Given it was my sole method to do it, I had to do it. Nothing else was working.

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