c++.windows.32-bits - OLE Server Application Problems
- tc4848 yahoo.com.sg (TC) Jul 26 2001
- "Walter" <walter digitalmars.com> Jul 26 2001
- Jan Knepper <jan smartsoft.cc> Jul 26 2001
Hi, having a few problems with generating OLE Server application. Tried to follow the instructions in the help file for Win32 programming. 1. MkTypLib fails on the ODL file generated with following error msgs K:\dm\BIN>mktyplib Microsoft (R) Type Library Generator Version 2.03.3027 Copyright (c) Microsoft Corp. 1993-1995. All rights reserved. I:\test_ole1\test_ole.odl (1) : fatal error M0001: Syntax error near line 1 column 1: expected: library 2. Regsvr32 fails with msg "LoadLibrary("test_ole.dll") failed. GetLastError returns 0x000003e6. It is just a simple app generated using AppExpress, and using ClassExpress to add a class based on CCmdTarget, with 1 function that does goes long CTestCmdTarget::mult(long x, long y) { // TODO return x*y; } How might I go about resolving this? Thanks TC
Jul 26 2001
All I can suggest at the moment is to check the .odl file and see if the syntax of it really is bad. -Walter "TC" <tc4848 yahoo.com.sg> wrote in message news:3b603eca.3686100 news.digitalmars.com...Hi, having a few problems with generating OLE Server application. Tried to follow the instructions in the help file for Win32 programming. 1. MkTypLib fails on the ODL file generated with following error msgs K:\dm\BIN>mktyplib Microsoft (R) Type Library Generator Version 2.03.3027 Copyright (c) Microsoft Corp. 1993-1995. All rights reserved. I:\test_ole1\test_ole.odl (1) : fatal error M0001: Syntax error near line 1 column 1: expected: library 2. Regsvr32 fails with msg "LoadLibrary("test_ole.dll") failed. GetLastError returns 0x000003e6. It is just a simple app generated using AppExpress, and using ClassExpress to add a class based on CCmdTarget, with 1 function that does goes long CTestCmdTarget::mult(long x, long y) { // TODO return x*y; } How might I go about resolving this? Thanks TC
Jul 26 2001
When I have time next week I will try to check into this one. I am kinda surprised as I know I have OLE (ActiveX) Server applications running which I build with DMC++... Jan TC wrote:Hi, having a few problems with generating OLE Server application. Tried to follow the instructions in the help file for Win32 programming. 1. MkTypLib fails on the ODL file generated with following error msgs K:\dm\BIN>mktyplib Microsoft (R) Type Library Generator Version 2.03.3027 Copyright (c) Microsoft Corp. 1993-1995. All rights reserved. I:\test_ole1\test_ole.odl (1) : fatal error M0001: Syntax error near line 1 column 1: expected: library 2. Regsvr32 fails with msg "LoadLibrary("test_ole.dll") failed. GetLastError returns 0x000003e6. It is just a simple app generated using AppExpress, and using ClassExpress to add a class based on CCmdTarget, with 1 function that does goes long CTestCmdTarget::mult(long x, long y) { // TODO return x*y; } How might I go about resolving this? Thanks TC
Jul 26 2001