com - #Import directive fails with error "Request?" is not a valid C++ identifier -


i trying import type library in vc++ console application using following command.

#import "c:\typelib.tlb" 

when build project following error:

error c1196 'request?': identifier found in type library 'c:\typelib.tlb' not valid c++ identifier

i haven't developed type library on inspection have found of functions in type library using null able parameters , assume that's causing problem e.g.

sub schedulemanywithpossiblerequest(byval requester string, byval request? boolean, byval skipunschedulableactivities? boolean) 

is there way can import type library?

i managed import using following directive import.

 #import "c:\typelib.tlb" rename("request?", "request") 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -