|
From: Landon on 2 May 2008 02:45 How to call DLL file from Visual C++ 4.2? Thank you very much.
From: Joseph M. Newcomer on 2 May 2008 04:02 This question is far too vague to answer. For example, if you have a .lib file that was produced with it, then you would link your application with the .lib file. You would have a header file that went with it. But now things start to get interesting. For example, is it an MFC-based DLL, or strictly a C-based DLL? If it is C-based, does it use the DLL version of the CRT, or was it built with a statically-linked CRT? What version of the compiler was used to create the program that wants to call it? Without all kinds of critical data like this, it is impossible to begin to formulate an answer. Note that if is an MFC-based DLL, there is a very, very, very slight chance that it *might* work, but I would not assume this is feasible. Mostly, you can assume that if it is an MFC-based DLL, it is going to be impossible to call it from anything beyond VS6.0. An executable compiled in VS.NET and beyond will not even be able to generate the correct linkages types if a CString is involved, since CString changed substantially with VS.NET. You can safely assume that, in the absence of anything useful to describe what is going on, the answer is "this is going to be impossible", and anything above that should be considred as nothing short of miraculous. A pure-C DLL with a statically-linked CRT, however, is very likely to be usable, and work correctly, but it will depend upon how memory allocation and deallocation of objects are handled. Provide more information. joe On Thu, 1 May 2008 23:45:01 -0700, Landon <Landon(a)discussions.microsoft.com> wrote: >How to call DLL file from Visual C++ 4.2? > >Thank you very much. Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Ajay Kalra on 2 May 2008 15:18 On May 2, 2:45 am, Landon <Lan...(a)discussions.microsoft.com> wrote: > How to call DLL file from Visual C++ 4.2? > > Thank you very much. What does this mean? What sort of DLL is it? Is it a COM Server or another MFC DLL? Do you have its header files etc if its C++ DLL? -- Ajay
|
Pages: 1 Prev: a globally shared variable among dlls? Next: Displaying a monochrome bitmap |