Re: Adding Win 32 to a MFC program
All those functions that it is complaining about are only available under
Windows CE. Are you writing a windows CE program?
AliR.
"Peter" <pvrequiz@gmail.com> wrote in message
news:c4a009af-d402-4216-8622-b0550cdb6120@25g2000hsx.googlegroups.com...
Hi,
Sorry if I didn?t give more details about my problem,
The win32 application I have taken from Derek from
http://forums.mysql.com/read.php?45,49606,49606
(I did modify it to make it do other function but it remind basically
the same, so better let refer to this Win32 application to read a
MySQL data base) my other program is one that can read the serial port
using a DLL and some include-file.h this application works fine now I
want to be able to use the win32 into my MFC application but it give
me this error
mysqlclient.lib(client.obj) : error LNK2001: unresolved external
symbol _connect@12
mysqlclient.lib(client.obj) : error LNK2001: unresolved external
symbol _WSAGetLastError@0
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _WSAGetLastError@0
mysqlclient.lib(my_gethostbyname.obj) : error LNK2001: unresolved
external symbol _WSAGetLastError@0
mysqlclient.lib(client.obj) : error LNK2001: unresolved external
symbol _htons@4
mysqlclient.lib(client.obj) : error LNK2001: unresolved external
symbol _inet_addr@4
mysqlclient.lib(client.obj) : error LNK2001: unresolved external
symbol _socket@12
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external
symbol _ntohs@4
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _ntohs@4
mysqlclient.lib(libmysql.obj) : error LNK2001: unresolved external
symbol _getservbyname@8
mysqlclient.lib(vio.obj) : error LNK2001: unresolved external symbol
_ioctlsocket@12
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _ioctlsocket@12
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _recv@16
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _send@16
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _setsockopt@20
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _closesocket@4
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _shutdown@8
mysqlclient.lib(viosocket.obj) : error LNK2001: unresolved external
symbol _getpeername@12
mysqlclient.lib(my_gethostbyname.obj) : error LNK2001: unresolved
external symbol _gethostbyname@4
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external
symbol _WSACleanup@0
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external
symbol _WSAStartup@8
mysqlclient.lib(my_net.obj) : error LNK2001: unresolved external
symbol _inet_ntoa@4
mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external
symbol __pctype
mysqlclient.lib(mf_pack.obj) : error LNK2001: unresolved external
symbol ___mb_cur_max
Release/TetraDiag.exe : fatal error LNK1120: 20 unresolved externals
Error executing link.exe.
TetraDiag.exe - 25 error(s), 0 warning(s)
I am not sure what is going on to be honest, I have try to combine the
win32 into my MFC but I must be missing something.
Thanks for any help
Peter
On May 19, 5:51 am, Joseph M. Newcomer <newco...@flounder.com> wrote:
What do you mean "add thewin32"? What do you mean "programs"? What in
the world are you
talking about?
What is a "hell of error"? Compile time errors? Link time errors? Run
time errors?
Assert failures? Access faults?
Come on, you really need to give us some useful information about what you
are talking
about here!
Do you have .c files involved? Or just .cpp? What aspects of "Win32" are
you talking
about (theWin32API is always available inMFC). Are you using a DLL?
I've got a similar problem. I'm having trouble getting my program
working. Please tell
me what I'm doing wrong.
[that's all you've said, by the way!]
joe
On Sun, 18 May 2008 18:41:12 -0700 (PDT), Peter <pvreq...@gmail.com>
wrote:
Hi,
I need some help fusion a Win 32 program with aMFCprogram.
I have done/modified a read seal portMFCprogram and Win 32 save in
MySQL database.
But it give me a hell of error went I am trying to add the win 32 to
myMFC.
Could you please give me some help/guide of what/where do I need to
know to fusion these two programs.
Regards,
Peter
Joseph M. Newcomer [MVP]
email: newco...@flounder.com
Web:http://www.flounder.com
MVP Tips:http://www.flounder.com/mvp_tips.htm