LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RtlIpv4StringToAddressW not fount in ntdll.dll under W2k

Greetings,
Trying to build app in a win2k SP 4 machine. Compile and builds correctly.  Links to WS2_32.LIB.  Executable fails with "The procedure entry point RtlIpv4StringToAddressW could not be located in the dynamic link library ntdll.dll".   Executable runs fine in my XP machine.  Any ideas??  Thanks in advance.
 
Marco
 
0 Kudos
Message 1 of 5
(6,946 Views)

This looks like an internal Win32 function (I could not find it on MSDN and I know this is not a CVI function). Usually this happens when you build an app using the Win32 api and end up linking against a function that is present only in a later version of the OS. One way of ensuring this does not occur is to specify a WINVER define when building the app. For example, if you WINVER to be 0x500, the Windows header will automatically include only those API that are supported on Win2k or higher. The windows.h file that ships with CVI FDS defines WINVER as 0x400 (Windows NT or higher)
In your Windows header file, you might have WINVER defined as 0x501 or higher. You can see that at the top of that file.

Try building the app again, only this time, add a compiler define in the CVI build options as /WINVER=0x500 (for compatibility with Win2k or higher)

For more information about WINVER, see this link.

I hope this helps

Bilal Durrani
NI
0 Kudos
Message 2 of 5
(6,930 Views)
Bilal,

Thank you for your reply. Before I could implement the define, I actually suspected the problem was due to insufficient priviledges on the target machine.  I had a system admin modify the user execution properties of the executable to "administrator" and that solved the problem.  Very frustrating.  Thanks for your help.

Marco

0 Kudos
Message 3 of 5
(6,893 Views)

aha, I didnt even think about that.

Thanks for sharing that with us

Bilal Durrani
NI
0 Kudos
Message 4 of 5
(6,888 Views)

I have a related problem with a XP SP3 machine with CVI 9.0.1 for generation for a W2K SP4 target machine.
 
I set the /DWINVER=0x500 /D_WIN32_WINNT=0x500 /DNTDDI_WIN2KSP3 options in "build options" panel
 
And I get the "The procedure entry point RtlIpv4StringToAddressW could not be located in the dynamic link library ntdll.dll" message  
 
May you help me ?
 
0 Kudos
Message 5 of 5
(4,558 Views)