I have created a MFC DLL, and everything works fine on the DLL side. But one the application side, the exported classes only work when they are declared in a function, and I have compiling errors when I declare them in a view or another class. What am I doing wrong?
shadowplayer
Posts
-
MFC DLL #2 -
MFC DLLI have two classes in a MFC DLL that use AFX_EXT_CLASS to export the classes (like below), but when I link it up to my application and include the header files for the classes I get a lot of errors (error C2228: left of '.Disconnect' must have class/struct/union type) - meaning the functions in the class don't have any code for them... but they should be in the DLL. Here are the classes I am trying to export. Any help would be good on what I am doing wrong, this is my first DLL experience. Thank you. class AFX_EXT_CLASS CFirstClass { } class AFX_EXT_CLASS CSecondClass { }
-
Windows XP RegistrationNot to be rude: Problem = HP... not good computer makers (printers are OK, but computers are not). HP doesn't use good quality parts (hard drive, disk drive, motherboards, memory, etc.), tech support is horrible (as you found out), and just overall not good computers/company. Unfortunately the way to go these days is make your own computer (if you know what you are doing), or order from Gateway, Dell, or some other computer maker that has good parts, good service, and full support. Again not to be rude, but you are not the only unhappy HP customer, I know many more. Even though I personally use Windows 2000, I have formatted and installed XP numerous times, with no problems. :((
-
Box ShotsI was wondering if anyone knew of any good programs that make box shots for software. I saw one a while ago, but I can not remeber where. Any help appreciated. Thank you.
-
Sticky NotesI am looking to create a sticky notes program for personal use. I am wondering if anyone has any leads or starts on how I can custom dialogs, kind of like Outlook Notes..... Anything would be great. Thank you.