[wdmaudiodev] Re: Statically linked APO

  • From: Matthew van Eerde <Matthew.van.Eerde@xxxxxxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Tue, 13 Sep 2011 15:56:13 +0000

Can you send me a .dmp file off-list?

What is your _NT_TARGET_VERSION ?  If you can send the whole sources file that 
would be even better.

From: wdmaudiodev-bounce@xxxxxxxxxxxxx 
[mailto:wdmaudiodev-bounce@xxxxxxxxxxxxx] On Behalf Of realbenzin@xxxxxxxx
Sent: Tuesday, September 13, 2011 5:28 AM
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Statically linked APO

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: