-
November 11th, 2014, 01:17 AM
#1
Mabry Hitime.Ocx
Hello,
Don't know if this is the right place to put this...
I have the source code for the Mabry HiTime.Ocx. It's a 32-bit ocx Version 1.20.007.
I would like to use this ocx in a legacy program written in VB6, but now needs to run on Windows 7-64 bit. The original ocx does run on Windows7-32 bit.
I have loaded/converted the source code into/using Visual Studio 2010 Professional. It seems to mostly compile, but i'm getting 1 error at the moment.
"error C4430: missing type specifier - int assumed. Note: C++ does not support default-int"
Ok, here's the deal: I'm not a C++ programmer, and this error is well outside my area of expertise. I'm not even certain I can intelligently convey the issue. But I'l try.
The offending routine is:
HITIMCTL.CPP
Code:
CHiTimeCtrl::OnSetExtent(LPSIZEL foo)
{
return FALSE;
}
I have located 3 other instances/reference of the CHiTimeCtrl, but don't know if they are relevant to the error.
Can someone take a look at this?
Thanks!
-
November 11th, 2014, 01:52 AM
#2
Re: Mabry Hitime.Ocx
Take a look at the definition for CHiTimeCtrl. It is probably a class with a member function named OnSetExtent. This member function has a return type that should have been declared, but is somehow missing from this definition of OnSetExtent that you posted. Given the return FALSE, the return type is probably a boolean type of some kind, but you should find out what exactly it is and then add it to the definition such that it matches the declaration in the class definition, e.g.,
Code:
bool CHiTimeCtrl::OnSetExtent(LPSIZEL foo)
{
return FALSE;
}
(Though instead of bool it could well be BOOL, BOOLEAN, etc.)
-
November 11th, 2014, 05:02 PM
#3
Re: Mabry Hitime.Ocx
Not be overly nitpicky, but below should be BOOL, not bool (if returning FALSE, not false).
Originally Posted by laserlight
Code:
BOOL CHiTimeCtrl::OnSetExtent(LPSIZEL foo)
{
return FALSE;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|