Here is another way....
Open your vcx using the class browser
Click the button that says 'View Class Code'
Use this program as the main program in your project, then build as described by Peter below.
Note: when building a stand-alone class this way, there is a small bug in SP3...
At the beginnning of the created program, place some kind of statement for the program to compile. Example: .t.=.f.
This will allow the program to build properly.
>Done all that. Problem is that this class is the only object in the project. I cannot compile becaus no start program. I don't need a start program. All I intend to do is in another program instatiate the object and execute methodes.
>Do I really have to have a dummy start program? And whta is it supposed to do?
>
>Peter
>
>
>>- You create a new project
>>- Add your class
>>- Create a dummy PRG file to be the main program of the project (just put RETURN in it)
>>- Open your class
>>- Select "Class|Class Info"
>>- Check the "OLE Public" check box
>>- Click OK
>>- Close your class
>>- Build your project using either:
>> - COM server (EXE)
>> - Single-threaded COM server (DLL)
>> - Multi-threaded COM server (DLL)
>>
>>Note that you cannot have any interface related code in your class (WAIT WINDOW, MessageBox, DoEvents, etc.)
>>
>>HTH
>I have a class (custom) which i want to compile into a com component?
>>>How do I do that?
Thanks,
Stacy
Black Mountain Software, Inc.