[BCB] ocidl. h e2337 only one of a set of overloaded functions can be "C" error Solution

Source: Internet
Author: User

 
[C ++ Error] ocidl. H (8163): e2337 only one of a set of overloaded functions can be "C"

E2337 solution:Go to the installation directory of CB and find c: \ Program Files \ Borland \ cbuilder5 \ include \ ocidl. H,Find the lines that reported the error and comment out the lines.

Cause analysis:ProjectAllThe header file contains the following lines of information:Ocidl. h already providesWhen compiling this project, if you cannot find any other source of this information, you can comment it out.

Note:This position should be restored when a new project is compiled.

For example:In ocidl. H, comment out the following lines and run them.

 
// Unsigned long _ rpc_user hdc_usersize (unsigned long _ rpc_far *, unsigned long, HDC _ rpc_far *); // unsigned char _ rpc_far * _ rpc_user hdc_usermarshal (unsigned long _ rpc_far *, unsigned char _ rpc_far *, HDC _ rpc_far *); // unsigned char _ rpc_far * _ rpc_user hdc_userunmarshal (unsigned long _ rpc_far *, unsigned char _ rpc_far *, HDC _ rpc_far *); // void _ rpc_user hdc_userfree (unsigned long _ rpc_far *, HDC _ rpc_far *);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.