[openamq-dev] OpenAMQ and Visual Studio 2005

Jörg Fischer joerg.fischer at biologie.uni-freiburg.de
Fri Feb 15 14:36:03 CET 2008


Hi Martin,

thanks for your advice.

Jörg

Martin Sustrik schrieb:
> Jorg,
>
> You can export your own functions/methods, of course.
>
> What I've meant was that you shouldn't export CRT functions/symbols from 
> your DLL as that would cause your main to have them defined twice - once 
> in your DLL and once in CRT DLL.
>
> Martin
>
> Jörg Fischer wrote:
>   
>> Hi Martin,
>>
>> now I'm a bit confused. I use __declspec(dllexport). How can I use the 
>> classes of a dll if
>> the dll doesn't export them?
>>
>> Jörg
>>
>> Martin Sustrik schrieb:
>>   
>>     
>>> Jorg,
>>>
>>> Yes, it's either __declspec (dllexport) or, optionally, you can specify 
>>> symbols to export in .def file.
>>>
>>> Martin
>>>
>>> Jörg Fischer wrote:
>>>   
>>>     
>>>       
>>>> Hi Martin,
>>>>
>>>> I've googled around and searched the project properties of Visual Studio,
>>>> but I didn't find out where to specify which symbols should be exported.
>>>> Do you mean the __declspec(dllexport) declaration?
>>>>
>>>> Jörg
>>>>
>>>> Martin Sustrik schrieb:
>>>>   
>>>>     
>>>>       
>>>>         
>>>>> Hi Jorg,
>>>>>
>>>>> I am not 100% sure, however, I believe that if you build the DLL with 
>>>>> static CRT without exporting CRT symbols from the DLL, you should be 
>>>>> able to link it with a main that uses dynamic CRT.
>>>>>
>>>>> Martin
>>>>>
>>>>> Jörg Fischer wrote:
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>>> Hi Martin,
>>>>>>
>>>>>> Currently I try, according to your advice, to build a dll with static 
>>>>>> CRT for my project that handles all the
>>>>>> OpenAMQ-related stuff. Later I want to use this dll from my main 
>>>>>> application, which has to use DLL CRT.
>>>>>> In one of your mails you told me that...
>>>>>>   
>>>>>>     
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>>>>>> with DLL version of CRT rather than with static CRT. Note that OpenAMQ 
>>>>>>>> does not support DLL CRT.
>>>>>>>>       
>>>>>>>>         
>>>>>>>>           
>>>>>>>>             
>>>>>>>>               
>>>>>>>>                 
>>>>>> This sounds to me like I can't use OpenAMQ at all from my main 
>>>>>> application. Am I right?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Jörg
>>>>>> _______________________________________________
>>>>>> openamq-dev mailing list
>>>>>> openamq-dev at lists.openamq.org
>>>>>> http://lists.openamq.org/mailman/listinfo/openamq-dev
>>>>>>   
>>>>>>     
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>             
>>>>> _______________________________________________
>>>>> openamq-dev mailing list
>>>>> openamq-dev at lists.openamq.org
>>>>> http://lists.openamq.org/mailman/listinfo/openamq-dev
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>>>           
>>>>   
>>>>     
>>>>       
>>>>         
>>> _______________________________________________
>>> openamq-dev mailing list
>>> openamq-dev at lists.openamq.org
>>> http://lists.openamq.org/mailman/listinfo/openamq-dev
>>>   
>>>     
>>>       
>>   
>>     
>
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev
>   


More information about the openamq-dev mailing list