Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 7:24
Justin Tay8-Jul-06 7:24 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 8:17
Semion_N8-Jul-06 8:17 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 9:03
Justin Tay8-Jul-06 9:03 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 9:25
Semion_N8-Jul-06 9:25 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 9:32
Justin Tay8-Jul-06 9:32 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 9:44
Semion_N8-Jul-06 9:44 
QuestionExporting from a DLL Pin
Jay037-Jul-06 5:46
Jay037-Jul-06 5:46 
AnswerRe: Exporting from a DLL Pin
Zac Howland7-Jul-06 6:18
Zac Howland7-Jul-06 6:18 
Jay03 wrote:
class RTI_EXPORT RTIambassador


RTI_EXPORT is a preprocessor macro. When dealing with DLLs, there are some compiler directives you can use (instread of having *.def files) to say you are exporting (or importing) classes, variables, functions, etc. If you do a search for RTI_EXPORT, you should find it defined something like the following:

#ifdef _WINDLL
#define RTI_EXPORT __declspec(dllexport)
#else
#define RTI_EXPORT __declspec(dllimport)
#endif


What that does is allow the you to compile the DLL stating that this class is being exported while you can use the same header file in the application and state that the class is being imported.

Now, when writing DLLs for Windows applications (as opposed to so's for *Nix systems), you have to tell the compiler which symbols (variables, functions, classes, etc) are being exposed to be used by anyone wishing to use the library. At the same time, when you write an application that needs to use a DLL, you need to know which symbols are being imported so the linker knows what to do with them.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
QuestionUser Input Pin
Harold_Wishes7-Jul-06 5:26
Harold_Wishes7-Jul-06 5:26 
AnswerRe: User Input Pin
Zac Howland7-Jul-06 5:31
Zac Howland7-Jul-06 5:31 
GeneralRe: User Input Pin
Harold_Wishes7-Jul-06 5:51
Harold_Wishes7-Jul-06 5:51 
GeneralRe: User Input Pin
Zac Howland7-Jul-06 6:04
Zac Howland7-Jul-06 6:04 
GeneralRe: User Input Pin
Harold_Wishes7-Jul-06 7:06
Harold_Wishes7-Jul-06 7:06 
GeneralRe: User Input Pin
Zac Howland7-Jul-06 7:33
Zac Howland7-Jul-06 7:33 
GeneralRe: User Input Pin
Harold_Wishes7-Jul-06 10:08
Harold_Wishes7-Jul-06 10:08 
GeneralRe: User Input [modified] Pin
Zac Howland7-Jul-06 10:35
Zac Howland7-Jul-06 10:35 
GeneralRe: User Input [modified] Pin
Harold_Wishes8-Jul-06 17:36
Harold_Wishes8-Jul-06 17:36 
GeneralRe: User Input Pin
Zac Howland9-Jul-06 14:28
Zac Howland9-Jul-06 14:28 
QuestionSimple MAPI Outlook outbox problem Pin
chilituna7-Jul-06 4:45
chilituna7-Jul-06 4:45 
Questionostream operator link error Pin
mosu'7-Jul-06 4:33
mosu'7-Jul-06 4:33 
AnswerRe: ostream operator link error [modified] Pin
Viorel.7-Jul-06 4:45
Viorel.7-Jul-06 4:45 
AnswerRe: ostream operator link error Pin
Zac Howland7-Jul-06 5:11
Zac Howland7-Jul-06 5:11 
QuestionRun an application inside another one Pin
xtof737-Jul-06 4:03
xtof737-Jul-06 4:03 
AnswerRe: Run an application inside another one Pin
Sarath C7-Jul-06 4:25
Sarath C7-Jul-06 4:25 
GeneralRe: Run an application inside another one Pin
Zac Howland7-Jul-06 4:30
Zac Howland7-Jul-06 4:30 

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.