I am not sure because I do not try these situation. I have validate in the paper these situation, but I can write that I have find in my investigation:
Your dll.s are not activex components, so you can't register them. They are libraries (dynamic link libraries: they can be loaded/unloaded dinamically on runtime) wich contain some functions. To use the libraries (from C or C++). you have to call the Win32 API function LoadLibrary. They also can be used from Visual Basic. IIS can use only ActiveX components which are a special kind of COM components especially designed to be used from scripting languages like VBA or VBScript, JScript. You can easily recognise an ActiveX component because they use only Variant as datatype for passing and returning parameters (scripting languages don't support data types declarations). So, I don't know if your Apache implementation for Win32 can load dll's or ActiveX components. Furthermore, you can't use your dll's from IIS because they aren't ActiveX components! You have to ask someone to write for you an ActiveX wrapper for the libraries in order to use them from IIS. To register an COM/ActiveX component use regsvr32.exe I did some exploration, you're in deep trouble: the process of mixing 16 bit code with 32bit code is called "thunking" (search MSDN for "thunk"). Is very complicated, you need a 16 bit C/C++ compiler and a 32 bit C/C++ compiler. I've explored the idea to use an 16 bit automation component directly, but it seems also it can't be called like 32 bit components. It would be much easier to recompile/port your dll's to 32 bit code. From here is very simple to build an automation object using an modern tool. COM was working also on 16 bit (for Win3.1). I tried to instantiate an 16 bit automation object from an 32 bit client and it doesn't work. Maybe there is a solution, but if it is complicated is like doing the so called "thunking". You must build an ActiveX wrapper around your dll's in order to use them from scripting languages (on Win platform). All COM components must be registered (including ActiveX components) - the dll which was the problem for Merlot intallation was an COM component. Remember, ActiveX is a technology built using COM technology, so every ActiveX component IS an COM component, but NOT every COM component is an ActiveX component! After these, I have try to compile source code dll (C language) in exe object and I link these external pgm from my php script. I try these solution and it work fine. Ciao a tutti. Franco. Brennan Mann wrote: > I get an error when I try to register the DLL using regsrvr32.exe . DLL > was loaded, but the DllRegisterSever entry point was not found. File not > loaded. Any Suggestions? > Thanks, > Brennan > > "Brennan Mann" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I got my DLL all set. I am just having problems with windows. I can't get > > windows to register it. Any suggestions? > > > > Thanks, > > Brennan > > "Franco Pozzer" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > I try to help to you but I do not sure if it is a correct because I have > > > study the problems but I do not have try it. > > > > > > For my porpose instead to use COM object I like to use C or C++ > external > > > pgm. > > > > > > First of all, the DLL must be registred in Windows system. Mine was > > > because it was provided by a "setup" software... > > > or with regedit32.exe pgm. > > > > > > So, you have to get the name under witch the DLL is registed. > > > > > > This name is not necessary the same than DLL's. To get this name, I > > used > > > to search into > > > de registry database. I was looking for the DLL name and I managed to > > get > > > the registred name. > > > > > > Once you get this registred name, in php you can write: > > > > > > $obj = new COM("registred name"); > > > > > > I send a .zip with bmp to expalin the correct registred > Dll/COM/ActiveX > > > object. > > > > > > Another question DLL or COM or Object must be 32bit! > > > > > > I hope this help you.................... > > > > > > Ciao Franco. > > > > > > Brennan Mann wrote: > > > > > > > Hello Everybody, > > > > > > > > Can PHP call a DLL file? If so, do you know where I might be able > to > > > > find an example? > > > > > > > > Thanks Again, > > > > Brennan > > > > > > > > -- > > > > PHP Windows Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php