Search found 3 matches

by D.J.Peters
Thu Dec 31, 2009 3:01 pm
Forum: General category
Topic: GetDC will crash
Replies: 4
Views: 10140

GetDC will crash

now i know why my mistakes happened

CreateDC, CreateCompatibleDC and DeleteDC are from gdi32.dll
but GetDC and ReleaseDC are a part of user32.dll

Joshy
(sorry about my bad English)


by D.J.Peters
Thu Dec 31, 2009 1:26 pm
Forum: General category
Topic: GetDC will crash
Replies: 4
Views: 10140

GetDC will crash

[quote author=fred link=1262218622/0#1 date=1262253778]I hope this helps a little.[/quote]

you made my day ;-)

i wonder me why the byte code runtime engine don`t print a message about the missing/wrong DLL import.

But ok i will change my mistake.

thank you

Joshy

by D.J.Peters
Thu Dec 31, 2009 12:17 am
Forum: General category
Topic: GetDC will crash
Replies: 4
Views: 10140

GetDC will crash

hello coders,first sorry about my bad Englishevery time i call GetDC the program will crashsame if i use the DC from desktop (0=NULL)thank you for any hint(how to use code tags in this forum?) Joshy[code]onst PFD_TYPE_RGBA = 0const PFD_TYPE_COLORINDEX = 1const PFD_MAIN_PLANE = 0const PFD_OVERLAY_PLA...