Thank you fro the tip, Bo, but it did not work.Any other ideas? Is there a limit for the DLL also that the function names must be a maximum of 31 characters like other MapInfo symbol names?
Regards Rakesh On 26 Sep 2006 at 14:04, Thomsen, Bo Victor wrote: > Hi Rakesh - > > Try to change the place of the function name and the alias: Instead of this: > > Declare Function IClientObject_ShowImageServicesDialog Lib "ISClientC.dll" > Alias "ShowServices" (ByVal object as Integer, showImageServicesXml as String) as String > > try this: > > Declare Function ShowServices Lib "ISClientC.dll" Alias " IClientObject_ShowImageServicesDialog" (ByVal object as Integer, showImageServicesXml as String) as String > > > call the function like this: > > sArg2 = space$ (255) > sVal = ShowServices (nArg1, sArg2) > > > Regards > > Bo Thomsen > GeoConsult I/S > Denmark > > -----Oprindelig meddelelse----- > Fra: [EMAIL PROTECTED] [mailto:mapinfo-l- [EMAIL PROTECTED] På vegne af Rakesh Rao > Sendt: 26. september 2006 13:03 > Til: [email protected] > Emne: [Spam] Re: [MI-L] DLL function name limit > > > Hi Bill, > > Thank you for your reply. No, the Alias clause did not help either. > ----------------------------------------------------------------------------------- > // Below function name compiled correctly but does not link, gives a run-time > error saying that > the function does not exist in DLL > > IClientObject_ShowImageServicesDialog > > > // Below function does not compile at all, gives an error saying that > function is already > defined. It appears to be taking only the furst 32 signifiant characters in > the function name. > > IClientPropertiesDialog_ShowPropertyPage > > > ' Declaration in header file > > Declare Function IClientObject_ShowImageServicesDialog Lib "ISClientC.dll" > Alias > "ShowServices" (ByVal object as Integer, showImageServicesXml as String) as > String > > Declare Function IClientPropertiesDialog_ShowPropertyPage Lib "ISClientC.dll" > ( ByVal > object as Integer, ByVal pageId as Integer, ByVal parentHandle as Integer ) > as Logical > > Is there a way to get around this, other than having to recompile the DLL and > make changes > at source? > > > Regards > Rakesh > - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ] > - Four Dimension Technologies > [www.4d-technologies.com] > - Get GeoTools, Work smarter: www.4d-technologies.com/geotools > - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter > - View GDF files in AutoCAD, Get GDFViewer with GeoTools > > _______________________________________________ > MapInfo-L mailing list > [email protected] > http://www.directionsmag.com/mailman/listinfo/mapinfo-l > > > > > - Rakesh Rao [ rakesh.rao (at)4d-technologies.com ] - Four Dimension Technologies [www.4d-technologies.com] - Get GeoTools, Work smarter: www.4d-technologies.com/geotools - Free Lisp downloads @ TechCenter: www.4d-technologies.com/techcenter _______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
