invoking progressbar in another cpp file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivamoorthy
    New Member
    • Mar 2008
    • 3

    #1

    invoking progressbar in another cpp file

    how to use a progressbar in a one cpp file but defined in another header file.
    the function in which i am using is a static member function. how to use the progressbar inside the function


    code:
    file name : flash.cpp
    void CFlasher::OnSta rtDownload (void *pDublicate)
    {
    bValueRet = DeviceIoControl (hHandle, \
    (DWORD) IOCTL_SCUSBDFU_ DETACH, NULL, \
    0, NULL, 0, &dwBytesReturne d, NULL);

    HERE I HAVE TO USE THE PROGRESSBAR

    }
    file name : form.h
    progressbar is defined in this header file

    please kindly give me the solution for this
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Just #include the header file that has the function prototype of the functions you want to call. Then make sure both .cpp files are compiled and linked.

    Comment

    • sivamoorthy
      New Member
      • Mar 2008
      • 3

      #3
      i already included the #include form.h in the .cpp file where i want to use the progressbar.bot h compiled and linked.

      Comment

      • weaknessforcats
        Recognized Expert Expert
        • Mar 2007
        • 9214

        #4
        What's in the form.h?

        Usually, you incude the header file at the beginning of the .cpp file and then call functions that are prototyped in that header file later on.

        Simply including the header file at a preciose location will not call any functions.

        Comment

        • sivamoorthy
          New Member
          • Mar 2008
          • 3

          #5
          thanz for ur kind reply. i understood the problem and retified it

          Comment

          Working...