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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 mswin.h compilation error

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
tinkusch 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
3   L A T E S T    R E P L I E S    (Newest First)
Danice 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
tinkusch 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 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


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000