Results 1 to 2 of 2

Thread: Can Someone Help me!!!???

  1. #1

    Thread Starter
    Addicted Member kidlaley's Avatar
    Join Date
    Jun 2002
    Location
    California
    Posts
    159

    Unhappy Can Someone Help me!!!???

    hi people.. i hope that some1 can helo me out..

    i have been trying to used the "PathFileExists" function but i have no luck..

    you see.. this is my code..
    I HAVE THIS HEADERS
    #include <iostream.h>
    #include<windows.h>
    #include <stdlib.h>
    #include "Shlwapi.h"

    and this is my function:
    void EnStock()
    {
    int Result;
    char String [] = "My Path To The TXT File";

    Result = PathFileExists(String);
    {
    if (Result = true)
    cout<<"Does exist";
    if (Result = false)
    cout<<"Does not exist";
    }

    }

    Now... when i compile this function.. It does not gave me any errors... BUT WHEN I try to build it.. it gaves me TWO Errors..

    This are the ERRORS:
    Linking...
    Uvas.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
    Debug/Uvas.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    Uvas.exe - 2 error(s), 0 warning(s)

    Can some1 help me out!!! i'm stuck in this and i need to finish this project before the end of this month!!!

    Thanks
    There's only Three kinds of people in this world.....
    Those that know how to count, and those that do not......
    ]

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    You have to link shlwapi.lib into your project.

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