.lib Files
-
Hi Everyone, I am faced with a bit of a problem. I suspect it is a problem only because of my non-existant knowledge of c/c++. I need to use a third party SDK to be able to control and/or monitor some telephony hardware from a popular vendor. My problem is that I have to do this from a .Net environment (C#) but the SDK file are .lib files. It is said that it is dynamically compiled (what that means I have no idea). Can anyone possibly tell me how I could use it from C# and if it's impossible, how I can wrap it in normal dll's (so I can use Dllimport) as normal. Thanks and Regards, Phi?
-
Hi Everyone, I am faced with a bit of a problem. I suspect it is a problem only because of my non-existant knowledge of c/c++. I need to use a third party SDK to be able to control and/or monitor some telephony hardware from a popular vendor. My problem is that I have to do this from a .Net environment (C#) but the SDK file are .lib files. It is said that it is dynamically compiled (what that means I have no idea). Can anyone possibly tell me how I could use it from C# and if it's impossible, how I can wrap it in normal dll's (so I can use Dllimport) as normal. Thanks and Regards, Phi?
Hello, I assume that you have the C++ header files for the libraries. You can do / try the following:* Set up a new project for a DLL. Here you write new headers that export the functions from the library. You create a DLL from here.
-
Hello, I assume that you have the C++ header files for the libraries. You can do / try the following:* Set up a new project for a DLL. Here you write new headers that export the functions from the library. You create a DLL from here.
Thanks for your reply. Yes I do have the header files. So am I right in saying that I would need some C/C++ skills for this? I feared that as I have very limited skills in that area and the header files' code seems very complex for me. Regards, Phi? -- modified at 8:52 Monday 31st October, 2005
-
Thanks for your reply. Yes I do have the header files. So am I right in saying that I would need some C/C++ skills for this? I feared that as I have very limited skills in that area and the header files' code seems very complex for me. Regards, Phi? -- modified at 8:52 Monday 31st October, 2005
André Trollip wrote:
I feared that as I have very limited skills in that area and the header files' code seems very complex for me.
don't worry André, headers are - most of the time - only declarations. what can obfuscate the understanding (especially with a dll header) can be function pointers. i suggest you so having a look at the msdn on that topic, of search the web for it (but just tell you it's not so hard and everything will be ok :D ).
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
Thanks for your reply. Yes I do have the header files. So am I right in saying that I would need some C/C++ skills for this? I feared that as I have very limited skills in that area and the header files' code seems very complex for me. Regards, Phi? -- modified at 8:52 Monday 31st October, 2005
André Trollip wrote:
So am I right in saying that I would need some C/C++ skills for this?
You don't need 'skills' as in n years experience. You do need to know a little bit about the topic. Search google or CP for writing DLL's. There are some articles here about the topic. Maybe you should try to call the vendor if they can build the library for you. This wouldn't be a crazy request since you paid for the API anyway. Behind every great black man... ... is the police. - Conspiracy brother Blog[^]