Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

problem with TSP++ v3.0

18 views
Skip to first unread message

Sheng Zhang

unread,
Jul 1, 2008, 9:06:04 AM7/1/08
to
hi,

I am going to write small TSP program to receive and convert a call from
Outlook
to an HttpRequest. Since I have no idea how to write a TSP, I think using
TSP++
application wizard will be the easiest way for me. I am using Visual Studio
2005
(VC8) in Windows Vista Business, when I try to compile a project created by
the
TSP++ application wizard, there are some strange link errors I can not get
rid of:

1>Compiling resources...
1>Linking...
1> Creating library .\Release/MyTSP.lib and object .\Release/MyTSP.exp
1>MyTSP.exp : warning LNK4070: /OUT:MyTSP.dll directive in .EXP differs from
output filename 'Release/MyTSP.tsp'; ignoring directive
1>splib32.lib(Debug.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(Phonecon.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(Agent.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(Address.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(TSPLayer.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(Misc.obj) : error LNK2019: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA) referenced in function "unsigned int
__stdcall ATL::_AtlGetConversionACP(void)"
(?_AtlGetConversionACP@ATL@@YGIXZ)
1>splib32.lib(Serialize.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(Sp.obj) : error LNK2001: unresolved external symbol "unsigned
int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>splib32.lib(Lineconn.obj) : error LNK2001: unresolved external symbol
"unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"
(?g_pfnGetThreadACP@ATL@@3P6GIXZA)
1>Release/MyTSP.tsp : fatal error LNK1120: 1 unresolved externals

The SPLIB32.lib and other SPxxx.libs are compiled with VS2005 in Vista
without
any errors. Does it have something to do with the VC version or Vista?If it
does,
how can the problem be solved?

Can anyone help me out? Any general hints about TSP development are
welcome.

regards,

Sheng Zhang

Andreas Marschall [MVP TAPI]

unread,
Jul 1, 2008, 12:12:28 PM7/1/08
to
"Sheng Zhang" <sheng...@gebecom.de> schrieb im Newsbeitrag
news:OI5v8s32...@TK2MSFTNGP04.phx.gbl...

> I am going to write small TSP program to receive and convert a call from
> Outlook
> to an HttpRequest. Since I have no idea how to write a TSP, I think using
> TSP++
> application wizard will be the easiest way for me. I am using Visual Studio
> 2005
> (VC8) in Windows Vista Business, when I try to compile a project created by
> the
> TSP++ application wizard, there are some strange link errors I can not get
> rid of:
>
> 1>Compiling resources...
> 1>Linking...
> 1> Creating library .\Release/MyTSP.lib and object .\Release/MyTSP.exp
> 1>MyTSP.exp : warning LNK4070: /OUT:MyTSP.dll directive in .EXP differs from
> output filename 'Release/MyTSP.tsp'; ignoring directive
> 1>splib32.lib(Debug.obj) : error LNK2001: unresolved external symbol
> "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)"

Sheng,
please try to
#include <afxwin.h>
in the stdafx.h file for your TSP++ project.
This #include doesn't seem to be generated by the wizard.


> Any general hints about TSP development are welcome.

See my TAPI and TSPI FAQ:
Q: How can I debug a TSP ?
http://www.i-b-a-m.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm#_Q:_How_can_1

--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.i-b-a-m.de/Andreas_Marschall's_Toto_Tools.htm
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.

Sheng Zhang

unread,
Jul 3, 2008, 4:35:06 AM7/3/08
to
Thank you Andreas for your quick answer! I have also learnt a lot from your
homepage, they are really helpful.

I have added #include <afxwin.h> into the stdafx.h file, and see this error,

1>Compiling...
1>stdafx.cpp
1>C:\Program Files\Microsoft Visual Studio
8\VC\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H
already included. MFC apps must not #include <windows.h>

Then I removed the #include <windows.h>, get but the same error.

After search in google I think it because the calling convention changed
between VC6 & VC7, so maybe it is not possible to use
TSP++ and Visual Studio 2005 in Windows Vista to debug a TSP?

//typedef UINT (WINAPI *ATLGETTHREADACP)(); // VC7
typedef UINT ( *ATLGETTHREADACP2)(); // VC6
ATLGETTHREADACP g_pfnGetThreadACP;

I am trying to get a Windows XP and Visual Studio 6.0 on another PC and see
what happens.

Regards, Sheng


"Andreas Marschall [MVP TAPI]" <Andreas....@I-B-A-M.de> schrieb im
Newsbeitrag news:OR49JV52...@TK2MSFTNGP06.phx.gbl...

Sheng Zhang

unread,
Jul 3, 2008, 5:14:13 AM7/3/08
to
Hi Andreas,

Sorry for the last message, I was wrong, I added the include in the stdafx.h
of splib project and build the splib32.lib
again and it works! thank you for your help!

Regards, Sheng

"Andreas Marschall [MVP TAPI]" <Andreas....@I-B-A-M.de> schrieb im
Newsbeitrag news:OR49JV52...@TK2MSFTNGP06.phx.gbl...

Andreas Marschall [MVP TAPI]

unread,
Jul 3, 2008, 7:01:26 AM7/3/08
to
"Sheng Zhang" <sheng...@gebecom.de> schrieb im Newsbeitrag
news:%23OBYAfO...@TK2MSFTNGP04.phx.gbl...

> Thank you Andreas for your quick answer! I have also learnt a lot from your
> homepage, they are really helpful.

Sheng, you are welcome and thanks for the feedback.


> I have added #include <afxwin.h> into the stdafx.h file, and see this error,
>
> 1>Compiling...
> 1>stdafx.cpp
> 1>C:\Program Files\Microsoft Visual Studio
> 8\VC\atlmfc\include\afxv_w32.h(16) : fatal error C1189: #error : WINDOWS.H
> already included. MFC apps must not #include <windows.h>
>
> Then I removed the #include <windows.h>, get but the same error.

Yes I needed to remove that too from a TSP++ project.


> After search in google I think it because the calling convention changed
> between VC6 & VC7, so maybe it is not possible to use
> TSP++ and Visual Studio 2005 in Windows Vista to debug a TSP?

I haven't used TSP++ on Vista,
but I have used it successfully on XP/SP with VS2k8.

--
Best Regards
Andreas Marschall

Microsoft MVP for TAPI / Windows SDK / Visual C++

Andreas Marschall [MVP TAPI]

unread,
Jul 3, 2008, 7:02:41 AM7/3/08
to
"Sheng Zhang" <sheng...@gebecom.de> schrieb im Newsbeitrag
news:O2jHw0O3...@TK2MSFTNGP02.phx.gbl...

> Hi Andreas,
>
> Sorry for the last message, I was wrong, I added the include in the stdafx.h
> of splib project and build the splib32.lib
> again and it works! thank you for your help!

Sheng, you are welcome.
Good to read that it is eventually working.

--
Best Regards
Andreas Marschall

Microsoft MVP for TAPI / Windows SDK / Visual C++

0 new messages