Results 1 to 5 of 5

Thread: CProgressCtrl

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    76

    CProgressCtrl

    I have developed a Microsoft C 6.0 Win 32 DLL without class definition. The DLL is to be called by VB program under Win 98. The DLL has shared segment with system hook implementation.

    Can I call CProgressCtrl class in my DLL? If yes, what steps shall I take? If no, is there any alternative for displaying progress?

    Thanks.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You can't use a real C++ class from VB. Either you write a function-based interface to the class or you write an ActiveX control.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    76
    This is exactly my target approach.

    The VB program calls a function implemented in the C DLL which takes a long execution time. My professor ask me to display progress during execution but my function is a pure C without class and my program is a Win 32 DLL.

    Is there any solution?

    Thanks a lot

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Sure. Use pure WinAPI for the progress bar. Learn about common controls, the progress control is one of them.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    76
    Thanks for your advice.

    Wonder if there is any sample program to learn from?

    Thank you.

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