Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 8th, 2004, 12:31 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to create a COM using VC++

Hi..
i am a newbie in using COM tech.

I need to create a COM which contain a class as follow

class transcodeEngine
{
//assume the original code stream is in CPRL format, and no precint is used

public:
transcodeEngine(char* inputfilename);
~transcodeEngine();
void transcodeEngine::transcoding(unsigned char * output,

int loc_center_x, int loc_center_y,
int size_x, int size_y,
int & count, int reduce_resolutions=0,
int components=3, int reduce_layers=0);
private:
unsigned int num_tiles;
unsigned int num_components;
unsigned int num_layers;
unsigned int num_resolutions;
unsigned int num_tps_per_tile;
private: //help functions

void writeInt(unsigned char * s, unsigned int i, int count);
void parseTLM(unsigned char * s, int length);
void init();
};


i have use a ATL COM Appwizard to create a com. add a new atl object already.

i keep getting this error.

i need to pass in a parameter to the constructor of the class i created..seems like i cannot instaniate my object.

c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1827) : error C2259: 'CComObject<class CTranscodeEngine>' : cannot instantiate abstract class due to following members:
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(1823) : while compiling class-template member function 'long __stdcall ATL::CComCreator<class ATL::CComObject<class CTranscodeEngine> >::CreateInstance(void *,const struct _G UID &,void ** )'

really at a loss.. pls help.. let me know if u need any other info.

Thks..

regards
iceman
Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create generic XSL Template to create table Venkatachalapathy XSLT 5 March 11th, 2008 07:49 AM
VC++ 6 dannytran Visual C++ 0 January 4th, 2006 07:49 AM
Help us in VC++ MMazhar Visual C++ 0 December 10th, 2005 03:49 PM
convert VC++ 5.0 project to VC++ 6.0 MIDL ERR mdahd90943 Visual C++ 0 May 26th, 2005 08:57 AM
Ping in VC++6 Charley Visual C++ 0 May 13th, 2004 09:28 AM



All times are GMT -4. The time now is 09:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.