cancel
Showing results for 
Search instead for 
Did you mean: 

Error in generating COM DLL via DCOM Object Builder

Former Member
0 Kudos

Hi,

Iam creating a COM DLL for a BAPI and I always get the error when generating the DLL. I have Visual C++ 6.0 installed in the same PC. Pls help. Thanks.

C:\vb>CALL "C:\Program Files\Microsoft Visual Studio\VC98\bin\vcvars32.bat"

Setting environment for using Microsoft Visual C++ tools.

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0

Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

midl.exe /Oicf /h "Flights.h" /iid "Flights_i.c" "Flights.idl"

Microsoft (R) MIDL Compiler Version 5.01.0164

Copyright (c) Microsoft Corp 1991-1997. All rights reserved.

Processing .\Flights.idl

Flights.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\oaidl.idl

oaidl.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\objidl.idl

objidl.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\unknwn.idl

unknwn.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\wtypes.idl

wtypes.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\ocidl.idl

ocidl.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\oleidl.idl

oleidl.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\servprov.idl

servprov.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\urlmon.idl

urlmon.idl

Processing C:\PROGRA1\MICROS4\VC98\INCLUDE\msxml.idl

msxml.idl

Processing C:\Program Files\SAPpc\SAPGUI\rfcsdk\include\sapconn.idl

sapconn.idl

rc.exe /l 0x407 /fo "Flights.res" /d "NDEBUG" "Flights.rc"

cl.exe /nologo /GX /MD /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_ATL_DLL" /FD /c /Fp"Flights.pch" /Yc"FlightsAfx.h" FlightsAfx.cpp

FlightsAfx.cpp

bapiret2.h(116) : error C2059: syntax error : 'constant'

bapiret2.h(117) : error C2146: syntax error : missing ';' before identifier 'rfc_padd_4_1bperC'

bapiret2.h(117) : error C2059: syntax error : 'constant'

bapiret2.h(119) : error C2146: syntax error : missing ';' NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'

Stop.

Regards,

Kelvin

kelvin.delarosa@gmail.com

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

For those who might encounter a similar problem, I manage to solve the problem by installing the DCOM Connector from the same SAP GUI CD (ver 6.2). I had the impression to download the DCOM Connector from sap.com but they have the 4.6D version which causes a problem if you are using a higher version of SAP Gui. The rule of thumb is to install the RFC SDK and DCOM Connector from the the same SAP GUI CD.

Just note that DCOM Connector is reaching End-of-life.

Cheers,

Kelvin