mfgtool run error in winxp after rebuild src under win7 with wsdk7.1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mfgtool run error in winxp after rebuild src under win7 with wsdk7.1

1,405件の閲覧回数
moseeneview
Contributor II

mfgtool run error in winxp after rebuild under win7 with wsdk7.1

1) mfgtoolib version 2.2.3

2) build mfgtool src in vs2008 with sdk7.1 under win7

3) after rebuild .

      run mfgtool in win7  => ok

      run mfgtool in winxp  => error as below:

                     not found initialzeConditionVeriable in kernel32.dll.

as we know, initialzeConditionVeriable is not for winxp, but good for win7,8,8.1.

could anyone tell how to fix this issue. and then the exe program can run in winxp and win7 perfectly at the same time?

help me plz.

waiting for your kindly help.

thx.

ラベル(3)
0 件の賞賛
返信
2 返答(返信)

1,230件の閲覧回数
jamesbone
NXP TechSupport
NXP TechSupport

You'll want to define the _WIN32_WINNT macro:

#define _WIN32_WINNT 0x502 // Designed to run on Windows XP SP2 and up 
#include <windows.h> 

If you don't set it then it typically defaults to 0x600 on later versions of the Windows SDK, selecting Vista as the target operating system


Have a great day,
Jaime

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,230件の閲覧回数
moseeneview
Contributor II

hey jamesbone.Thank you very much.

If i define as below, is that correct? is it only support XP SP2 and up for mfgtool v2?

XP

WINVER=0x0502 _WIN32_WINNT=0x0502

Internet Explorer 6.0

_WIN32_IE=0x0600


but i get some compile error.

undifined macro:

ExprogressCtrl.h:

       PBM_GETBARCOLOR

     PBM_GETBKCOLOR

0 件の賞賛
返信