Click here to Skip to main content
15,895,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: icon in task bar??? Pin
khan++12-Jul-05 20:15
khan++12-Jul-05 20:15 
AnswerRe: icon in task bar??? Pin
David Crow13-Jul-05 3:00
David Crow13-Jul-05 3:00 
Generaltroubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 19:43
firebolt7712-Jul-05 19:43 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Christian Graus12-Jul-05 19:50
protectorChristian Graus12-Jul-05 19:50 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Aamir Butt12-Jul-05 20:40
Aamir Butt12-Jul-05 20:40 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Christian Graus13-Jul-05 12:18
protectorChristian Graus13-Jul-05 12:18 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
khan++12-Jul-05 19:58
khan++12-Jul-05 19:58 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 20:19
firebolt7712-Jul-05 20:19 
I already change the source code..but it is still error. This is my source code:
#include<afx.h>
#include<stdio.h>
#include<memory.h>

int main()
{
CFile m_LogFile,m_DataFile;
char* a=NULL;
m_DataFile.Open("E:/data.txt", CFile::modeRead|CFile::shareDenyNone);
try
{
m_LogFile.Open("E:/data1.txt", CFile::modeWrite|CFile::modeRead|CFile::modeCreate|CFile::modeNoTruncate|CFile::shareDenyNone);
m_LogFile.SeekToEnd();
}
catch(CException* e)
{
e->ReportError();
e->Delete();
}
memset(a,0,m_DataFile.GetLength()+1);
m_DataFile.Read(a,m_DataFile.GetLength());
m_LogFile.Write(a,strlen(a));
return 0;
}

n the program generate these errors:
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/excel.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

excel.exe - 3 error(s), 0 warning(s)

n I don't understand what it's means...pls help.
thx
GeneralRe: troubles in making a filecopy program in visual c++ Pin
munawar196812-Jul-05 20:53
munawar196812-Jul-05 20:53 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 22:59
firebolt7712-Jul-05 22:59 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 3:06
David Crow13-Jul-05 3:06 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 3:11
David Crow13-Jul-05 3:11 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Bob Stanneveld13-Jul-05 4:19
Bob Stanneveld13-Jul-05 4:19 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 5:43
David Crow13-Jul-05 5:43 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Bob Stanneveld13-Jul-05 20:27
Bob Stanneveld13-Jul-05 20:27 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Trollslayer12-Jul-05 21:58
mentorTrollslayer12-Jul-05 21:58 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7712-Jul-05 23:09
firebolt7712-Jul-05 23:09 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
khan++12-Jul-05 23:11
khan++12-Jul-05 23:11 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Stlan12-Jul-05 23:26
Stlan12-Jul-05 23:26 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7713-Jul-05 3:53
firebolt7713-Jul-05 3:53 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Stlan13-Jul-05 3:59
Stlan13-Jul-05 3:59 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 5:45
David Crow13-Jul-05 5:45 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
David Crow13-Jul-05 3:18
David Crow13-Jul-05 3:18 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
Joe Woodbury13-Jul-05 8:10
professionalJoe Woodbury13-Jul-05 8:10 
GeneralRe: troubles in making a filecopy program in visual c++ Pin
firebolt7713-Jul-05 16:27
firebolt7713-Jul-05 16:27 

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.