CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic 6.0 Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual Basic 6.0 Programming Ask questions about VB 6.0 (or earlier versions) or help others by answering their question.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 2nd, 2001, 11:51 AM
    Abdul Kareem Abdul Kareem is offline
    Member
     
    Join Date: Sep 1999
    Location: TVM, Kerala, India
    Posts: 210
    Abdul Kareem is an unknown quantity at this point (<10)
    HOw can I call GetCurrentDirectory() from VB?

    Hi gurus,
    How can I call GetCurrentDirectory()from VB.
    Thanks,
    Kareem.

    ~Kareem~
    Dont forgot to rate it !!!
    http://www.abkareem.com
    ------------------------------------
    Reply With Quote
      #2    
    Old November 2nd, 2001, 11:56 AM
    DSJ DSJ is offline
    Elite Member
     
    Join Date: Jun 2001
    Location: MO, USA
    Posts: 2,868
    DSJ is a jewel in the rough (200+)DSJ is a jewel in the rough (200+)DSJ is a jewel in the rough (200+)
    Re: HOw can I call GetCurrentDirectory() from VB?


    private Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (byval nBufferLength as Long, byval lpBuffer as string) as Long
    private Sub Form_Load()
    'KPD-Team 2000
    'URL: http://www.allapi.net/
    'E-Mail: KPDTeam@allapi.net
    Dim sSave as string
    'create a buffer
    sSave = string(255, 0)
    'retrieve the current directory
    GetCurrentDirectory 255, sSave
    MsgBox sSave
    End Sub




    Reply With Quote
      #3    
    Old November 2nd, 2001, 11:59 AM
    Abdul Kareem Abdul Kareem is offline
    Member
     
    Join Date: Sep 1999
    Location: TVM, Kerala, India
    Posts: 210
    Abdul Kareem is an unknown quantity at this point (<10)
    Re: HOw can I call GetCurrentDirectory() from VB?

    Thanks. It is great!!

    ~Kareem~
    Dont forgot to rate it !!!
    http://www.abkareem.com
    ------------------------------------
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic 6.0 Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:27 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009