Author |
Topic  |
|
tinkusch
Germany
94 Posts |
Posted - 06/06/2005 : 04:46:29 AM
|
Origin Version (Select Help-->About Origin): 7.5G Operating System:XP
Hi, the following example from mswin.h does not compile on my computer: Compilation error message: Member Funktion WorksheetPage::GetWindow nicht definiert oder kein passender Prototyp gefunden.
/***********************************************/ #include <origin.h> #include <wksheet.h> #include <mswin.h>
void test_GetWindowRect() { WorksheetPage testWks("Data1"); Window testWin = testWks.GetWindow(); testWin.ShowWindow(SW_NORMAL); RECT rect; testWin.GetWindowRect(&rect); printf("upper-left position, x:%d, y:%d\n", rect.left, rect.top); printf("lower-right position: x:%d, y:%d\n", rect.right, rect.bottom); } /******************************************************/
Does anybody have an idea what's wrong here? Thanks for any hint
Stefan
Edited by - tinkusch on 06/06/2005 04:49:08 AM |
|
Danice
China
2 Posts |
Posted - 06/07/2005 : 11:32:35 PM
|
Hi, Stefan I don't see the compile error message in SR5, can you give me your build number? you can get it from Help: About Origin.
Thanks, Danice
|
 |
|
tinkusch
Germany
94 Posts |
Posted - 06/09/2005 : 02:39:05 AM
|
Hi Danice, my Verion is Origin 7.5 German, V7.5853, SR3 Perhaps I should update to SR5! Thanks
Stefan
|
 |
|
Danice
China
2 Posts |
Posted - 06/10/2005 : 02:26:39 AM
|
Hi, Stefan I try in SR3, but still don't see the compile error. Can you find PageBase::GetWindow prototype in Page.h? if not, then it's the reason for the compile error, SR3 is not patched correctly.
Anyway, you can use SR5 and try it again.
BTW, I see you include wksheet.h and mswin.h besides origin.h in your code, it's not needed, this two system header have been included inside origin.h, so only include origin.h is ok.
Thanks, Danice
Edited by - Danice on 06/10/2005 02:27:19 AM |
 |
|
|
Topic  |
|
|
|