Click here to Skip to main content
15,896,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 9:34
Peter Weyzen3-Oct-03 9:34 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 9:45
sjcomp3-Oct-03 9:45 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 9:55
Peter Weyzen3-Oct-03 9:55 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 10:06
sjcomp3-Oct-03 10:06 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 10:27
Peter Weyzen3-Oct-03 10:27 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 10:41
sjcomp3-Oct-03 10:41 
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 11:24
Peter Weyzen3-Oct-03 11:24 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp3-Oct-03 11:46
sjcomp3-Oct-03 11:46 
There is no need for two programs to change objects in DLL.

I want to enable plug-ins to modify objects, that are used by the main program. Plug-ins are loaded by the main program. Once plug-in is loaded I want to call a function from the plug-in and this function will do something, that changes objects in the main program (I could pass these objects as function parameters, but there is another way, because all sdk's do that). Example: My program draws a cube, cube has color for each side, I want that any plug-in could change these colors. So I create library (sdk.lib), which has definition of the cube class (CCube) and global instance of this class (CCube global_cube;). Then I create program, which setups window and calls global_cube.Draw() function. This works fine, but... I want to load a dll, which has function DoIt() and this function should call global_cube.ChangeColors(). This requires both main program and dll to refer to the same global_cube object.
And this is the point, where I have problems.

Regards,
Alexander.
GeneralRe: SDK creation (export of variables)? Pin
Peter Weyzen3-Oct-03 12:10
Peter Weyzen3-Oct-03 12:10 
AnswerRe: SDK creation (export of variables)? Pin
Gopalakrishna Palem3-Oct-03 19:18
Gopalakrishna Palem3-Oct-03 19:18 
GeneralRe: SDK creation (export of variables)? Pin
sjcomp4-Oct-03 7:01
sjcomp4-Oct-03 7:01 
GeneralRe: SDK creation (export of variables)? Pin
Gopalakrishna Palem4-Oct-03 14:39
Gopalakrishna Palem4-Oct-03 14:39 
AnswerRe: SDK creation (export of variables)? Pin
sjcomp6-Oct-03 4:19
sjcomp6-Oct-03 4:19 
GeneralPSAPI and Winsock Pin
Peter Weyzen3-Oct-03 9:24
Peter Weyzen3-Oct-03 9:24 
GeneralCFormView Issues! Pin
Steven M Hunt3-Oct-03 8:59
Steven M Hunt3-Oct-03 8:59 
GeneralRe: CFormView Issues! Pin
Maximilien3-Oct-03 9:09
Maximilien3-Oct-03 9:09 
GeneralRe: CFormView Issues! Pin
vcplusplus3-Oct-03 9:23
vcplusplus3-Oct-03 9:23 
GeneralFile Open Pin
Anonymous3-Oct-03 8:24
Anonymous3-Oct-03 8:24 
GeneralRe: File Open Pin
Steven M Hunt3-Oct-03 8:54
Steven M Hunt3-Oct-03 8:54 
GeneralRe: File Open Pin
pma3-Oct-03 8:54
pma3-Oct-03 8:54 
GeneralRe: File Open Pin
Anonymous3-Oct-03 9:07
Anonymous3-Oct-03 9:07 
GeneralRe: File Open Pin
Peter Weyzen3-Oct-03 9:35
Peter Weyzen3-Oct-03 9:35 
GeneralRe: File Open Pin
peterchen3-Oct-03 20:33
peterchen3-Oct-03 20:33 
GeneralRe: File Open Pin
David Crow3-Oct-03 10:10
David Crow3-Oct-03 10:10 
GeneralSNMP response time Pin
pma3-Oct-03 8:12
pma3-Oct-03 8:12 

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.