Click here to Skip to main content
15,905,616 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralUsing MS Mask Edit Control Pin
dipuks15-Feb-08 11:43
dipuks15-Feb-08 11:43 
GeneralRe: Using MS Mask Edit Control Pin
Joan M15-Feb-08 21:31
professionalJoan M15-Feb-08 21:31 
GeneralMFC regular DLL using shared MFC DLL module definition file (.def) question Pin
alchong15-Feb-08 8:49
alchong15-Feb-08 8:49 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
Mark Salsbery15-Feb-08 9:26
Mark Salsbery15-Feb-08 9:26 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
led mike15-Feb-08 11:33
led mike15-Feb-08 11:33 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
Rajesh R Subramanian15-Feb-08 20:10
professionalRajesh R Subramanian15-Feb-08 20:10 
GeneralRe: MFC regular DLL using shared MFC DLL module definition file (.def) question Pin
Mark Salsbery17-Feb-08 9:03
Mark Salsbery17-Feb-08 9:03 
GeneralC++ DLL Compatability Hell! Pin
Lea Hayes15-Feb-08 8:01
Lea Hayes15-Feb-08 8:01 
Hi,

I am working on a small game engine which is designed to work on multiple platforms when recompiled. At the moment I am targetting win32 and linux. Using Win32 with Visual C++ it is easily possible to create DLLs which export classes, objects, and functions. However I have some problems for which I would be really greatful if you guys advise me with.

The first problem is compatability with compilers:
I am told that DLL's compiled with Microsoft Visual C++ (without MFC) will not be compatible with other compilers such as Borland because of a technique called name decoration (or name mangling).

The second problem is compatability with platforms:
This is the first time I have attempted dynamic linking with linux/unix. I am fairly confident with dynamically accessing exported functions...but as far as classes and objects are conserned I think I am going to have a lot of problems with dynamic linking.

I have been searching extensively on the net, and I am gradually drowning in confusion Dead | X| . The only solutions I can find are pretty extreme:
- Convert all of my C++ libraries to ANSI C libraries. (defies some of my design objectives and generally not a good solution, but on the bright side some things would execute more efficiently)

- Find another low-level OOP language which does meet my needs. (makes my target audience smaller)

- Extend my scripting engine into a full-blown language by translating into assembly code and then assembling using a third-party assembler such as FASC. (a very big and complex task which i would rather avoid, but would stoop to if absolutely 100% necessary).

The ideal solution for me would be a standard name mangling convention (without the use of an interface which would seriously damage performance) which works across a wide range of platforms including win32 and linux/unix.

I look forward to hearing your ideas. Smile | :)
Lea Hayes
GeneralRe: C++ DLL Compatability Hell! Pin
Jim Crafton15-Feb-08 8:18
Jim Crafton15-Feb-08 8:18 
GeneralRe: C++ DLL Compatability Hell! Pin
Lea Hayes15-Feb-08 12:50
Lea Hayes15-Feb-08 12:50 
GeneralRe: C++ DLL Compatability Hell! Pin
Rajkumar R15-Feb-08 20:10
Rajkumar R15-Feb-08 20:10 
GeneralRe: C++ DLL Compatability Hell! Pin
Lea Hayes16-Feb-08 8:45
Lea Hayes16-Feb-08 8:45 
GeneralRe: C++ DLL Compatability Hell! Pin
Rajkumar R17-Feb-08 0:01
Rajkumar R17-Feb-08 0:01 
GeneralRe: C++ DLL Compatability Hell! Pin
Lea Hayes17-Feb-08 1:28
Lea Hayes17-Feb-08 1:28 
GeneralRe: C++ DLL Compatability Hell! Pin
Nemanja Trifunovic15-Feb-08 8:19
Nemanja Trifunovic15-Feb-08 8:19 
GeneralRe: C++ DLL Compatability Hell! Pin
Lea Hayes15-Feb-08 12:57
Lea Hayes15-Feb-08 12:57 
QuestionFind next child window in win32 api Pin
Jayapal Chandran15-Feb-08 6:52
Jayapal Chandran15-Feb-08 6:52 
QuestionRe: Find next child window in win32 api Pin
Rajesh R Subramanian15-Feb-08 7:22
professionalRajesh R Subramanian15-Feb-08 7:22 
QuestionRe: Find next child window in win32 api Pin
Jayapal Chandran15-Feb-08 9:13
Jayapal Chandran15-Feb-08 9:13 
AnswerRe: Find next child window in win32 api Pin
Rajesh R Subramanian16-Feb-08 4:40
professionalRajesh R Subramanian16-Feb-08 4:40 
GeneralRe: Find next child window in win32 api Pin
Jayapal Chandran22-Feb-08 6:13
Jayapal Chandran22-Feb-08 6:13 
GeneralRe: Find next child window in win32 api Pin
JudyL_MD15-Feb-08 7:23
JudyL_MD15-Feb-08 7:23 
GeneralRe: Find next child window in win32 api Pin
Jayapal Chandran15-Feb-08 9:16
Jayapal Chandran15-Feb-08 9:16 
GeneralRe: Find next child window in win32 api Pin
JudyL_MD15-Feb-08 9:24
JudyL_MD15-Feb-08 9:24 
GeneralRe: i am on it... Pin
Jayapal Chandran15-Feb-08 10:13
Jayapal Chandran15-Feb-08 10:13 

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.