🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: EnumResourceNames()

#11789
From: Robert G. Hoover
Date: Wed, 14 Jan 2004 17:21
39 lines
1902 bytes
Ed,

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... ;)

Thanks again!

Rob



"Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> wrote in message
news:40057926$1@newsgroups.borland.com...
Try defining STRICT

.  Ed

> Robert G. Hoover wrote in message
> news:400577f5@newsgroups.borland.com...
>
> I'm trying to use EnumResourceNames and I'm getting the following compiler
> error in C++ Builder 6....
>
> E2034 Cannor convert 'int (__stdcall *)(void *, constant char *, char *,
> long)' to 'int (__stdcall *)()'
> E2342 Type mismatch in parameter 'lpEnumFunc'
> (wanted 'int (__stdcall *)()', got 'int (__stdcall *)(void *, const char
*,
> char *, long)')
Technical Details
Message-ID: <40057abb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <400577f5@newsgroups.borland.com> <40057926$1@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 09:26:11 PST
From: "Robert G. Hoover" <not.a.real.address@anywhere.sorry>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <400577f5@newsgroups.borland.com> <40057926$1@newsgroups.borland.com>
Subject: Re: EnumResourceNames()
Date: Wed, 14 Jan 2004 12:21:32 -0500
Lines: 42
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.1165
NNTP-Posting-Host: 208.59.156.227
Message-ID: <40057abb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074100923 208.59.156.227 (14 Jan 2004 09:22:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail