A Simple Issue of SAP DCOM Connector

Question: I tried to generate a BAPI proxy in the Object Builder of SAP DCOM Connector 4.6D. But I met the following kinds of errors no matter which BAPI object I chose to generate. Has anybody met such errors before? Is it a problem related to unicode? I'm using Visual Studio 6.0 with Visual C++. Thanks!

--------------------------------------------------------

CALL "E:\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 "ABC.h" /iid "ABC_i.c" "ABC.idl"
Microsoft (R) MIDL Compiler Version 5.01.0164
Copyright (c) Microsoft Corp 1991-1997. All rights reserved.
Processing .\ABC.idl
ABC.idl
Processing E:\MICROS~1\VC98\INCLUDE\oaidl.idl
oaidl.idl
Processing E:\MICROS~1\VC98\INCLUDE\objidl.idl
objidl.idl
Processing E:\MICROS~1\VC98\INCLUDE\unknwn.idl
unknwn.idl
Processing E:\MICROS~1\VC98\INCLUDE\wtypes.idl
wtypes.idl
Processing E:\MICROS~1\VC98\INCLUDE\ocidl.idl
ocidl.idl
Processing E:\MICROS~1\VC98\INCLUDE\oleidl.idl
oleidl.idl
Processing E:\MICROS~1\VC98\INCLUDE\servprov.idl
servprov.idl
Processing E:\MICROS~1\VC98\INCLUDE\urlmon.idl
urlmon.idl
Processing E:\MICROS~1\VC98\INCLUDE\msxml.idl
msxml.idl
Processing C:\Program Files\SAPpc\SAPGUI\rfcsdk\include\sapconn.idl
sapconn.idl
rc.exe /l 0x407 /fo "ABC.res" /d "NDEBUG" "ABC.rc"
cl.exe /nologo /GX /MD /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_ATL_DLL" /FD /c /Fp"ABC.pch" /Yc"ABCAfx.h" ABCAfx.cpp
ABCAfx.cpp
bapireturn.h(181) : error C2065: 'cU' : undeclared identifier
bapireturn.h(181) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(181) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(181) : error C2065: 'CCQ_CAST' : undeclared identifier
bapireturn.h(181) : error C2065: 'intR' : undeclared identifier
bapireturn.h(181) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(182) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(182) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(182) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(183) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(183) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(183) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(184) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(184) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(184) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(185) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(185) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(185) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(186) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(186) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(186) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(187) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(187) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(187) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(188) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(188) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(188) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(189) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(189) : error C2440: 'initializing' : cannot convert from 'RFCTYPE' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
bapireturn.h(189) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
error count exceeds 100; stopping compilation
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.

Answer:
Has anybody met the errors below? Thanks.
Copyright ?2007 - 2008 www.jt77.com