Click here to Skip to main content
15,879,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using a Dialog as a Control in another Dialog Pin
Gary R. Wheeler11-Apr-10 1:14
Gary R. Wheeler11-Apr-10 1:14 
GeneralRe: Using a Dialog as a Control in another Dialog Pin
Bram van Kampen11-Apr-10 2:13
Bram van Kampen11-Apr-10 2:13 
GeneralRe: Using a Dialog as a Control in another Dialog Pin
Gary R. Wheeler11-Apr-10 13:22
Gary R. Wheeler11-Apr-10 13:22 
QuestionProblem with reading big amount of numbers from file Pin
vonpik10-Apr-10 13:18
vonpik10-Apr-10 13:18 
QuestionRe: Problem with reading big amount of numbers from file Pin
Tim Craig10-Apr-10 13:46
Tim Craig10-Apr-10 13:46 
AnswerRe: Problem with reading big amount of numbers from file Pin
vonpik10-Apr-10 14:11
vonpik10-Apr-10 14:11 
GeneralRe: Problem with reading big amount of numbers from file Pin
Tim Craig10-Apr-10 19:37
Tim Craig10-Apr-10 19:37 
GeneralRe: Problem with reading big amount of numbers from file Pin
vonpik11-Apr-10 12:16
vonpik11-Apr-10 12:16 
Maybe someone in the future will be searching solution for similar problem so I wrote it here.

So the problem is with stack array. Array is so large that it overflows the stack.
Solution is to use dynamically sized array. It can be vector class. In this example, it is sufficient to send pointer to function and in the sorting function working on vector. That's all.

//
Thanks to helios for helping me out
(from other cplusplus forum)
QuestionRe: Problem with reading big amount of numbers from file Pin
David Crow11-Apr-10 15:54
David Crow11-Apr-10 15:54 
AnswerRe: Problem with reading big amount of numbers from file Pin
vonpik13-Apr-10 10:05
vonpik13-Apr-10 10:05 
GeneralRe: Problem with reading big amount of numbers from file Pin
David Crow13-Apr-10 10:16
David Crow13-Apr-10 10:16 
GeneralRe: Problem with reading big amount of numbers from file Pin
vonpik16-Apr-10 3:43
vonpik16-Apr-10 3:43 
GeneralRe: Problem with reading big amount of numbers from file Pin
David Crow16-Apr-10 4:41
David Crow16-Apr-10 4:41 
Rant(*&#@*!^ Templates PinPopular
Tim Craig9-Apr-10 20:40
Tim Craig9-Apr-10 20:40 
GeneralWelcome Pin
CPallini10-Apr-10 4:43
mveCPallini10-Apr-10 4:43 
GeneralRe: Welcome Pin
Tim Craig10-Apr-10 21:30
Tim Craig10-Apr-10 21:30 
GeneralRe: (*&#@*!^ Templates Pin
Gary R. Wheeler11-Apr-10 1:31
Gary R. Wheeler11-Apr-10 1:31 
GeneralRe: (*&#@*!^ Templates Pin
Tim Craig11-Apr-10 9:36
Tim Craig11-Apr-10 9:36 
QuestionProblem in AT+CSCA command in AT commands. Pin
Le@rner9-Apr-10 19:29
Le@rner9-Apr-10 19:29 
Questionhow to implement three indepedent random number generators in the same subroutine/function Pin
mrby1239-Apr-10 17:34
mrby1239-Apr-10 17:34 
AnswerRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J9-Apr-10 18:09
Adam Roderick J9-Apr-10 18:09 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby1239-Apr-10 18:25
mrby1239-Apr-10 18:25 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
Adam Roderick J9-Apr-10 19:23
Adam Roderick J9-Apr-10 19:23 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function [modified] Pin
mrby1239-Apr-10 19:40
mrby1239-Apr-10 19:40 
GeneralRe: how to implement three indepedent random number generators in the same subroutine/function Pin
mrby12310-Apr-10 19:34
mrby12310-Apr-10 19:34 

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.