CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    Ft. Worth Texas
    Posts
    31

    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!

  2. #2
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    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.)
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Mabry Hitime.Ocx

    Not be overly nitpicky, but below should be BOOL, not bool (if returning FALSE, not false).

    Quote Originally Posted by laserlight View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured