RE: what's not to like??
RE: what's not to like??
- Subject: RE: what's not to like??
- From: socko <email@hidden>
- Date: Mon, 22 Oct 2001 08:07:17 -0700 (PDT)
Brad and John,
sorry, that actually was a Windows call (i'm doing a cross-platform
thing). however, the corresponding Mac call doesn't work either, and
results in the same error messages:
syntax error, found 'FMX_NewHandleCall'
illegal function definition, found ')'
illegal external declaration, missing ';' after 'size'
illegal declaration, missing name, found ','
illegal external declaration, missing ';' after ','
illegal external declaration, missing ';' after ' FMX_SetHandleSizeCall'
here's the Mac code (with an additional line that effects errors 4 - 6
listed above):
#define FMCBACKDEF(t, n) typedef t (*n)
FMCBACKDEF(FHandle, FMX_NewHandleCall)(long size);
FMCBACKDEF(void, FMX_SetHandleSizeCall)(FHandle h, long size);
--- "Smith, Bradley" <email@hidden> wrote:
>
What's __stdcall? It's not in the ansi spec for C++ ( I just looked )?
>
It's used as a Microsoft WIN32 calling convention under Windows. Does
>
Obj-C
>
or Cocoa use it as well?
>
>
Brad
>
>
> -----Original Message-----
>
> From: socko [mailto:email@hidden]
>
> Sent: 22 October 2001 15:22
>
> To: email@hidden
>
> Subject: what's not to like??
>
>
>
>
>
> ProjectBuilder does not like the following code:
>
>
>
>
>
> #define FMCBACKDEF(t, n) typedef t (__stdcall *n)
>
>
>
> FMCBACKDEF(FHandle, FMX_NewHandleCall)(long size);
>
>
>
>
>
>
>
> does anyone know why?
>
> Make a great connection at Yahoo! Personals.
>
> http://personals.yahoo.com
>
> _______________________________________________
>
> cocoa-dev mailing list
>
> email@hidden
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
On Monday, October 22, 2001, at 07:22 AM, socko wrote:
>
ProjectBuilder does not like the following code:
>
>
#define FMCBACKDEF(t, n) typedef t (__stdcall *n)
>
>
FMCBACKDEF(FHandle, FMX_NewHandleCall)(long size);
>
does anyone know why?
Well let's see...
this would expand to:
typedef FHandle(__stdcall, *FMX_NewHandleCall)(long size);
Which doesn't look like legal C grammar to me. Is "FHandle" a function?
Also, I don't see any definition for "size", and it's not a C keyword.
What exactly was the error message?
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com