Click here to Skip to main content
16,006,828 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFaster way to do input Pin
Richard Cheng6-Apr-01 11:30
Richard Cheng6-Apr-01 11:30 
GeneralRe: Faster way to do input Pin
Christian Graus6-Apr-01 12:59
protectorChristian Graus6-Apr-01 12:59 
GeneralRemote Control InterDev Pin
Adam Solesby6-Apr-01 8:40
Adam Solesby6-Apr-01 8:40 
General3d object shadow and highlight colour Pin
6-Apr-01 2:40
suss6-Apr-01 2:40 
GeneralRe: 3d object shadow and highlight colour Pin
6-Apr-01 4:07
suss6-Apr-01 4:07 
GeneralStarting a Program from Command Line Pin
5-Apr-01 23:41
suss5-Apr-01 23:41 
GeneralRe: Starting a Program from Command Line Pin
Berry van Olphen5-Apr-01 23:47
professionalBerry van Olphen5-Apr-01 23:47 
GeneralLink Error--Please Help me !! (SOS) Pin
5-Apr-01 21:43
suss5-Apr-01 21:43 
I have a Code which compiles well; But when I build the Exe file It gives me the following Link Errors:
***********************************************************************
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/testbug.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
testbug.exe - 2 error(s), 0 warning(s)

I have NO CLUE What is going wrong and How to Fix it................Please Help me !!

The Code of the program is as follows:
**********************************************************88
#include<iostream>
#include<fstream>
#include<string.h>
#include<stddef.h>
#include<ctype.h>
#include<utility>
// get the STL stuff
#include <vector>
#include <iterator>
// this turns off a useless compiler warning
#pragma warning(disable:4786)
// a namespace is a C++ way of hiding class names.it helps prevent name collisions in large
// projects. "using namespace std" says that you want to use classes that are in the "std" namespace.
using namespace std ;
// same thing here...
using namespace std::rel_ops ;

int main()
{

ifstream infile("in_file");
if(!infile)
{cerr<<"Error, unable to open inputfile";
return -1;
}
else { cout<<"Congrats !!";
return 0;}
};
GeneralRe: Link Error--Please Help me !! (SOS) Pin
Berry van Olphen5-Apr-01 23:41
professionalBerry van Olphen5-Apr-01 23:41 
GeneralRe: Link Error--Please Help me !! (SOS) Pin
6-Apr-01 0:27
suss6-Apr-01 0:27 
Generalmfc - application Pin
5-Apr-01 21:08
suss5-Apr-01 21:08 
GeneralRe: mfc - application Pin
6-Apr-01 2:50
suss6-Apr-01 2:50 
GeneralPrinting question Pin
Richard Cheng5-Apr-01 12:22
Richard Cheng5-Apr-01 12:22 
GeneralRe: Printing question Pin
Christian Graus5-Apr-01 13:09
protectorChristian Graus5-Apr-01 13:09 
GeneralRe: Printing question Pin
Christian Graus5-Apr-01 13:09
protectorChristian Graus5-Apr-01 13:09 
GeneralRe: Printing question Pin
l a u r e n6-Apr-01 1:48
l a u r e n6-Apr-01 1:48 
GeneralRe: Printing question Pin
Ahmad7-Apr-01 0:34
Ahmad7-Apr-01 0:34 
GeneralOLE question Pin
5-Apr-01 8:42
suss5-Apr-01 8:42 
GeneralPassing an ADO _ConnectionPtr Pin
AndyC5-Apr-01 6:46
AndyC5-Apr-01 6:46 
GeneralDrawing Pin
5-Apr-01 6:16
suss5-Apr-01 6:16 
GeneralRe: Drawing Pin
Chris Losinger5-Apr-01 7:06
professionalChris Losinger5-Apr-01 7:06 
GeneralRe: Drawing Pin
6-Apr-01 1:08
suss6-Apr-01 1:08 
GeneralRe: Drawing (aha......) Pin
6-Apr-01 6:47
suss6-Apr-01 6:47 
GeneralInstallShield fo VC++ 6 Pin
4-Apr-01 14:41
suss4-Apr-01 14:41 
GeneralRe: InstallShield fo VC++ 6 Pin
Christian Graus4-Apr-01 15:12
protectorChristian Graus4-Apr-01 15:12 

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.