Sign In  Sign Up Live-Chat

Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

Last post 01-29-2008, 9:44 AM by koala. 8 replies.
Sort Posts: Previous Next
  •  01-23-2008, 8:37 AM 110095

    Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Hi,

        We are in the search of a multi-lingual spell checker component to support customized microsoft webbrowser activex control in visual c++ 6.0.  We have come across your component and felt suitable for us.  We have downloaded Aspose.spell trial software where we got Aspose.spell DLL.  We have converted it into .tlb file using Visual studio 2005 tool and imported using #import statement in a sample visual c++ 6.0 application.  Then we ran into following errors

    g:\amc\source\spellchecker\debug\aspose.spell.tlh(23) : error C2143: syntax error : missing ';' before '?'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(23) : error C2059: syntax error : '?'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(33) : error C2143: syntax error : missing ';' before '?'
    Like these we have got 92 errors on the whole.  We followed the same process of importing another visual studio 2005 DLL into visual c++ 6.0 application, where we have succeeded.

                        When we tried to import aspose.spell.tlb file using classwizard we have found totally 5 classes that are to be imported.  Those classes are _License, _MainDictionaryInfo, _Spell, _FinishedEventHander & _?.  As the fifth class (_?) is invalid we are facing the problem with this DLL.

                         Can you please tell me the solution for this problem as early as possible.  Can we integrate this DLL in visual C++ 6.0 application?  Can this component work for microsoft webbrowser activex control? 

    Thanks in advance,

    Malleswari.

     

     
  •  01-24-2008, 6:12 AM 110249 in reply to 110095

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Hi,

    Thank you for considering Aspose.Spell.

    I will investigate it, and provide you result in 1-2 days.


    Oleg Korostylev
    Lead Developer
    Aspose Vladivostok Team
    About Us
    Contact Us
     
  •  01-26-2008, 3:46 AM 110556 in reply to 110249

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Hi,

    Please, could you send me your C++ test code which uses Aspose.Spell.


    Oleg Korostylev
    Lead Developer
    Aspose Vladivostok Team
    About Us
    Contact Us
     
  •  01-28-2008, 6:59 AM 110685 in reply to 110556

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Attachment: Present (inaccessible)

    Hi,

        Now we have bought the 30 days temporary license and downloaded new Aspose.Spell software.  Now I have got rid from the previous problem but caught up with another problem which is as follows

         I've converted Aspose.spell.dll into Aspose.spell.tlb using tlbexp (visual studio 2005) tool.  I've imported that tlb into my application using #import.  When I rebuild the application, a .tlh file will be created which consists of the declarations of all the classes present in the DLL.  But it is not showing any members of the classes.  I'm unable to use the members of classes except the constructors.  Here I'm attaching a sample application which can demonstrate you all the above things.   In the application I have used _License class and SetLicense() function.  It is giving error as "'SetLicense' : is not a member of '_License'".

         Please go through the problem and give us the solution as early as possible.

    Thanks

    Malleswari.

     
  •  01-29-2008, 1:57 AM 110853 in reply to 110685

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    The way we build Aspose components (remember they are for .NET), we use COM defautls and it allows to use only late bound IDispatch calls from COM clients. It does not generate dual interfaces (that's what you attempt to use in your code). It is also the reason why there are no methods in the type library.

    There are some (valid) reasons why .NET recomments against allowing dual interfaces. Essentially, there is a possibility that when the interface changes, your client will call into a wrong method. Unless you rebuild your project with an updated type library of course.

    I've looked at the way we work and think that allowing dual interfaces in Aspose components for COM clients is not actually a bad thing. All Aspose components are strong named and every .NET developer who uses them has to recompile their project whenever they use a new version of an Aspose component. If a COM developer using Aspose components has to do the same (recompile after upgrade) then we have not created any extra problems. We've just made life of COM clients easier because they can use dual interfaces with compile-time type checking etc.

    Therefore, Oleg will make a release of Aspose.Spell with dual interfaces enabled and you will find all methods in the type library and will be able to work the way you want to.

     


    Roman Korchagin
    Lead Developer, Aspose Auckland Team
     
  •  01-29-2008, 4:28 AM 110871 in reply to 110853

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Thanks for your feedback.  May I know when will be the new DLL with dual interfaces enabled available to us.  It would be grateful if you do it as early as possible.
     
  •  01-29-2008, 7:22 AM 110895 in reply to 110871

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Hi,

    This feature was added in Aspose.Spell 1.9.3 Released.


    Oleg Korostylev
    Lead Developer
    Aspose Vladivostok Team
    About Us
    Contact Us
     
  •  01-29-2008, 8:44 AM 110917 in reply to 110895

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Hi,

        I've downloaded and integrated 1.9.3 version with my sample application and got the following errors

    g:\amc\source\spellchecker\debug\aspose.spell.tlh(213) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(213) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(268) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(268) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(271) : error C2146: syntax error : missing ';' before identifier 'CreateObjRef'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(271) : error C2501: '_ObjRefPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(282) : error C2146: syntax error : missing ';' before identifier 'BeginRead'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(282) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(290) : error C2146: syntax error : missing ';' before identifier 'BeginWrite'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(290) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(431) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(431) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(531) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(531) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(622) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(622) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(719) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(719) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(827) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(827) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(911) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(911) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(958) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(958) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(961) : error C2146: syntax error : missing ';' before identifier 'CreateObjRef'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(961) : error C2501: '_ObjRefPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(972) : error C2146: syntax error : missing ';' before identifier 'BeginRead'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(972) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(980) : error C2146: syntax error : missing ';' before identifier 'BeginWrite'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(980) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1140) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1140) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1296) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1296) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1299) : error C2146: syntax error : missing ';' before identifier 'CreateObjRef'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1299) : error C2501: '_ObjRefPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1310) : error C2146: syntax error : missing ';' before identifier 'BeginRead'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1310) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1318) : error C2146: syntax error : missing ';' before identifier 'BeginWrite'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1318) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1471) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1471) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1474) : error C2146: syntax error : missing ';' before identifier 'CreateObjRef'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1474) : error C2501: '_ObjRefPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1485) : error C2146: syntax error : missing ';' before identifier 'BeginRead'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1485) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1493) : error C2146: syntax error : missing ';' before identifier 'BeginWrite'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1493) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1642) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1642) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1718) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1718) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1907) : error C2146: syntax error : missing ';' before identifier 'method'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1907) : error C2501: '_MethodInfoPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1907) : error C2501: 'method' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1919) : error C2146: syntax error : missing ';' before identifier 'GetType'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1919) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1927) : error C2146: syntax error : missing ';' before identifier 'Getmethod'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1927) : error C2501: '_MethodInfoPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1930) : error C2146: syntax error : missing ';' before identifier 'BeginInvoke'
    g:\amc\source\spellchecker\debug\aspose.spell.tlh(1930) : error C2501: 'IAsyncResultPtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tli(35) : error C2143: syntax error : missing ';' before 'tag::id'
    g:\amc\source\spellchecker\debug\aspose.spell.tli(35) : error C2433: '_TypePtr' : 'inline' not permitted on data declarations
    g:\amc\source\spellchecker\debug\aspose.spell.tli(35) : error C2501: '_TypePtr' : missing storage-class or type specifiers
    g:\amc\source\spellchecker\debug\aspose.spell.tli(35) : fatal error C1004: unexpected end of file found

                    I have searched for the reason causing these errors and got the solution as specified in the link

    http://qaix.com/dot-net-development/249-926-creating-com-components-in-c-read.shtml

    Please go through the link and release another build with the necessary changes to remove these

    errors.

     
  •  01-29-2008, 9:44 AM 110932 in reply to 110917

    Re: Facing problem in integrating Aspose.spell DLL in visual C++ 6.0

    Attachment: Present (inaccessible)

    Hi,

    I will investigate it.

    Try to use this test project for example.
    It works without errors.


    Oleg Korostylev
    Lead Developer
    Aspose Vladivostok Team
    About Us
    Contact Us
     
View as RSS news feed in XML