Mail Archives: djgpp/2000/05/27/04:48:14
I think I found my answer through remarq... :-P Nevermind.
"Bryan" <riot29 AT hotmail DOT com> wrote in message
news:FeKX4.595$TZ2 DOT 40338 AT newsread1 DOT prod DOT itd DOT earthlink DOT net...
> I'm working with the allegro GUI system and recieve this error message
when
> compiling with the C++ compiler:
>
> "initialization to 'void *' from 'const char *' discards qualifier"
>
> It places the line numbers for the errors at the end of each DIALOG array,
> i.e. the following gets one:
>
>
> DIALOG file_save_dialog[] = {
> { d_shadow_box_proc, 80, 32, 300, 70, 255, 0, 0, 0,
> 0, NULL, NULL, NULL },
> { d_box_proc, 92, 47, 272, 12, 255, 0, 0, 0,
> 0, NULL, NULL, NULL },
> { d_edit_proc, 93, 49, 270, 12, 255, 0, 0, 0,
> 80, 0, "Filename", NULL, NULL },
> { d_button_proc, 120, 70, 100, 18, 255, 0, 'o', D_O_K,
> 0, 0, "&Ok", NULL, NULL },
> { d_button_proc, 230, 70, 100, 18, 255, 0, 'c', D_CLOSE,
> 0, 0, "&Cancel", NULL, NULL },
> { NULL, 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, NULL }
> };
>
> I would guess that some type of casting is required, but I can't figure
out
> where. These errors are also accompanied by warnings stating "converting
> NULL to non-pointer type". Anyone know how I can get the GUI stuff to
> compile right under C++?
>
> Thanks
>
>
>
- Raw text -