🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11791

Re: EnumResourceNames()

#11791
From: Ed Mulroy [TeamB]
Date: Wed, 14 Jan 2004 18:07
42 lines
2445 bytes
It was quick by chance.  You happened to post your question at about the
time I looked at the newsgroup.

It's good to hear when something I suggested helped - I more often hear
about it if it did not help! <g>

In 1992 when Windows 3.1 came out Microsoft added to their compiler what
Borland had been doing for a long while, properly supporting function
prototypes.  Before that Windows header files did not specify argument lists
in function prototypes.

To support programs created for Windows versions from 1992 on up and above
they introduced the macro STRICT to alter the expansion of the Windows
header files so that argument types were shown in function prototypes.

The error you received was that the function prototype's argument list was
() which in C++ means there are no calling arguments.  Your code gave
arguments in the function call and the compiler complained.

> E2034 Cannor convert
> 'int (__stdcall *)(void *, constant char *, char *,  long)'
>          to
>  'int (__stdcall *)()'

.  Ed

> Robert G. Hoover wrote in message
> news:40057abb@newsgroups.borland.com...
>
> Wow, now that's quick! And I really appreciate the instant
> feedback.
>
> I placed the #define above my first line in my code...
>
> #define STRICT
> #include <vcl.h>
> ...
>
> It fixed the compiler error. Thanks!
>
> Can you please tell me a little about what this definition
> accomplishes? No rush... ;)
Technical Details
Message-ID: <40058567$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <400577f5@newsgroups.borland.com> <40057926$1@newsgroups.borland.com> <40057abb@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,b2e65093aac64f42
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-14 10:10:40 PST
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <400577f5@newsgroups.borland.com> <40057926$1@newsgroups.borland.com> <40057abb@newsgroups.borland.com>
Subject: Re: EnumResourceNames()
Date: Wed, 14 Jan 2004 13:07:29 -0500
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <40058567$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074103655 24.74.175.102 (14 Jan 2004 10:07:35 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail