Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DWORD * far *fp_mbr

0 views
Skip to first unread message

mElo

unread,
May 8, 2002, 3:56:23 PM5/8/02
to
hi, another question:
I want to pass the address of a variable that is a far pointer but my
compiler (BC++4) reports an error: "Suspicious pointer conversion".

Here's the declaration in the calling function:
DWORD far *fp_mbr;

I want to pass it to:
int zero_partition (PTABLE_ENTRY *pptable, DWORD * far *p_fp_mbr);

but when i write:
retval = zero_partition (pptable, &fp_mbr);

the compiler warnings me.

The function zero_partition () is expected to allocate memory with farmalloc
() and store this pointer in: *p_fp_mbr this way:

*p_fp_mbr = farmalloc (512);

What is wrong ?

Any help is welcome :-)
bye
mElo

Scott J. McCaughrin

unread,
May 12, 2002, 8:56:01 AM5/12/02
to
mElo <me...@guetali.fr> wrote:
: hi, another question:

: I want to pass the address of a variable that is a far pointer but my
: compiler (BC++4) reports an error: "Suspicious pointer conversion".

: Here's the declaration in the calling function:
: DWORD far *fp_mbr;

: I want to pass it to:
: int zero_partition (PTABLE_ENTRY *pptable, DWORD * far *p_fp_mbr);

: but when i write:
: retval = zero_partition (pptable, &fp_mbr);


Have you tried:
retval = zero_partition (pptable, (DWORD *)&fp_mbr);


: the compiler warnings me.

0 new messages