Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 109,491 C++ Programmers for FREE! Ask your question and get quick answers from experts. There are 1,192 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



afx workaround

 
Reply to this topicStart new topic

afx workaround, Does such a thing exist?

Sublight
post 7 Aug, 2008 - 07:41 AM
Post #1


New D.I.C Head

*
Joined: 11 Jul, 2008
Posts: 8


My Contributions


Basically, I thought I'd make a cool little learning project, only the not-so-little project now appears to require more win32 know-how than I have. My short-run solution is to take a simple text-editor source code, rip it apart, insert my own stuff, and sew the whole Frankenstein mess up into a monstrosity that can both save and open files while doing my stuff. I can then dissect the beast at my leisure to learn which bits make make what things go.

The only tutorial I could find assumed Microsoft Visual C++ (professional) was being used: when I try running it in Dev C++ I get errors that afxwin.h, afxext.h, afxdisp.h, afxdtctl.h, and afxcmn.h could not be found.

I'd rather not simply abandon the project and pick a new, simpler one so:
Is there anyway to work around the afx___.h files?
Has anyone seen a make-a-text-editor tutorial for C++ that does not use afx files?

This post has been edited by Sublight: 7 Aug, 2008 - 07:43 AM
User is offlineProfile CardPM

Go to the top of the page


jwwicks
post 7 Aug, 2008 - 02:08 PM
Post #2


D.I.C Head

Group Icon
Joined: 31 Jul, 2008
Posts: 55



Thanked 5 times

Dream Kudos: 200
My Contributions


Hello Sublight,

QUOTE(Sublight @ 7 Aug, 2008 - 07:41 AM) *


I'd rather not simply abandon the project and pick a new, simpler one so:
Is there anyway to work around the afx___.h files?
Has anyone seen a make-a-text-editor tutorial for C++ that does not use afx files?


Depends on if the classes are using CObject etc... These files are generally all part of the ATL/MFC frameworks suppllied with the compiler. You could try downloading the Microsoft SDK. Or for a hack download and install the VS eval version and suck out the headers from the atlmfc directory etc...

The SDK is a better bet though..

If the classes don't use MFC/ATL etc... then just delete the include "afx.h"...

JW
User is online!Profile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 9/7/08 02:09PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month