Click here to Skip to main content
15,860,861 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
[id(203), helpstring("method LoadPolyDataXml")] HRESULT LoadPolyDataXml([out,retval]CComBSTR bstrPolyData);

I get an error as:
Error 1 error MIDL2025 : syntax error : expecting a type specification near "CComBSTR"
HOw to solvE?
Posted

1 solution

CComBSTR is an unknown class for MIDL, you must use the "generic" type: BSTR
[id(203), helpstring("method LoadPolyDataXml")]
HRESULT LoadPolyDataXml([out,retval]BSTR bstrPolyData);

CComBSTR can be used in the program using this method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900