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

C / C++ / MFC

 
GeneralError deleteing BYTE array Pin
Atif Mushtaq22-Oct-03 2:05
Atif Mushtaq22-Oct-03 2:05 
GeneralRe: Error deleteing BYTE array Pin
Ryan_Roberts22-Oct-03 2:26
Ryan_Roberts22-Oct-03 2:26 
GeneralRe: Error deleteing BYTE array Pin
Atif Mushtaq22-Oct-03 3:14
Atif Mushtaq22-Oct-03 3:14 
GeneralRe: Error deleteing BYTE array Pin
David Crow22-Oct-03 2:51
David Crow22-Oct-03 2:51 
GeneralRe: Error deleteing BYTE array Pin
Atif Mushtaq22-Oct-03 3:12
Atif Mushtaq22-Oct-03 3:12 
GeneralRe: Error deleteing BYTE array Pin
David Crow22-Oct-03 3:18
David Crow22-Oct-03 3:18 
GeneralRe: Error deleteing BYTE array Pin
Atif Mushtaq22-Oct-03 20:07
Atif Mushtaq22-Oct-03 20:07 
GeneralRe: Error deleteing BYTE array Pin
jhwurmbach22-Oct-03 21:23
jhwurmbach22-Oct-03 21:23 
You can also let someone else do the tiresome work of memory management: The STL:
By defining
std:vector<BYTE> buffer;
buffer resize(4000);
you get 4000 BYTEs of memory with at
BYTE* adress = &buffer[0];
.
The length of the buffer is given by std::vector::size(), and you can reallocate using buffer.resize().
To free the memory, you can always let the buffer go out of scope.

Hope this does help you a little



Who is 'General Failure'? And why is he reading my harddisk?!?
GeneralRe: Error deleteing BYTE array Pin
David Crow23-Oct-03 2:31
David Crow23-Oct-03 2:31 
GeneralRe: Error deleteing BYTE array Pin
Atif Mushtaq26-Oct-03 18:35
Atif Mushtaq26-Oct-03 18:35 
GeneralRe: Error deleteing BYTE array Pin
David Crow27-Oct-03 5:03
David Crow27-Oct-03 5:03 
GeneralVisual C++ Project Model error reporting Pin
AdrianH22-Oct-03 0:41
AdrianH22-Oct-03 0:41 
QuestionHow to import recourses from other projects? Pin
d00_ape21-Oct-03 23:39
sussd00_ape21-Oct-03 23:39 
AnswerRe: How to import recourses from other projects? Pin
David Crow22-Oct-03 2:42
David Crow22-Oct-03 2:42 
GeneralRe: How to import recourses from other projects? Pin
d00_ape22-Oct-03 10:27
sussd00_ape22-Oct-03 10:27 
Generalsqaur root Pin
Aqeel Asghar21-Oct-03 21:25
Aqeel Asghar21-Oct-03 21:25 
GeneralRe: sqaur root Pin
Iain Clarke, Warrior Programmer21-Oct-03 23:02
Iain Clarke, Warrior Programmer21-Oct-03 23:02 
GeneralRe: square root Pin
David Crow22-Oct-03 2:39
David Crow22-Oct-03 2:39 
GeneralRe: sqaur root Pin
QuiJohn22-Oct-03 2:47
QuiJohn22-Oct-03 2:47 
General256 colors icon getting modified without a reason Pin
DaFrawg21-Oct-03 21:15
DaFrawg21-Oct-03 21:15 
GeneralRe: 256 colors icon getting modified without a reason Pin
Johnny ²21-Oct-03 21:44
Johnny ²21-Oct-03 21:44 
GeneralRe: 256 colors icon getting modified without a reason Pin
Atif Mushtaq22-Oct-03 20:16
Atif Mushtaq22-Oct-03 20:16 
GeneralRe: 256 colors icon getting modified without a reason Pin
DaFrawg27-Oct-03 1:53
DaFrawg27-Oct-03 1:53 
GeneralRe: Cbutton Pin
DaFrawg21-Oct-03 20:58
DaFrawg21-Oct-03 20:58 
GeneralTool Bar Pin
Neelesh K J Jain21-Oct-03 20:29
Neelesh K J Jain21-Oct-03 20:29 

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.