Searching \ for '[OT] Microsoft 8086 C syntax question' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/language/index.htm?key=c
Search entire site for: 'Microsoft 8086 C syntax question'.

Exact match. Not showing close matches.
PICList Thread
'[OT] Microsoft 8086 C syntax question'
2000\03\03@160316 by Clyde Smith-Stubbs

flavicon
face
On Fri, Mar 03, 2000 at 03:42:05PM -0500, Andrew Kunz wrote:
> >(* hw_vector1) ();
>
> The compiler says
>
>      error C2100: illegal indirection
>      error C2064: term does not evaluate to a function

That's because your variable is not a function pointer. Try

(*(void FAR (*)())hw_vector1)();


Clyde

--
Clyde Smith-Stubbs               |            HI-TECH Software
Email: spam_OUTclydeTakeThisOuTspamhtsoft.com          |          Phone            Fax
WWW:   http://www.htsoft.com/    | USA: (408) 490 2885  (408) 490 2885
PGP:   finger .....clydeKILLspamspam@spam@htsoft.com   | AUS: +61 7 3355 8333 +61 7 3355 8334
---------------------------------------------------------------------------
HI-TECH C: compiling the real world.

2000\03\03@163139 by Andrew Kunz

flavicon
face
Now MSVC reports:

    error C2059: syntax error : '*'
    error C2066: cast to function type is illegal
    error C2059: syntax error : '('

I wish this was a PIC!










Clyde Smith-Stubbs <clydespamKILLspamHTSOFT.COM> on 03/03/2000 04:01:12 PM

Please respond to pic microcontroller discussion list <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>








To:      EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU

cc:      (bcc: Andrew Kunz/TDI_NOTES)



Subject: Re: [OT] Microsoft 8086 C syntax question








On Fri, Mar 03, 2000 at 03:42:05PM -0500, Andrew Kunz wrote:
> >(* hw_vector1) ();
>
> The compiler says
>
>      error C2100: illegal indirection
>      error C2064: term does not evaluate to a function

That's because your variable is not a function pointer. Try

(*(void FAR (*)())hw_vector1)();


Clyde

--
Clyde Smith-Stubbs               |            HI-TECH Software
Email: clydespamspam_OUThtsoft.com          |          Phone            Fax
WWW:   http://www.htsoft.com/    | USA: (408) 490 2885  (408) 490 2885
PGP:   finger @spam@clydeKILLspamspamhtsoft.com   | AUS: +61 7 3355 8333 +61 7 3355 8334
---------------------------------------------------------------------------
HI-TECH C: compiling the real world.

2000\03\03@163938 by Arthur Brown

flavicon
face
there is a intel list if you look for it

This is not from arther but he making coffee
John Thinker


{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...