Click here to Skip to main content
16,010,553 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLoading .LIB file and .DLL into MFC App. Pin
E326-Nov-02 10:51
E326-Nov-02 10:51 
GeneralRe: Loading .LIB file and .DLL into MFC App. Pin
perlmunger26-Nov-02 12:16
perlmunger26-Nov-02 12:16 
GeneralRe: Loading .LIB file and .DLL into MFC App. Pin
E326-Nov-02 14:10
E326-Nov-02 14:10 
GeneralRe: Loading .LIB file and .DLL into MFC App. Pin
Roman Fadeyev26-Nov-02 19:33
Roman Fadeyev26-Nov-02 19:33 
GeneralHelp! determine if ADO Field is PK or FK Pin
devvvy26-Nov-02 10:34
devvvy26-Nov-02 10:34 
GeneralConverting C++ files to Visual C++ files Pin
Jennic26-Nov-02 8:26
Jennic26-Nov-02 8:26 
GeneralRe: Converting C++ files to Visual C++ files Pin
Paul M Watt26-Nov-02 9:12
mentorPaul M Watt26-Nov-02 9:12 
GeneralRe: Converting C++ files to Visual C++ files Pin
perlmunger26-Nov-02 12:08
perlmunger26-Nov-02 12:08 
If you know you are going to be puting this code in a GUI, then don't put it into a console application. You'll find yourself starting over unless you know exactly what to change in the project settings after the fact.

It's fairly simple to do what you want. Just create a GUI project (e.g. Dialog based, SDI, MDI). Then, with Windows Explorer, copy all of the files that you want to have in your project into the root directory of the GUI project you just created. Then, from the "File View" tab of the workspace in Visual Studio, right click on the project name, and select "Add file to project...". In the ensuing file dialog, Ctrl+Click all of the files (header and source) that you want to compile into your project. Then click "OK".

You should now be able to build the project assuming that your files build as is in a Win32/MFC environment.

The smart thing to do here, though, would be to put your code into a static library. Then you can keep it separate and re-usable for other projects. You don't have to do this, but it makes it a bit cleaner. If you need more information on how to do this, let me know and I'll provide you with some details.

Hope this helps.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralRe: Converting C++ files to Visual C++ files Pin
valikac26-Nov-02 15:37
valikac26-Nov-02 15:37 
QuestionProgramable State Machine, XML? Pin
Jawache26-Nov-02 6:35
Jawache26-Nov-02 6:35 
AnswerRe: Programable State Machine, XML? Pin
RedZenBird26-Nov-02 6:46
RedZenBird26-Nov-02 6:46 
Generala little lost with MainFrame Pin
NickOne26-Nov-02 6:32
NickOne26-Nov-02 6:32 
GeneralDrawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 6:25
Crercio O. Silva26-Nov-02 6:25 
GeneralRe: Drawing line conneting two dialogs Pin
Nick Parker26-Nov-02 6:33
protectorNick Parker26-Nov-02 6:33 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:08
Crercio O. Silva26-Nov-02 13:08 
GeneralRe: Drawing line conneting two dialogs Pin
Nick Parker26-Nov-02 17:06
protectorNick Parker26-Nov-02 17:06 
GeneralRe: Drawing line conneting two dialogs Pin
Scott H. Settlemier26-Nov-02 7:03
Scott H. Settlemier26-Nov-02 7:03 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:05
Crercio O. Silva26-Nov-02 13:05 
GeneralRe: Drawing line conneting two dialogs Pin
Maximilien26-Nov-02 7:46
Maximilien26-Nov-02 7:46 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva26-Nov-02 13:03
Crercio O. Silva26-Nov-02 13:03 
GeneralRe: Drawing line conneting two dialogs Pin
Maximilien26-Nov-02 15:20
Maximilien26-Nov-02 15:20 
GeneralRe: Drawing line conneting two dialogs Pin
Crercio O. Silva27-Nov-02 1:45
Crercio O. Silva27-Nov-02 1:45 
GeneralThreads Pin
Ruca26-Nov-02 5:59
Ruca26-Nov-02 5:59 
GeneralRe: Threads Pin
Roger Stewart26-Nov-02 6:23
professionalRoger Stewart26-Nov-02 6:23 
GeneralRe: Threads Pin
Ruca27-Nov-02 0:28
Ruca27-Nov-02 0:28 

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.