View Single Post
  #1  
Old 03-12-2007, 05:50 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 301
Karpagarajan is on a distinguished road
Thumbs up Visual C++ Tips & Tricks

About Microsoft Visual C++:

An application development tool developed by Microsoft for C++ programmers. Visual C++ supports object-oriented programming of 32-bit Windows applications with an integrated development environment (IDE), a C/C++ compiler, and a class library called the Microsoft Foundation Classes (MFC). The IDE includes an AppWizard, ClassWizard, and testing features to make programming easier. Visual C++ was introduced in 1993, and Release 4.0 became available in 1996.


Iam a Visual C++ developer and i have gained vast experience by working with this tool right from its introduction. Now i would like to share all my knowledge and experience through this website and i will be giving lots of Visual C++ Tips. I hope this will be helpful for the Visual C++ developers around the world. I will be contributing to this thread on a regular basis so please check back this thread regularly. If you are a Visual C++ beginner, you can join this community and ask me any queries you have in Visual C++ and i will be happy to help you out. If you are an experienced Visual C++ developer i welcome you to join the list of experts in this community to help others and share your knowledge.

Iam starting with a Visual C++ tip right now.

When i tried to create a dll in c using visual c++ compiler i received the errors below.

LNK2001: unresolved external symbol _main
Debug/windll.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.


Reason:

The problem is in creating a executable file
hence the compiler is looking for the main method..

Inorder to create a DLL file we have to some manipulation in the project properties. i.e open ur project properties window and select the link tab.Change the output file from exe to DLL and in the "Project Options" text box change the "subsytem console" to "dll"


thanks
__________________
Karpagarajan. R
Necessity is the mother of invention

Last edited by Booom : 08-22-2007 at 11:24 AM.
Reply With Quote