开发者

Accessing functions from a 3rd Party SDK in Visual C++ Express 2010

开发者 https://www.devze.com 2023-03-25 14:19 出处:网络
I am wanting to work with a specific piece of hardware that I have gotten from a vendor. I found out that they have an sdk. I downloaded the documentation and materials and everything else needed. Inc

I am wanting to work with a specific piece of hardware that I have gotten from a vendor. I found out that they have an sdk. I downloaded the documentation and materials and everything else needed. Included in the file are a .lib and a .dll.

How do I use these files in order to access functions? Can someone give me an example of how to load the dll and access the function? Or can I include the .lib file somehow and allow it to load and c开发者_Python百科oordinate the functions it covers?

Did everything listed belowe and got this list of compiler errors http://pastebin.com/uS24iEKi


You need also SDK h-file, which should be included in the package you have. To use SDK in VC++ project, follow these steps:

  1. Include SDK h-file(s) to your own project files.

  2. Add SDK .lib file to the list of project linker depencencies.

  3. Ensure that SDK .dll file is available at runtime (placed in current, executable, Windows or System32 directory, or available through PATH).

  4. In your code, call SDK functions, or create SDK class instance and call its methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号