When I want to use the RAPI functions, I include the rapi.h to my dll, but
it show the error message below:

Compiling...
RapiDllC.cpp
d:\temp\rapidllc\rapi.h(95) : error C2065: 'IRAPIStream' : undeclared
identifier
d:\temp\rapidllc\rapi.h(95) : error C2065: 'IStream' : undeclared identifier
d:\temp\rapidllc\rapi.h(96) : error C2448: '<Unknown>' : function-style
initializer appears to be a function definition
d:\temp\rapidllc\rapi.h(108) : error C2061: syntax error : identifier
'IRAPIStream'
d:\temp\rapidllc\rapi.h(356) : error C2061: syntax error : identifier
'IRAPIStream'
Error executing cl.exe.

Why? Cann't I do that?

Re: Use Rapi Function by Amit

Amit
Mon Sep 22 12:12:05 CDT 2003

Try adding #include<objidl.h> before you include rapi.h

Hope it helps...
Regards
Amit
"cfyam" <cfyam@mail.apol.com.tw> wrote in message
news:OmbvDULgDHA.3616@TK2MSFTNGP11.phx.gbl...
> When I want to use the RAPI functions, I include the rapi.h to my dll,
but
> it show the error message below:
>
> Compiling...
> RapiDllC.cpp
> d:\temp\rapidllc\rapi.h(95) : error C2065: 'IRAPIStream' : undeclared
> identifier
> d:\temp\rapidllc\rapi.h(95) : error C2065: 'IStream' : undeclared
identifier
> d:\temp\rapidllc\rapi.h(96) : error C2448: '<Unknown>' : function-style
> initializer appears to be a function definition
> d:\temp\rapidllc\rapi.h(108) : error C2061: syntax error : identifier
> 'IRAPIStream'
> d:\temp\rapidllc\rapi.h(356) : error C2061: syntax error : identifier
> 'IRAPIStream'
> Error executing cl.exe.
>
> Why? Cann't I do that?
>
>