FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour C++ ?? xHarbour :(
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
C++ ?? xHarbour :(
Posted: Sun Feb 14, 2010 03:25 AM

Hi,

How i do to create a object activeX or ole in C++ alone.

i try

init main(){
obj = CreateObject("progID");
return 0;
}

more no compile show me that dont have function createObject, i tryed too ToleAuto more too no work.

Someone can help ?

thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: C++ ?? xHarbour :(
Posted: Sun Feb 14, 2010 07:02 PM
Lailton,

You have to use the function CoCreateInstance():

http://msdn.microsoft.com/en-us/library/ms686615(VS.85).aspx
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: C++ ?? xHarbour :(
Posted: Mon Feb 15, 2010 02:56 AM

Thanks Antonio,

U can show me a sample using this.

i will try alone, but if u can show me a sample.

thanks

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: C++ ?? xHarbour :(
Posted: Mon Feb 15, 2010 11:39 AM

Lailton,

If you search in google for CoCreateInstance and CLSCTX_INPROC_SERVER you may find many examples.

We don't have a simple example to provide, sorry.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 603
Joined: Sun May 04, 2008 08:44 PM
Re: C++ ?? xHarbour :(
Posted: Mon Feb 15, 2010 03:29 PM

Thanks.

Im looking about this.
more think that this not work in bcc55 fine. because all sample dont compile or dont have .h file.
i will try download microsoft visual C++ to make test too.

thanks.

Continue the discussion