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
Post a Comment