Click here to Skip to main content
15,898,747 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Width of List Column Header Not to be Zero. Pin
Le@rner1-Jan-09 18:18
Le@rner1-Jan-09 18:18 
QuestionSetFont and TrackSelect Property of TreeCtrl not working together. Pin
Le@rner31-Dec-08 23:48
Le@rner31-Dec-08 23:48 
AnswerRe: SetFont and TrackSelect Property of TreeCtrl not working together. Pin
Jijo.Raj1-Jan-09 1:57
Jijo.Raj1-Jan-09 1:57 
GeneralRe: SetFont and TrackSelect Property of TreeCtrl not working together. Pin
Le@rner1-Jan-09 17:25
Le@rner1-Jan-09 17:25 
QuestionProblem Allocating the string? Pin
Dark_eye31-Dec-08 21:52
Dark_eye31-Dec-08 21:52 
AnswerRe: Problem Allocating the string? Pin
«_Superman_»31-Dec-08 22:24
professional«_Superman_»31-Dec-08 22:24 
GeneralRe: Problem Allocating the string? Pin
Dark_eye1-Jan-09 1:10
Dark_eye1-Jan-09 1:10 
AnswerRe: Problem Allocating the string? Pin
Jijo.Raj1-Jan-09 1:44
Jijo.Raj1-Jan-09 1:44 
Exactly at where does your application crash? Could you post the call stack and exact line? My findings are as follows.

Dark_eye wrote:
int size = FileSize(path);
char buffer[size];


You are allocating the buffer for the entire file on stack. For a file for 5.6 MB you are allocating that much on stack. Believe me, stack is precious! Wink | ;)

1) Allocate the buffer by using new.
char* buffer = new char[size];


2) if you get error while manipulating strings, then try using std::rope[^] which can withstand heavy strings. I guess, std::rope is not yet avaiable with visual studio STL implementation and you've to use STLPort[^] for that.

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: Problem Allocating the string? Pin
Dark_eye1-Jan-09 9:32
Dark_eye1-Jan-09 9:32 
GeneralRe: Problem Allocating the string? Pin
Luc Pattyn1-Jan-09 4:15
sitebuilderLuc Pattyn1-Jan-09 4:15 
Questionerror LNK2019: unresolved external symbol Pin
zhiyuan1631-Dec-08 21:37
zhiyuan1631-Dec-08 21:37 
AnswerRe: error LNK2019: unresolved external symbol Pin
«_Superman_»31-Dec-08 21:41
professional«_Superman_»31-Dec-08 21:41 
GeneralRe: error LNK2019: unresolved external symbol Pin
zhiyuan1631-Dec-08 21:55
zhiyuan1631-Dec-08 21:55 
GeneralRe: error LNK2019: unresolved external symbol Pin
zhiyuan1631-Dec-08 22:14
zhiyuan1631-Dec-08 22:14 
GeneralRe: error LNK2019: unresolved external symbol Pin
«_Superman_»31-Dec-08 22:21
professional«_Superman_»31-Dec-08 22:21 
QuestionExpand and Collpse Tree on Click of Enter key. Pin
Le@rner31-Dec-08 20:41
Le@rner31-Dec-08 20:41 
AnswerRe: Expand and Collpse Tree on Click of Enter key. Pin
Jijo.Raj1-Jan-09 12:27
Jijo.Raj1-Jan-09 12:27 
GeneralRe: Expand and Collpse Tree on Click of Enter key. Pin
Le@rner1-Jan-09 17:25
Le@rner1-Jan-09 17:25 
QuestionCan Debugger show the values in binary form? Pin
Joseph Marzbani31-Dec-08 20:04
Joseph Marzbani31-Dec-08 20:04 
AnswerRe: Can Debugger show the values in binary form? Pin
Nibu babu thomas31-Dec-08 23:09
Nibu babu thomas31-Dec-08 23:09 
AnswerRe: Can Debugger show the values in binary form? Pin
Jijo.Raj1-Jan-09 9:26
Jijo.Raj1-Jan-09 9:26 
GeneralRe: Can Debugger show the values in binary form? Pin
CPallini1-Jan-09 9:33
mveCPallini1-Jan-09 9:33 
GeneralRe: Can Debugger show the values in binary form? Pin
Jijo.Raj1-Jan-09 9:59
Jijo.Raj1-Jan-09 9:59 
GeneralRe: Can Debugger show the values in binary form? Pin
CPallini1-Jan-09 10:32
mveCPallini1-Jan-09 10:32 
QuestionApplication working fine but seems like system has hanged Pin
VCProgrammer31-Dec-08 20:01
VCProgrammer31-Dec-08 20:01 

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.