I'm wanting to export all the tinyxml functions in a dll, so that they can be called in a different application (not c++). I've got the dll build fine, and kind of understand about EXPORTS and def files ... but need some direction.
Using VC6++. Just needing some help to get this going. What to change where? kind of stuff. In the Project Settings, adding a .def file? ... etc etc.
Thanks very much
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The thing is that a DLL is a shared library - but this is different from a COM component (which is also deployed as a .DLL file usually - just to make it confusing).
AFAIK if you want your functions/objects/methods to be callable in another language, e.g. VB then you must write a COM module - which you'll find under the new project wizard somewhere.
However, if what you want is to use XML DOM functionality from some other language and you're on Windows, then just use MSXML. Its actually (and I feel strange saying this) quite easy to use.
An example is here: (note the #import not #include at the top; also note that this particular example is about sending a request, not parsing a document... sorry, I just had this handy...)
Thanks for the reply. I've got it working now. The DLL is needed to interface with the Dev Tool i'm using. But it's all good so far. Worked out the proper way to use __declspec(dllexport) ...
Thanks again for the info.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No probs. Sorry - Aside from my rants I should have explained the declspec stuff (my bad).
Did you get it so it is accessible from other languages? If so I'm interested to know how you did that. I thought it was only possible by a COM module.
Cheers
Ellers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got the DLL ported into a Lib from my dev tool, but unfortunately couldn't get past GPF's i was having when calling the procedures in code. Have bitten the big fat bullet and am working with MS XML DOM now.
Thanks for the posts :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey All,
I'm wanting to export all the tinyxml functions in a dll, so that they can be called in a different application (not c++). I've got the dll build fine, and kind of understand about EXPORTS and def files ... but need some direction.
Using VC6++. Just needing some help to get this going. What to change where? kind of stuff. In the Project Settings, adding a .def file? ... etc etc.
Thanks very much
The thing is that a DLL is a shared library - but this is different from a COM component (which is also deployed as a .DLL file usually - just to make it confusing).
AFAIK if you want your functions/objects/methods to be callable in another language, e.g. VB then you must write a COM module - which you'll find under the new project wizard somewhere.
However, if what you want is to use XML DOM functionality from some other language and you're on Windows, then just use MSXML. Its actually (and I feel strange saying this) quite easy to use.
An example is here: (note the #import not #include at the top; also note that this particular example is about sending a request, not parsing a document... sorry, I just had this handy...)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/xmobjxmlhttprequest.asp
HTH
Ellers
Ellers,
Thanks for the reply. I've got it working now. The DLL is needed to interface with the Dev Tool i'm using. But it's all good so far. Worked out the proper way to use __declspec(dllexport) ...
Thanks again for the info.
No probs. Sorry - Aside from my rants I should have explained the declspec stuff (my bad).
Did you get it so it is accessible from other languages? If so I'm interested to know how you did that. I thought it was only possible by a COM module.
Cheers
Ellers
Ellers,
I got the DLL ported into a Lib from my dev tool, but unfortunately couldn't get past GPF's i was having when calling the procedures in code. Have bitten the big fat bullet and am working with MS XML DOM now.
Thanks for the posts :)