Results 1 to 2 of 2

Thread: Doubts in API call from COM

  1. #1
    Ebron
    Guest

    Question Doubts in API call from COM




    I want to refer an .ini file through an API. The API is called from the COM object. When the COM calls the API, the API should refer this ini file.
    In windows 2000 server environment, when i access this API through the dll, the API refers the ini file only if it available in winnt/system32 directory. It is not referring the ini file eventhough it is present in the directory where the APIs are.
    But i need to tell the COM to access the ini file from the directory where the APIs are and not the ini file from the winnt/system32 directory. Please give solution.

    Thanks,
    Ebron

  2. #2
    Lively Member Cenobitez's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, England
    Posts
    101
    You would have to use a Hard Coded Path like C:/blah/blah.ini, or maybe something like app.path/blah.ini ?

    The reason its going to the WINNT is because thats "probably" where the object is, i could be wrong tho....


    ______
    Steve

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