Click here to Skip to main content
15,911,762 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Trying to call OpenGL functions in a dll Pin
Ryan Binns6-Oct-04 18:30
Ryan Binns6-Oct-04 18:30 
GeneralRe: Trying to call OpenGL functions in a dll Pin
jan larsen6-Oct-04 21:49
jan larsen6-Oct-04 21:49 
GeneralDatabase Project Pin
Kehllendros6-Oct-04 12:59
Kehllendros6-Oct-04 12:59 
GeneralRe: Database Project Pin
Christian Graus6-Oct-04 16:48
protectorChristian Graus6-Oct-04 16:48 
GeneralRe: Database Project Pin
Henry miller7-Oct-04 5:27
Henry miller7-Oct-04 5:27 
GeneralInternal compiler error C1001 Pin
Bob Stanneveld6-Oct-04 12:26
Bob Stanneveld6-Oct-04 12:26 
GeneralRe: Internal compiler error C1001 Pin
Joaquín M López Muñoz6-Oct-04 12:45
Joaquín M López Muñoz6-Oct-04 12:45 
GeneralSolved. Pin
Bob Stanneveld7-Oct-04 2:27
Bob Stanneveld7-Oct-04 2:27 
Hello,

Thanks for your reply. The problem was indeed with my code using a 2D array of pointers. After I rewritten the code using 2 seperate arrays (one of pointers, one of MyStructs), it works perfect.

Anyway, here is the solution of the problem:
<br />
class a : public CMessageBase<br />
{<br />
private: <br />
static const MYSTRUCT* MyStructs[2];<br />
static const MYSTRUCT MyStruct[]; <br />
};<br />
// initialize the array here<br />
// if I remove this line, no error occurs<br />
const MYSTRUCT* a::MyStructs[] = {NULL, &a::MyStruct[0]};<br />
const MYSTRUCT  a::MyStruct[]  = {{/*Some values*/},{/*Some values*/}};<br />




Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.

GeneralRe: Internal compiler error C1001 Pin
Anonymous6-Oct-04 15:01
Anonymous6-Oct-04 15:01 
GeneralRe: Internal compiler error C1001 Pin
David Crow6-Oct-04 16:40
David Crow6-Oct-04 16:40 
GeneralRe: Internal compiler error C1001 Pin
Ryan Binns6-Oct-04 18:41
Ryan Binns6-Oct-04 18:41 
GeneralRe: Internal compiler error C1001 Pin
Bob Stanneveld7-Oct-04 2:35
Bob Stanneveld7-Oct-04 2:35 
GeneralDialog accelerators Pin
Atlence6-Oct-04 12:14
Atlence6-Oct-04 12:14 
GeneralRe: Dialog accelerators Pin
David Crow6-Oct-04 16:42
David Crow6-Oct-04 16:42 
GeneralTransparent Slider Pin
Atlence6-Oct-04 12:07
Atlence6-Oct-04 12:07 
GeneralAccelerators ... Pin
Andre Massada6-Oct-04 11:24
Andre Massada6-Oct-04 11:24 
GeneralMapping Right mouse click to button click Pin
Manu816-Oct-04 10:59
Manu816-Oct-04 10:59 
GeneralRe: Mapping Right mouse click to button click Pin
Yulianto.6-Oct-04 18:08
Yulianto.6-Oct-04 18:08 
GeneralRe: Mapping Right mouse click to button click Pin
sreejith ss nair7-Oct-04 0:17
sreejith ss nair7-Oct-04 0:17 
GeneralCaption Names Pin
jj9216-Oct-04 9:40
jj9216-Oct-04 9:40 
GeneralRe: Caption Names Pin
Ravi Bhavnani6-Oct-04 10:42
professionalRavi Bhavnani6-Oct-04 10:42 
GeneralRe: Caption Names Pin
Joaquín M López Muñoz6-Oct-04 11:16
Joaquín M López Muñoz6-Oct-04 11:16 
GeneralEach letter a diffetent color to a dc Pin
...---...6-Oct-04 9:30
...---...6-Oct-04 9:30 
GeneralRe: Each letter a diffetent color to a dc Pin
Maximilien6-Oct-04 9:42
Maximilien6-Oct-04 9:42 
GeneralNon client area events mouse hook Pin
anandforu6-Oct-04 9:11
anandforu6-Oct-04 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.