Click here to Skip to main content
15,890,557 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Internet Explorer ExplorerBar Pin
Eddy Vluggen16-Jun-10 23:44
professionalEddy Vluggen16-Jun-10 23:44 
AnswerRe: Internet Explorer ExplorerBar Pin
Stephen Hewitt20-Jun-10 14:28
Stephen Hewitt20-Jun-10 14:28 
QuestionHOW TO ACCESS CListBox in ATL Pin
D1koi11-Jun-10 2:48
D1koi11-Jun-10 2:48 
AnswerRe: HOW TO ACCESS CListBox in ATL Pin
Richard MacCutchan11-Jun-10 6:03
mveRichard MacCutchan11-Jun-10 6:03 
GeneralRe: HOW TO ACCESS CListBox in ATL Pin
D1koi11-Jun-10 12:46
D1koi11-Jun-10 12:46 
GeneralRe: HOW TO ACCESS CListBox in ATL Pin
D1koi11-Jun-10 13:22
D1koi11-Jun-10 13:22 
Questionstd::string constructor unresolved linking in VS 2010 Pin
StevenS_Dev6-Jun-10 12:40
StevenS_Dev6-Jun-10 12:40 
AnswerRe: std::string constructor unresolved linking in VS 2010 Pin
StevenS_Dev6-Jun-10 16:44
StevenS_Dev6-Jun-10 16:44 
I ran into something I don't understand. The following line is producing another unresolved link error. 'buf' is a std::string.

std::getline(stream, buf,'\n');


We have the same line of code in other projects that compile just fine. Below is the link error. To resolve the problem, I changed buf to a char[1024] and am calling stream.getline(buf, sizeof(buf), '\n'). But why am I getting this link error in the first place? The projects which compile fine are REQUIRED projects for the project giving me this problem. I don't know if the chain of links has something to do with this, but I thought I'd at least mention it.

18>SimpleMCSFile.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::operator+=(char)" (__imp_??Y?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@D@Z) referenced in function "class std::basic_istream<char,struct std::char_traits<char> > & __cdecl std::getline<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_istream<char,struct std::char_traits<char> > &&,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,char)" (??$getline@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@YAAAV?$basic_istream@DU?$char_traits@D@std@@@0@$$QAV10@AAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@D@Z)

GeneralRe: std::string constructor unresolved linking in VS 2010 Pin
Stephen Hewitt6-Jun-10 17:41
Stephen Hewitt6-Jun-10 17:41 
AnswerRe: std::string constructor unresolved linking in VS 2010 Pin
Richard MacCutchan6-Jun-10 22:36
mveRichard MacCutchan6-Jun-10 22:36 
GeneralRe: std::string constructor unresolved linking in VS 2010 [modified] Pin
StevenS_Dev7-Jun-10 9:29
StevenS_Dev7-Jun-10 9:29 
GeneralRe: std::string constructor unresolved linking in VS 2010 Pin
Stephen Hewitt7-Jun-10 14:08
Stephen Hewitt7-Jun-10 14:08 
GeneralRe: std::string constructor unresolved linking in VS 2010 Pin
StevenS_Dev18-Jun-10 12:58
StevenS_Dev18-Jun-10 12:58 
QuestionWhat's the difference between Interface and dispInterface? Pin
KASR13-Jun-10 0:26
KASR13-Jun-10 0:26 
AnswerRe: What's the difference between Interface and dispInterface? Pin
Aescleal3-Jun-10 1:04
Aescleal3-Jun-10 1:04 
GeneralRe: What's the difference between Interface and dispInterface? Pin
Stephen Hewitt3-Jun-10 14:05
Stephen Hewitt3-Jun-10 14:05 
AnswerRe: What's the difference between Interface and dispInterface? Pin
Stephen Hewitt3-Jun-10 14:04
Stephen Hewitt3-Jun-10 14:04 
QuestionCreatin instance failed of a COM Pin
Schehaider_Aymen1-Jun-10 23:28
Schehaider_Aymen1-Jun-10 23:28 
AnswerRe: Creatin instance failed of a COM Pin
Schehaider_Aymen2-Jun-10 0:59
Schehaider_Aymen2-Jun-10 0:59 
GeneralRe: Creatin instance failed of a COM Pin
Randor 2-Jun-10 7:51
professional Randor 2-Jun-10 7:51 
GeneralRe: Creatin instance failed of a COM Pin
Randor 3-Jun-10 14:58
professional Randor 3-Jun-10 14:58 
QuestionATL / COM what's the use for ? Pin
Schehaider_Aymen1-Jun-10 6:00
Schehaider_Aymen1-Jun-10 6:00 
AnswerRe: ATL / COM what's the use for ? Pin
Randor 1-Jun-10 8:30
professional Randor 1-Jun-10 8:30 
GeneralRe: ATL / COM what's the use for ? Pin
Schehaider_Aymen1-Jun-10 9:29
Schehaider_Aymen1-Jun-10 9:29 
GeneralRe: ATL / COM what's the use for ? Pin
Stephen Hewitt3-Jun-10 14:09
Stephen Hewitt3-Jun-10 14:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.