🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by Terry Sat, 19 Apr 2003 22:55
visual c to bcb
#16895
Author: Terry
Date: Sat, 19 Apr 2003 22:55
5 lines
1040 bytes
Hos do i use this in bcb?

PtrArray &arrValues

i get [C++ Error] Unit1.h(30): E2303 Type name expected
Re: visual c to bcb
#16897
Author: Terry
Date: Sat, 19 Apr 2003 23:18
1 lines
1034 bytes
Actually its (CPtrArray &arrValues)
Re: visual c to bcb
#16908
Author: user
Date: Sun, 20 Apr 2003 12:57
14 lines
1499 bytes
Terry wrote:
> Hos do i use this in bcb?
> 
> PtrArray &arrValues
> 
> i get [C++ Error] Unit1.h(30): E2303 Type name expected
> 
> 
The compiler is telling you that it doesn't know of any type named
PtrArray [CPtrArray]. That's because CPtrArray is an MFC class, not 
readily available in BCB. I think it's possible to patch MFC to be 
compilable by BCB, but I've never tried it. Alternatives would be to 
write your own compatible CPtrArray class or modify the code to use a 
different container, such as an STL vector.
Re: visual c to bcb
#16833
Author: Alex Bakaev [TeamB]
Date: Mon, 21 Apr 2003 19:04
10 lines
1450 bytes
user@domain.invalid wrote:
  readily available in BCB. I think it's possible to patch MFC to be
> compilable by BCB, but I've never tried it. Alternatives would be to 
> write your own compatible CPtrArray class or modify the code to use a 
> different container, such as an STL vector.
> 


BCB-compatible version of MFC ships with it.
.a
Re: visual c to bcb
#16839
Author: user
Date: Mon, 21 Apr 2003 23:05
17 lines
1696 bytes
Alex Bakaev [TeamB] wrote:
> user@domain.invalid wrote:
>  readily available in BCB. I think it's possible to patch MFC to be
> 
>> compilable by BCB, but I've never tried it. Alternatives would be to 
>> write your own compatible CPtrArray class or modify the code to use a 
>> different container, such as an STL vector.
>>
> 
> 
> BCB-compatible version of MFC ships with it.
> .a
> 

So it is. (I was thinking of Borland C++ 5.) I guess the answer is to 
#include <afx.h> to bring in the definition of CPtrArray, make sure MFC 
Compatability is enabled in the project options and maybe some other things.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads