June 12, 2004 Re: How to include Win32 function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | "Sean Kelly" <sean@f4.ca> wrote in message news:cact6g$2440$1@digitaldaemon.com... > In article <cacsa7$22uv$1@digitaldaemon.com>, Anatoliy Shevelev says... > > > >I'm will but can't solve the problem with, for example > > > >export void InitCommonControls(void); > > change it to: > > export void InitCommonControls(); > > A void parameter is optional in C++ but forbidden in D. You forgot "Is necessary in C, " :) |
June 12, 2004 Re: How to include Win32 function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew | In article <cae6m3$ug5$1@digitaldaemon.com>, Matthew says... > >You forgot "Is necessary in C, " That requirement is still in place? I was hoping it had been removed in C99 :) Sean |
June 12, 2004 Re: How to include Win32 function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | change but next error export void InitCommonControls(void); to export void InitCommonControls(); but next error C:\dmd\bin\..\lib\phobos.lib(dmain2) Error 42: Symbol Undefined _InitCommonControls@0 --- errorlevel 1 Anatoliy |
June 12, 2004 Re: How to include Win32 function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sean Kelly | Interesting point. I have to say I can't imagine that to be the case - too much back compat - but you never know. If I was sufficiently motivated I'd boot up Acrobat and have a scour, but I'm not. Maybe I'll just try it with Comeau and --strict. (But Walter might bite me for not trusting DMC++!! <G>) "Sean Kelly" <sean@f4.ca> wrote in message news:caf79o$2je6$1@digitaldaemon.com... > In article <cae6m3$ug5$1@digitaldaemon.com>, Matthew says... > > > >You forgot "Is necessary in C, " > > That requirement is still in place? I was hoping it had been removed in C99 :) > > Sean > > |
June 22, 2004 Re: How to include Win32 function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anatoliy Shevelev | Anatoliy Shevelev wrote: > change > but next error > export void InitCommonControls(void); > to > export void InitCommonControls(); > but next error > > C:\dmd\bin\..\lib\phobos.lib(dmain2) > Error 42: Symbol Undefined _InitCommonControls@0 > --- errorlevel 1 > > Anatoliy You need to add a lib to the compile command on the command line. I think you need to use "comctl32.lib", but I'm not certain. -- Justin (a/k/a jcc7) http://jcc_7.tripod.com/d/ |
Copyright © 1999-2021 by the D Language Foundation