[wdmaudiodev] Statically linked APO

  • From: realbenzin@xxxxxxxx
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Tue, 13 Sep 2011 15:28:13 +0300

Hello,
First of all - I am a newbie in DDK development, so, please don`t be too harsh ;)

 

I have this requirement - that APO I am developing is statically linked. I found out that I need to provide USE_LIBCMT=1 in sources file. I am using Swap APO sample from DDK samples to develop the apo.

When I added USE_LIBCMT=1 to the sources file linker gave me error that __imp__vsnwprintf and __imp__wcsicmp symbols are not defined. I found that those could be linked from the ntoskrnl.lib. After linking the ntoskrnl.lib in the build was successfull.

The problem is that when i try to register this statically linked APO the regsvr32 crashes with access violation in RegisterAPO function (fruther down the stack StringCbPrintfW)... This happens for the DDK sample APO too. I am now confused how can i solve this problem and weather I can create APO that is statically linked at all.

Has anybody had some experience with statically linked APOs?

Thanks in advance!

Gatis
****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/

Other related posts: