Results 1 to 6 of 6

Thread: Convert C to Class

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2003
    Posts
    76

    Convert C to Class

    I have a C++ DLL with conventional C procedures and functions to be called by VB program and the routines are working properly. Now I need to provide Progress Bar at the status window of VB main program and display AVI (both to be done by C program for performance reason) during the procedure execution.

    I wonder if there is any alternatives other than convert my procedures and functions to class structure. If none, what is the easiest steps?

    Thank you.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Why would you want to convert them to classes?
    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
    Because I want to display progress bar and show AVI during execution of the C procedure.

    Thank you.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    What's that got to do with classes?
    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
    I have got a ProgressBar class and AVI class that can perform my desired functions and I wish to make use of these two classes but I don't know how.

    Thank you.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Declare the normal procedures as
    extern "C"
    and let them use the classes.
    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.

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