Results 1 to 3 of 3

Thread: Help me!!

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Thailand
    Posts
    0


    Help me!!

    I have a little problem with VC++ IDE.
    After cpmplete writting my class, I found that even VC++ know my class from header file which I add in the project but it can't find the implementation of my class.
    I try to make it know by set project environment and compile my class to .lib file, then I add that lib to my project.
    But the linker does't seem to know where is definition of my class. I also set the linker to know my lib by add it in the part of input library.

    When I try to compile my client code which use my class it can compile completely but the linker warn me that it can't link my object code together.

    Actually, I can eliminate this problem by add everything in one file, then compile it but I don't like this solution it also destroy concept "encapsulation" of OOP.

    Who know how to use our own class with VC++?

  2. #2
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: Help me!!

    It would be better if you give out ur source code.Cause to solve programming problem, it has to make thing look more physical.

    [Edited by admin on 11-17-2002 at 10:58 AM GMT]

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    Thailand
    Posts
    0


    Re: Help me!!

    Thank for ur suggestion, I choose to write implementation of my class within header file and it works wel.

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •