The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 mswin.h compilation error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tinkusch

Germany
94 Posts

Posted - 06/06/2005 :  04:46:29 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

tinkusch

Germany
94 Posts

Posted - 06/09/2005 :  02:39:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Danice,
my Verion is Origin 7.5 German, V7.5853, SR3
Perhaps I should update to SR5!
Thanks

Stefan


Go to Top of Page

Danice

China
2 Posts

Posted - 06/10/2005 :  02:26:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000