Results 1 to 3 of 3

Thread: Use Abstract Class... Help!!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Posts
    130
    Goodday everybody...

    I have a problem here which I hope you all can help me...

    I'm writing an EXE program in VC++ and using a DLL created in VB...
    Now I already import the DLL into my program...
    The problem is I can't declare an object for the Class created in the DLL as the compiler gives me an error saying the class I'm using is an Abstract Class, that's mean I can't declare an object for that class directly, right?

    What I have to do is make a derived class for that base class. But when I try to declare an object for that derived class, I still have this same problem.

    So, what should I do to solve this problem?

    Your help will be most appreciated... and It's quite urgent too...

    Thanks...

    <Correct me if I'm wrong>

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    VB classes are not direct-compatible with C++ classes.

    Try the #import directive - that should do it, you only need the DLL for that, and it must be available at compile-time: the compiler will make all the necessary files for you
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Posts
    130
    I've already done the #import directive...
    But I don't think that's the problem...

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