Skip to Content
0
Former Member
Oct 19, 2004 at 11:52 AM

Error in generating COM DLL via DCOM Object Builder

60 Views

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