cecito Capt

Registrado: 25 Nov 2003Mensajes: 164Ubicación: Arequipa - Perú
|
Publicado: Lun 15 Sep, 2008 6:36 pm Asunto: CoInitialize en WebBrowser |
|
|
Hola amigos, estoy realizando un webbrowser(ISAPI) con C++Builder, algo muy simple conectandome a access deseo registrar a los usuarios atravez de web, pero cuando lo trato de probar me dice que no ha inicializado COM
He investigado y todos sugieneren hacer un CoInitialize, pero por más que pruebo el no consigo que funcione.
Ahora si saco los componentes ADO todo funciona a la perfeción, a ver si alguien me echa una mano, en delphi sugieren hacer esto pero no se pasarlo a builder:
| Código: | (Save this as ComInit.pas)
unit ComInit;
interface
uses
ActiveX;
implementation
initialization
CoInitializeEx(nil,COINIT_MULTITHREADED);
finalization
CoUninitialize;
end.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Make sure this is the first unit listed in the uses statement of your .DPR file. For example:
uses
ComInit in 'ComInit.pas',
WebBroker,
ApacheApp,
dMain in 'dMain.pas' {dmMain: TcxWebHomeDataModule},
wMain in 'wMain.pas' {wpmMain: TcxWebPageModule} {*.html};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
A ver si me dan una mano  |
|