Re: structure size limitation in VS C++ 6.0?
From: Sylvain Lafontaine ("Sylvain)
Date: 07/22/04
- Next message: Jochen Haber: "Re: MSDE, getting started"
- Previous message: Sylvain Lafontaine: "Re: MSDE, getting started"
- In reply to: Carolyn Sano: "structure size limitation in VS C++ 6.0?"
- Next in thread: Carolyn Sano: "Re: structure size limitation in VS C++ 6.0?"
- Reply: Carolyn Sano: "Re: structure size limitation in VS C++ 6.0?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Jul 2004 10:36:14 -0400
In my opinion, there should be no problem if you allocate it on the heap.
If you want to be sure, you can replace your user defined structure with a
pointer and allocate it separately.
What is exactly the problem that you are having?
S. L.
"Carolyn Sano" <Carolyn Sano@discussions.microsoft.com> wrote in message
news:0D4A6AAD-8F6A-4F97-9B9E-7AAA37DABA38@microsoft.com...
> I have a large structure that has the following members:
> typedef struct
> {
> int nNumber1;
> USERDEFINED_STRUCT nStruct; (user defined structure)
> int nNumber2;
> int nNumber3;
> char szField1[257];
> ...
> char szField255[257];
> } MY_STRUCT;
>
> I checked the size returned by sizeof() and it's 65568. Does anyone know
if a structure of this size can't be handled in VS C++ 6.0 (bigger than
2^16-1)? We suspect that the problem lies in our code, but we want to be
sure that Dev Studio can handle a structure of this size. Thanks.
>
> P.S. I'm running on Windows 2000.
- Next message: Jochen Haber: "Re: MSDE, getting started"
- Previous message: Sylvain Lafontaine: "Re: MSDE, getting started"
- In reply to: Carolyn Sano: "structure size limitation in VS C++ 6.0?"
- Next in thread: Carolyn Sano: "Re: structure size limitation in VS C++ 6.0?"
- Reply: Carolyn Sano: "Re: structure size limitation in VS C++ 6.0?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|