Click here to Skip to main content
16,011,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting Installed BHOs Pin
2249176-Jul-04 0:30
2249176-Jul-04 0:30 
GeneralRe: Getting Installed BHOs Pin
Liger_Zero_X6-Jul-04 0:56
Liger_Zero_X6-Jul-04 0:56 
GeneralRe: Getting Installed BHOs Pin
xcavin6-Jul-04 1:45
xcavin6-Jul-04 1:45 
GeneralRe: Getting Installed BHOs Pin
Liger_Zero_X6-Jul-04 2:11
Liger_Zero_X6-Jul-04 2:11 
GeneralRe: Getting Installed BHOs Pin
Michael P Butler6-Jul-04 1:44
Michael P Butler6-Jul-04 1:44 
GeneralRegisterDevice Pin
IceBerG715-Jul-04 23:05
IceBerG715-Jul-04 23:05 
Generalmalloc/free to new /delete error Pin
mcsherry5-Jul-04 22:45
mcsherry5-Jul-04 22:45 
GeneralRe: malloc/free to new /delete error Pin
Roger Allen6-Jul-04 4:08
Roger Allen6-Jul-04 4:08 
When you allocate memory using new, you are returned a pointer which is used as a reference in the delete call. In your allocation where you do

m = new flot*[size];

following this you do

m += NR_END

etc

This modifies you pointer address. You need to call delete on the same pointer that was given you by the new call.

As you are working with matrices, why not make use of a matrix class such as this one: Matrix class[^]



which handles automatic allocation and clean up and gives you access to all the regular operators for standard types too.

If you vote me down, my score will only get lower
GeneralRe: malloc/free to new /delete error Pin
mcsherry8-Jul-04 21:47
mcsherry8-Jul-04 21:47 
GeneralLR_DEFAULTSIZE|LR_LOADFROMFILE in WinCE Pin
Anonymous5-Jul-04 22:42
Anonymous5-Jul-04 22:42 
Questionhow to set CTabCtrl background color? Pin
alma5-Jul-04 22:41
alma5-Jul-04 22:41 
Generalinitailize parallel port Pin
Member 12191245-Jul-04 22:12
Member 12191245-Jul-04 22:12 
GeneralRe: initailize parallel port Pin
Rory Solley5-Jul-04 23:06
Rory Solley5-Jul-04 23:06 
GeneralRe: initailize parallel port Pin
Ryan Binns5-Jul-04 23:11
Ryan Binns5-Jul-04 23:11 
General#import for COM Dll Pin
Vaibhav Sanghavi5-Jul-04 21:44
Vaibhav Sanghavi5-Jul-04 21:44 
GeneralRe: #import for COM Dll Pin
Roger Stoltz5-Jul-04 22:13
Roger Stoltz5-Jul-04 22:13 
GeneralRe: #import for COM Dll Pin
Vaibhav...5-Jul-04 22:28
sussVaibhav...5-Jul-04 22:28 
GeneralRe: #import for COM Dll Pin
Roger Stoltz6-Jul-04 0:27
Roger Stoltz6-Jul-04 0:27 
GeneralRe: #import for COM Dll Pin
Vaibhav Sanghavi11-Jul-04 23:39
Vaibhav Sanghavi11-Jul-04 23:39 
GeneralRe: #import for COM Dll Pin
Roger Stoltz12-Jul-04 14:52
Roger Stoltz12-Jul-04 14:52 
GeneralRe: #import for COM Dll Pin
Vaibhav Sanghavi12-Jul-04 18:55
Vaibhav Sanghavi12-Jul-04 18:55 
GeneralRe: #import for COM Dll Pin
Michael P Butler6-Jul-04 1:17
Michael P Butler6-Jul-04 1:17 
GeneralMSHFlexgrid ~ custom Autoresize Pin
V.5-Jul-04 21:27
professionalV.5-Jul-04 21:27 
Generalinheritance Pin
xcavin5-Jul-04 21:11
xcavin5-Jul-04 21:11 
GeneralRe: inheritance Pin
bneacetp5-Jul-04 21:45
bneacetp5-Jul-04 21:45 

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.