LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows SDK Import Libraries

Hi,
I am trying to use win32 calls that are not included in kernel32.lib,
gdi32.lib and user32.lib thus I have to add import libraries to the
project. Reading cvi\sdk\sdkfuncs.txt I determined that the three
functions I need (cmc_logon, cmc_logoff and cmc_send) are located in
mapi32.lib.

So in project I do Edit->Add files to project->library and select
cvi\sdk\lib\mapi32.lib. It pops into the project view.

After build project I get
Undefined symbol 'cmc_logoff' referenced in "smtp.c"
Undefined symbol 'cmc_logon' referenced in "smtp.c"
Undefined symbol 'cmc_send' referenced in "smtp.c"

Which are exactly the same errors if I don't include mapi32.lib in the
project.

Where have I gone wrong? As far as I can tell these ro
utines should now
link.

This is using NT 4.0, service pack 6a, Labwindow version 5.0

Thanks,
Bob


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(3,314 Views)
Adding the lib file to your project is not sufficient to use its functions.
You also need the function definitions. According to MSDN, CMC function definitions
are located in "xcmc.h" header file, which should be present in cvi\sdk\include.
So, simply add the following line at the beginning of your source file "smtp.c":
#include

bob_k_2@my-deja.com wrote:
>Hi,> I am trying to use win32 calls that are not included in kernel32.lib,>gdi32.lib
and user32.lib thus I have to add import libraries to the>project. Reading
cvi\sdk\sdkfuncs.txt I determined that the three>functions I need (cmc_logon,
cmc_logoff and cmc_send) are located in>mapi32.lib.>> So in project I do
Edit->Add files to project->library and select>cvi\sdk\lib\mapi32.lib. It
pops into the project
view.>> After build project I get>Undefined symbol
'cmc_logoff' referenced in "smtp.c">Undefined symbol 'cmc_logon' referenced
in "smtp.c">Undefined symbol 'cmc_send' referenced in "smtp.c">>Which are
exactly the same errors if I don't include mapi32.lib in the>project.>>Where
have I gone wrong? As far as I can tell these routines should now>link.>>This
is using NT 4.0, service pack 6a, Labwindow version 5.0>>Thanks,> Bob>>>Sent
via Deja.com http://www.deja.com/>Before you buy.
0 Kudos
Message 2 of 2
(3,314 Views)