Click here to Skip to main content
15,890,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRegular expressions Pin
Harold_Wishes17-Jul-06 11:13
Harold_Wishes17-Jul-06 11:13 
AnswerRe: Regular expressions Pin
led mike17-Jul-06 11:24
led mike17-Jul-06 11:24 
Questiondynamic array of strings Pin
jon-8017-Jul-06 10:24
professionaljon-8017-Jul-06 10:24 
AnswerRe: dynamic array of strings [modified] Pin
Chris Losinger17-Jul-06 10:48
professionalChris Losinger17-Jul-06 10:48 
GeneralRe: dynamic array of strings Pin
led mike17-Jul-06 11:02
led mike17-Jul-06 11:02 
GeneralRe: dynamic array of strings Pin
Chris Losinger17-Jul-06 11:06
professionalChris Losinger17-Jul-06 11:06 
GeneralRe: dynamic array of strings Pin
led mike17-Jul-06 11:19
led mike17-Jul-06 11:19 
GeneralRe: dynamic array of strings Pin
jon-8018-Jul-06 10:52
professionaljon-8018-Jul-06 10:52 
I’m trying to create a function that creates an array of strings when reading from a text file.

This object seems to require afxcoll.h to be included and I've included them in my console application, however a couple of errors crop up. I also tried to include it within an MFC application, since this is an MFC class, but they won't compile as well.

Sentences error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpd.lib(newop.obj)

Sentences error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBCD.lib(dbgdel.obj)

Sentences error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBCD.lib(delete2.obj)

Sentences error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)

Sentences error LNK2019: unresolved external symbol __beginthreadex referenced in function "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z)

Code (to test):
CStringArray strSentences;
strSentences.Add("mary");
strSentences.Add("george");


Any idea why?

Jon
GeneralRe: dynamic array of strings Pin
Chris Losinger18-Jul-06 11:33
professionalChris Losinger18-Jul-06 11:33 
QuestionRe: dynamic array of strings Pin
jon-8019-Jul-06 5:39
professionaljon-8019-Jul-06 5:39 
AnswerRe: dynamic array of strings Pin
Chris Losinger19-Jul-06 5:46
professionalChris Losinger19-Jul-06 5:46 
QuestionRe: dynamic array of strings Pin
jon-8019-Jul-06 6:05
professionaljon-8019-Jul-06 6:05 
AnswerRe: dynamic array of strings Pin
Chris Losinger19-Jul-06 6:57
professionalChris Losinger19-Jul-06 6:57 
AnswerRe: dynamic array of strings Pin
Hamid_RT17-Jul-06 19:40
Hamid_RT17-Jul-06 19:40 
QuestionTreeview creation problem Pin
Alex Cutovoi17-Jul-06 8:57
Alex Cutovoi17-Jul-06 8:57 
AnswerRe: Treeview creation problem Pin
led mike17-Jul-06 10:49
led mike17-Jul-06 10:49 
AnswerRe: Treeview creation problem Pin
valikac17-Jul-06 10:56
valikac17-Jul-06 10:56 
GeneralRe: Treeview creation problem Pin
led mike17-Jul-06 11:01
led mike17-Jul-06 11:01 
QuestionClose Dialog Pin
Manjunath S17-Jul-06 8:14
Manjunath S17-Jul-06 8:14 
AnswerRe: Close Dialog Pin
valikac17-Jul-06 8:35
valikac17-Jul-06 8:35 
AnswerRe: Close Dialog Pin
David Crow17-Jul-06 9:49
David Crow17-Jul-06 9:49 
AnswerRe: Close Dialog Pin
Hamid_RT18-Jul-06 19:06
Hamid_RT18-Jul-06 19:06 
QuestionCommunicating with top level form from child forms Pin
mrhonus17-Jul-06 7:53
mrhonus17-Jul-06 7:53 
AnswerRe: Communicating with top level form from child forms Pin
William.Wang17-Jul-06 16:10
William.Wang17-Jul-06 16:10 
AnswerRe: Communicating with top level form from child forms Pin
Hamid_RT17-Jul-06 19:29
Hamid_RT17-Jul-06 19:29 

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.