Click here to Skip to main content
15,914,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRichEditView Text Pin
Frank Deo25-Jul-01 2:11
Frank Deo25-Jul-01 2:11 
GeneralRe: RichEditView Text Pin
25-Jul-01 2:42
suss25-Jul-01 2:42 
GeneralRe: RichEditView Text Pin
Frank Deo25-Jul-01 11:54
Frank Deo25-Jul-01 11:54 
QuestionHow can i ? Pin
Hadi Rezaee25-Jul-01 2:08
Hadi Rezaee25-Jul-01 2:08 
Generalprogram startup screen Pin
25-Jul-01 1:14
suss25-Jul-01 1:14 
GeneralRe: program startup screen Pin
Tomasz Sowinski25-Jul-01 1:37
Tomasz Sowinski25-Jul-01 1:37 
GeneralRe: program startup screen Pin
25-Jul-01 1:39
suss25-Jul-01 1:39 
GeneralOverriding the global "new" operator. Pin
25-Jul-01 1:10
suss25-Jul-01 1:10 
In VC++, is there any way to override the global "new" operator in a DLL and have other DLLs (which link together with this one) and the main program
(which links with all the project's DLLs) use this operator? If there is a way, I would appreciate seeing how it is done.

My attempts so far have produced the following conclusion:
If I add an overloaded "new" operator definition with an additional parameter,
e.g.
__declspec(dllimport) void * operator new(size_t , unsigned long);

There is no error, but as soon as I include the prototype definition of my "new" operator which contains only one argument:
__declspec(dllimport) void * operator new(size_t);

I get the following error:

error C2375: 'new' : redefinition; different linkage
C:\TEMP\a00238if(73) : see declaration of 'new'

If there is no way to do this in compile time, but there is a way in run-time, I would appreciate seeing how that is done, as well.



Thanks,

Jacob.
GeneralRe: Overriding the global Pin
Tomasz Sowinski25-Jul-01 1:43
Tomasz Sowinski25-Jul-01 1:43 
QuestionHow to get a word on screen by right mouse? Pin
trungnq25-Jul-01 0:18
trungnq25-Jul-01 0:18 
AnswerRe: How to get a word on screen by right mouse? Pin
Not Active25-Jul-01 3:52
mentorNot Active25-Jul-01 3:52 
GeneralRe: How to get a word on screen by right mouse? Pin
Tomasz Sowinski25-Jul-01 3:56
Tomasz Sowinski25-Jul-01 3:56 
GeneralRe: How to get a word on screen by right mouse? Pin
Christian Graus25-Jul-01 12:08
protectorChristian Graus25-Jul-01 12:08 
AnswerRe: How to get a word on screen by right mouse? Pin
august27-Jul-01 11:05
august27-Jul-01 11:05 
AnswerRe: How to get a word on screen by right mouse? Pin
august27-Jul-01 11:05
august27-Jul-01 11:05 
GeneralCRichEditCtrl scrolling Pin
25-Jul-01 0:16
suss25-Jul-01 0:16 
Generalmemory usage Pin
Farah Mansor25-Jul-01 0:11
Farah Mansor25-Jul-01 0:11 
GeneralRe: memory usage Pin
Gerry25-Jul-01 0:38
Gerry25-Jul-01 0:38 
GeneralRe: memory usage Pin
Farah Mansor25-Jul-01 15:15
Farah Mansor25-Jul-01 15:15 
GeneralRe: memory usage Pin
Steve Chou25-Jul-01 16:04
Steve Chou25-Jul-01 16:04 
GeneralConverting Jet 3.0 file to Jet 4.0 Pin
Doug Garno25-Jul-01 0:09
Doug Garno25-Jul-01 0:09 
GeneralRe: Converting Jet 3.0 file to Jet 4.0 Pin
Hadi Rezaee25-Jul-01 2:13
Hadi Rezaee25-Jul-01 2:13 
GeneralRe: Converting Jet 3.0 file to Jet 4.0 Pin
Doug Garno25-Jul-01 2:23
Doug Garno25-Jul-01 2:23 
GeneralRe: Converting Jet 3.0 file to Jet 4.0 Pin
Tomasz Sowinski25-Jul-01 2:33
Tomasz Sowinski25-Jul-01 2:33 
GeneralRe: Converting Jet 3.0 file to Jet 4.0 Pin
Doug Garno25-Jul-01 3:24
Doug Garno25-Jul-01 3:24 

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.