Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2005, 08:57 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default convert VC++ 5.0 project to VC++ 6.0 MIDL ERR

Hi All,

I am trying to convert VC++ 5.0 project to VC++ 6.0 and I keep getting this error
wtyps.idl error executing MIDL.EXE

I have an ODL file of my project and not an IDL file. I kept turning mkty.. on/off and I still get the same error.

Please help, and your help will be appreciate it.

Here is part of the odl file:

[ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630), version(1.0), helpstring("Claims 3.x Database Btrieve Interface") ]
library C3DBase
{
    importlib("stdole32.tlb");


    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        modNormal = 0,
        modReadOnly = -2
    } OpenMode;

    typedef [uuid(34E499D5-46FE-11D2-A027-00C04FDEB630)]
    enum
    {
        getNormal = 0,
        getWithKey = 50,
        getWithLock = 100
    } GetMode;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        stepNormal = 0,
        stepWithLock = 100
    } StepMode;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        getEqual = 5,
        getFirst = 12,
        getNext = 6,
        getGreaterThan = 8,
        getGreaterThanOrEqual = 9,
        getLessThan = 10,
        getLessThanOrEqual = 11,
        getPrevious = 7,
        getLast = 13
    } GetOperationCode;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        stepFirst = 33,
        stepNext = 24,
        stepPrevious = 35,
        stepLast = 34
    } StepOperationCode;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        catPhoto = 0,
        catSignature = 1,
        catFingerprint = 2,
        catPrint = 3,
        catQA = 4,
        catSupervisor =5
    }StatusCategory;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        idxUserID = 0,
        idxStatus = 1,
        idxDate =2,
        idxTime = 3
    }CategoryIndex;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        typMailingAddress = 0,
        typResidence = 1
    }AddressType;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        idxStreet = 0,
        idxCity = 1,
        idxState = 2,
        idxZip = 3,
        idxProvince = 4,
        idxPostalCode = 5,
        idxCountryCode =6
    }AddressIndex;

    typedef [ uuid(34E499D5-46FE-11D2-A027-00C04FDEB630) ]
    enum
    {
        idxColumn1 = 0, idxColumn2, idxColumn3, idxColumn4, idxColumn5, idxColumn6, idxColumn7, idxColumn8, idxColumn9, idxColumn10,
        idxColumn11, idxColumn12, idxColumn13, idxColumn14, idxColumn15, idxColumn16, idxColumn17, idxColumn18, idxColumn19, idxColumn20,
        idxColumn21, idxColumn22, idxColumn23, idxColumn24, idxColumn25, idxColumn26, idxColumn27, idxColumn28, idxColumn29, idxColumn30,
        idxColumn31, idxColumn32, idxColumn33, idxColumn34, idxColumn35, idxColumn36, idxColumn37, idxColumn38, idxColumn39, idxColumn40,
        idxColumn41, idxColumn42, idxColumn43, idxColumn44, idxColumn45, idxColumn46, idxColumn47, idxColumn48, idxColumn49, idxColumn50
    } ColumnIndex;
    // Primary dispatch interface for R2APP

    [ uuid(34E499E3-46FE-11D2-A027-00C04FDEB630) ]
    dispinterface IR2APP
    {
        properties:
            // NOTE - ClassWizard will maintain property information here.
            // Use extreme caution when editing this section.
            //{{AFX_ODL_PROP(R2APP)
            [id(1)] BSTR Index0;
            [id(2)] BSTR ReceiptNumber;
            [id(3)] BSTR LastName;
            [id(4)] BSTR FirstName;
            [id(5)] BSTR MiddleName;
            [id(6)] BSTR AssocNumber;
            [id(7)] BSTR FormNumber;
            [id(8)] BSTR ANumber;
            [id(9)] BSTR NIISNumber;
            [id(10)] BSTR LastArrivalDate;
            [id(11)] BSTR LastEntryPlace;
            [id(12)] BSTR ClassOfAdmission;
            [id(13)] BSTR SSN;
            [id(14)] BSTR NatzCertNumber;
            [id(15)] BSTR Soundex;
            [id(16)] BSTR DateOfBirth;
            [id(17)] BSTR Gender;
            [id(18)] BSTR MaritalStatus;
            [id(19)] BSTR CountryOfBirth;
            [id(20)] BSTR COResidence;
            [id(21)] BSTR COCitizenship;
            [id(22)] BSTR CurrentClass;
            [id(23)] BSTR InCareOf;
            [id(24)] BSTR Street;
            [id(25)] BSTR City;
            [id(26)] BSTR County;
            [id(27)] BSTR State;
            [id(28)] BSTR Zip;
            [id(29)] BSTR Province;
            [id(30)] BSTR PostalCode;
            [id(31)] BSTR Country;
            [id(32)] BSTR Telephone;
            [id(33)] BSTR JobCode;
            [id(34)] BSTR Part21;
            [id(35)] BSTR Part22;
            [id(36)] long Part2Multi;
            [id(37)] BSTR RepCode;
            [id(38)] long Flag;
            [id(39)] long CoTextParagraph;
            [id(40)] long RegParagraph;
            [id(41)] BSTR Consulate;
            [id(42)] BSTR ClassPreference;
            [id(43)] BSTR ValidFromDate;
            [id(44)] BSTR ValidToDate;
            [id(45)] BSTR FormAppealed;
            [id(46)] BSTR DateFiled;
            [id(47)] BSTR DecisionDate;
            [id(48)] BSTR PriorityDate;
            [id(49)] short NumberOfBenes;
            [id(50)] BSTR POE;
            [id(51)] BSTR Index1;
            [id(52)] BSTR Index2;
            [id(53)] BSTR Index3Seg0;
            [id(54)] BSTR Index3Seg1;
            [id(55)] BSTR Index3Seg2;
            [id(56)] BSTR Index4Seg0;
            [id(57)] BSTR Index4Seg1;
            [id(58)] BSTR Index5;
            [id(59)] BSTR Index6;
            [id(60)] BSTR ClassExpirationDate;
            //}}AFX_ODL_PROP

        methods:
            // NOTE - ClassWizard will maintain method information here.
            // Use extreme caution when editing this section.
            //{{AFX_ODL_METHOD(R2APP)
            [id(61)] short Open(BSTR lpszFilePath, OpenMode enOpenMode);
            [id(62)] short Close();
            [id(66)] short DoGet(GetOperationCode enOpCode, short siKeyNumber, GetMode enGetMode);
            [id(63)] short Insert(short siKeyNumber);
            [id(64)] short Update(short siKeyNumber);
            [id(65)] short Delete();
            [id(67)] void ResetBuffer();
            [id(68)] short SaveBookmark();
            [id(69)] short RestoreBookmark(short siKeyNumber);
            [id(70)] short Unlock();
            [id(71)] short GetTotalNumberOfRecord(long* lpTotalNumberOfRecord);
            [id(72)] short DoStep(StepOperationCode enOpCode, StepMode enMode);
            //}}AFX_ODL_METHOD

    };

Thanks,
Matt






Similar Threads
Thread Thread Starter Forum Replies Last Post
MSFlexGrid in VC++ arun.sharma.kumar Visual C++ 0 March 24th, 2007 02:27 AM
VC++ 6 dannytran Visual C++ 0 January 4th, 2006 07:49 AM
Help us in VC++ MMazhar Visual C++ 0 December 10th, 2005 03:49 PM
VC.NET project questions shmacgregor ASP.NET 1.x and 2.0 Application Design 17 December 9th, 2003 06:16 PM
convert a Stored procedure to DLL by VC++ rosalynb Visual C++ 0 November 4th, 2003 06:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.