on ‎2004 Oct 19 12:52 PM
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.