Author | Message | Time |
---|---|---|
Yegg | I'm having an issue with the Windows CreateWindow() function. I'm using Pascal and here is my code: [code] hRichEdit := CreateWindow ('richedit_class', nil, WS_VISIBLE or WS_CHILD or WS_VSCROLL or ES_MULTILINE, 0, 0, 200, 150, lhWindow, 0, system.MainInstance, nil);[/code] All of the values in this block of code are of the correct type that they should be in. However, my compiler (FreePascal 2.0.2) is tells me the following: [code]Wrong number of parameters specified![/code] It directs this statement to the above code. However, I have absolutely no idea what could possibly be wrong. Any ideas? Edit: I think I know what's wrong. I just remembered that I overloaded this function when I should not have, this is probably what has affected the code. I'll check right now and update my post again with the results. Edit2: This was the issue. Problem solved. | December 12, 2005, 8:53 PM |