Re: Queries about DLL Exports
- From: "Mohammad Omer" <momer114@xxxxxxxxx>
- Date: 23 Nov 2006 05:52:41 -0800
is it possible to export variable and classes with using def file?
regards,
-aims
On Nov 21, 8:02 pm, "Doug Harrison [MVP]" <d...@xxxxxxxx> wrote:
On 21 Nov 2006 06:43:59 -0800, "Mohammad Omer" <momer...@xxxxxxxxx> wrote:
I am developing an application which has some logic in dll by exporting
function. My project is developing in vs2k5. I need some exported
global variables for use it. I was tried to use global variable by
using extern keyword, but it not working. Tells me, how I can access
global variable from dll?Look up __declspec dllexport and dllimport.
And if I define macro in dll then it's also
not accessible in others project. How I can access defines macro from
dll with out redefining?Macros are for use at compile-time, so #define them within your project.
I think this will be worked fine in case of shared memory, can we usea process exists in a single address space. This means that memory
shared memory concept in dll? But I am not having any idea about shared
memory between dll and project. Tell me some material for understand
the conceptual of shared memory between project's and dll's, and
implementation also as well.Modules (DLL and EXE) are linked together at runtime to form a process, and
accessible to one module is accessible to another module belonging to the
same process. Shared memory applies to different processes. I'm sure you
can find a lot of information in MSDN if you search on the term.
We use dll for exporting functions only (right??). Can we export
classes from dll's? If yes then how we can export from dll? With out
makes header file for Exporting things from dll in other project.Look up __declspec dllexport and dllimport.
--
Doug Harrison
Visual C++ MVP
.
- Follow-Ups:
- Re: Queries about DLL Exports
- From: Igor Tandetnik
- Re: Queries about DLL Exports
- References:
- Queries about DLL Exports
- From: Mohammad Omer
- Re: Queries about DLL Exports
- From: Doug Harrison [MVP]
- Queries about DLL Exports
- Prev by Date: What cause " stack overflow " ?
- Next by Date: Re: What cause " stack overflow " ?
- Previous by thread: Re: Queries about DLL Exports
- Next by thread: Re: Queries about DLL Exports
- Index(es):
Relevant Pages
|