Click here to Skip to main content
15,918,742 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: does CTreeCtrl have this function? Pin
Joel Lucsy7-May-02 11:33
Joel Lucsy7-May-02 11:33 
Questiondoes CTreeCtrl have this fuction? Pin
7-May-02 4:19
suss7-May-02 4:19 
AnswerRe: does CTreeCtrl have this fuction? Pin
Chris Losinger7-May-02 4:26
professionalChris Losinger7-May-02 4:26 
GeneralSome DLL questions !!! Pin
Hadi Rezaee7-May-02 4:15
Hadi Rezaee7-May-02 4:15 
GeneralRe: Some DLL questions !!! Pin
Chris Losinger7-May-02 4:27
professionalChris Losinger7-May-02 4:27 
GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 5:08
Hadi Rezaee7-May-02 5:08 
GeneralRe: Some DLL questions !!! Pin
Paul M Watt7-May-02 5:23
mentorPaul M Watt7-May-02 5:23 
GeneralRe: Some DLL questions !!! Pin
Paul M Watt7-May-02 5:20
mentorPaul M Watt7-May-02 5:20 
You are having a problem with the name mangling that the c++ compier does on functions. The compiler will generate and export this symbol instead:

SayHello@@YAXXZ

So if you want to call load library on this function, then you need to ask for that symbol instead. If you chang the signature of the function, the mangling will change as well, so you will have to use the Depends tool that came VC++ to determine what the name of the exported symbol is.

If you would like to turn off name mangling for this function you can prepend your function definition with this:

extern "C" void SayHello();

About your second question, yes you will be able to use your functions from a DLL in Delphi or VB as long as you only declare functions, if you would like to use a class that you exported from an MFC or a C++ DLL then you will need to create a COM component to represent that class. Also, I would recommend turning off name mangling if you plan on using these functions in Delphi or VB.

Good Luck.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 6:19
Hadi Rezaee7-May-02 6:19 
GeneralRe: Some DLL questions !!! Pin
Paul M Watt7-May-02 7:31
mentorPaul M Watt7-May-02 7:31 
GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 9:52
Hadi Rezaee7-May-02 9:52 
GeneralRe: Some DLL questions !!! Pin
moliate7-May-02 8:52
moliate7-May-02 8:52 
GeneralRe: Some DLL questions !!! Pin
Hadi Rezaee7-May-02 9:48
Hadi Rezaee7-May-02 9:48 
GeneralRe: Some DLL questions !!! Pin
moliate7-May-02 11:00
moliate7-May-02 11:00 
GeneralRe: Some DLL questions !!! Pin
KarstenK8-May-02 0:23
mveKarstenK8-May-02 0:23 
GeneralCAnimateCtrl Problem... Pin
7-May-02 3:41
suss7-May-02 3:41 
GeneralRe: CAnimateCtrl Problem... Pin
Joaquín M López Muñoz7-May-02 6:01
Joaquín M López Muñoz7-May-02 6:01 
GeneralRe: CAnimateCtrl Problem... Pin
7-May-02 23:58
suss7-May-02 23:58 
GeneralRe: CAnimateCtrl Problem... Pin
KarstenK8-May-02 0:20
mveKarstenK8-May-02 0:20 
GeneralOut of Memory Pin
vinumpillai7-May-02 3:24
vinumpillai7-May-02 3:24 
GeneralProblems with setting access rights in Registry Pin
Grit7-May-02 3:18
Grit7-May-02 3:18 
GeneralRe: Problems with setting access rights in Registry Pin
Navin7-May-02 8:24
Navin7-May-02 8:24 
GeneralRe: Problems with setting access rights in Registry Pin
Grit7-May-02 8:39
Grit7-May-02 8:39 
GeneralControls' properties Pin
Vis7-May-02 2:19
Vis7-May-02 2:19 
GeneralRe: Controls' properties Pin
Michael Martin7-May-02 2:55
professionalMichael Martin7-May-02 2:55 

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.