2009-04-07 01:49 PM - last edited on 2023-08-03 05:18 PM by Doreena Deng
2009-04-09 07:17 AM
2009-04-09 11:41 AM
2009-04-09 11:48 AM
Ivan wrote:The message that "the add-on is an old version" is really a euphemism for "something went wrong when the add-on was loaded but I don't know why".
Then I tried to use mysql++ api, after reading manual and cleaning all errors addon was built, but AC wrote me something about addon is old for current version... (commenting all places of using external functions makes addon up-to-date - it's magic). What's the problem with it here?
2009-04-09 12:53 PM
2009-04-09 02:15 PM
Ivan wrote:Where you place this test dll ?
I created my own simple dll with function returning just number, connected it to my archicad addon project, compiled it (without errors and visual studio could get an access to my dll for sure) and Archicad wrote me the same message...
2009-04-10 04:15 AM
2009-04-10 05:45 AM
Ivan wrote:If you will use so-called "load-time dynamic linking" linking to corresponding lib for dll, then you DLL have to placed into one of locations which Windows will search. (see details in the MSDN)
So,I must put every dll I use into Archicad folder?
Ivan wrote:Other way is so called "run-time dynamic linking". You dont link to the lib of dll. You have to load it directly by LoadLibrary ( or LoadLibraryEx ), then GetProcAddress for every functions you will use. This way is more hard.
I never wrote dlls, could you show me the example of how to use LoadLibraryEx inside archicad addon and to access to this dll?
2009-04-10 06:05 AM