Re: Macro calling kernel function



"David" <know_devig@xxxxxxxxxxx> writes:
> My problem is, I have C file and .h file in my driver
> If I define this macro in C file it compiles and links, no problem
> But I define same macro in .h file it throws compile error ..
> undeclared identifier for function name
> I tired including header file for the function but :(
> whats the reason behind that.

We can't guess what the problem might be with the information you've
given us. Show us some code and the *exact* error message you're
getting, and we might be able to help.

Whatever problem you're having with the macro definition, you would
have the same problem if you removed the macro definition and manually
expanded any references to the macro. There is no relationship
between macros and kernel functions. It's almost like asking whether
you can write a function call using emacs.

(And there are no "kernel functions" in standard C.)

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.



Relevant Pages

  • Re: Remove extra space within text
    ... By 'macro' I assume you mean a UDF but not quite sure what you mean by "slow ... executable and, very often, businesses have scripting completely turned ... since VBA macros or UDFs are not ... Even VBA compiles albeit in not the same way as VB. ...
    (microsoft.public.excel.programming)
  • Re: Office 2004 SP1 - What did it Fix??
    ... Visual Basic for Applications compiles at run-time, ... infuriating "Compile Error in Hidden Module". ... AutoExec is a reserved macro name that causes Word to run the macro so named ... The Dratted PDFMaker will be gone forever and a day ...
    (microsoft.public.mac.office.word)
  • Re: Office 2004 SP1 - What did it Fix??
    ... Visual Basic for Applications compiles at run-time, ... infuriating "Compile Error in Hidden Module". ... AutoExec is a reserved macro name that causes Word to run the macro so named ... The Dratted PDFMaker will be gone forever and a day ...
    (microsoft.public.mac.office.entourage)
  • Re: Office 2004 SP1 - What did it Fix??
    ... Visual Basic for Applications compiles at run-time, ... infuriating "Compile Error in Hidden Module". ... AutoExec is a reserved macro name that causes Word to run the macro so named ... The Dratted PDFMaker will be gone forever and a day ...
    (microsoft.public.mac.office.excel)
  • Re: Office 2004 SP1 - What did it Fix??
    ... Visual Basic for Applications compiles at run-time, ... infuriating "Compile Error in Hidden Module". ... AutoExec is a reserved macro name that causes Word to run the macro so named ... The Dratted PDFMaker will be gone forever and a day ...
    (microsoft.public.mac.office)