Click here to Skip to main content
15,923,083 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Network User Name on the Task Bar Pin
WinBond7-Nov-03 0:11
WinBond7-Nov-03 0:11 
GeneralNeed help to determine F0 in VC++ Pin
thanh_bkhn5-Nov-03 2:46
professionalthanh_bkhn5-Nov-03 2:46 
GeneralRe: Need help to determine F0 in VC++ Pin
David Crow5-Nov-03 5:11
David Crow5-Nov-03 5:11 
GeneralNetwork programming Pin
Katamneni5-Nov-03 2:44
Katamneni5-Nov-03 2:44 
GeneralRe: Network programming Pin
valikac5-Nov-03 5:59
valikac5-Nov-03 5:59 
GeneralCalling OpenGL display list Pin
Jean Bédard5-Nov-03 2:43
Jean Bédard5-Nov-03 2:43 
GeneralMore details Pin
Jean Bédard5-Nov-03 3:15
Jean Bédard5-Nov-03 3:15 
GeneralRe: More details Pin
Orhun Birsoy5-Nov-03 5:11
Orhun Birsoy5-Nov-03 5:11 
Since you have multiple views I am assuming you have multiple OpenGL rendering contexts. A display list is only valid in the context they are defined. First you have to have an active context in order to create and use them, and you can not use a display list, created while another context was active(current).
But nothing is without its solution, take look at wglShareLists in MSDN or better your favorite GL book.

Examining your code more deeply...
Create display list names with glGenLists, do not give your own name (eg. 1).
Your problem is, you give the same name (1) for all your display lists for all the contexts, and I think you end up with only 1 display list which is valid under the last context you created, you delete the other ones. So when you glCallList(1) with another context active you get GL_INVALID_VALUE(1281).

PS: if you are comfortable with linking with glu32.lib, you can use gluErrorString to make your error descriptions more understandable.

Orhun Birsoy
GeneralBM_SETIMAGE wont show the image Pin
ns5-Nov-03 2:35
ns5-Nov-03 2:35 
GeneralRe: BM_SETIMAGE wont show the image Pin
Michael Dunn5-Nov-03 12:40
sitebuilderMichael Dunn5-Nov-03 12:40 
GeneralRe: BM_SETIMAGE wont show the image Pin
ns7-Nov-03 3:00
ns7-Nov-03 3:00 
GeneralSimulate propertypage with the dialog dll-based Pin
w_yufeng5-Nov-03 2:24
w_yufeng5-Nov-03 2:24 
QuestionQueueUserWorkItem - how to call correctly? Pin
vgrigor5-Nov-03 2:07
vgrigor5-Nov-03 2:07 
AnswerRe: QueueUserWorkItem - how to call correctly? Pin
Mike Dimmick5-Nov-03 4:33
Mike Dimmick5-Nov-03 4:33 
GeneralRe: QueueUserWorkItem - how to call correctly? Pin
vgrigor5-Nov-03 4:41
vgrigor5-Nov-03 4:41 
QuestionIs accessing the registry every 1 second a bad idea? What other dynamic data storage method do you recommend? Pin
Varun Shoor5-Nov-03 2:00
Varun Shoor5-Nov-03 2:00 
AnswerRe: Is accessing the registry every 1 second a bad idea? What other dynamic data storage method do you recommend? Pin
vgrigor5-Nov-03 2:14
vgrigor5-Nov-03 2:14 
GeneralRe: Is accessing the registry every 1 second a bad idea? What other dynamic data storage method do you recommend? Pin
Varun Shoor5-Nov-03 2:28
Varun Shoor5-Nov-03 2:28 
GeneralRe: Is accessing the registry every 1 second a bad idea? What other dynamic data storage method do you recommend? Pin
vgrigor5-Nov-03 2:37
vgrigor5-Nov-03 2:37 
GeneralRe: Is accessing the registry every 1 second a bad idea? What other dynamic data storage method do you recommend? Pin
Dave Kreskowiak5-Nov-03 12:55
mveDave Kreskowiak5-Nov-03 12:55 
AnswerRe: Is accessing the registry every 1 second a bad idea? What other dynamic data storage method do you recommend? Pin
David Crow5-Nov-03 4:18
David Crow5-Nov-03 4:18 
QuestionPossible to swith Fibers in other thread ? Pin
vgrigor5-Nov-03 1:59
vgrigor5-Nov-03 1:59 
QuestionCBitmap bits/pixel reduction? Pin
mcondra5-Nov-03 1:19
mcondra5-Nov-03 1:19 
QuestionCreateFile : COMPORT limitation ?????? Pin
youssef5-Nov-03 0:04
youssef5-Nov-03 0:04 
Generalcapture Alt+F2 Pin
murali_utr4-Nov-03 23:43
murali_utr4-Nov-03 23:43 

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.