Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
RantRe: [Message Deleted] Pin
JudyL_MD23-Oct-08 9:30
JudyL_MD23-Oct-08 9:30 
QuestionPlease Help me !! Pin
Le@rner22-Oct-08 22:10
Le@rner22-Oct-08 22:10 
AnswerRe: Please Help me !! Pin
Roger Stoltz22-Oct-08 22:17
Roger Stoltz22-Oct-08 22:17 
GeneralRe: Please Help me !! Pin
Le@rner22-Oct-08 22:25
Le@rner22-Oct-08 22:25 
AnswerRe: Please Help me !! Pin
Roger Stoltz22-Oct-08 22:32
Roger Stoltz22-Oct-08 22:32 
GeneralRe: Please Help me !! Pin
Le@rner22-Oct-08 23:03
Le@rner22-Oct-08 23:03 
AnswerRe: Please Help me !! Pin
Roger Stoltz22-Oct-08 23:14
Roger Stoltz22-Oct-08 23:14 
AnswerRe: Please Help me !! Pin
king'ori23-Oct-08 3:14
king'ori23-Oct-08 3:14 
hi <your name="">, maybe you might not be conversant with threads or multithreading, which simply means, having many threads running at the same time, in one program, so am going to easily illustrate how you can overcome your problem using just one thread.
i advice you place your code for filling the list in a function then you call the function in the Oninitupdate or since you want the list loaded at progream start. this is better and clearer than filling so much code in the oninitUpdate() fiuntion.

so this is what we shall do, i hope you can tell the number of items you are putting in the list,

Put a progress control ,
Add a control variable to it, call it "m_ctlProgress" using the wizard.

//////////////////////
int nCounter = 0;
int nNumberOfRecords = <your number="" of="" records="">
ctlProgress.SetRange(0,nNumberOfRecords );

for <loop trough="" your="" data="" as="" you="" fill="" list="">
{
//////////////////////////

Your filling code here

/////////////////////////
nCounter++;
m_ctlProgress.SetPos(nCounter);

}

then call the function from wherever, from the Oninit.. or when a certain button is clicked, etc
AnswerRe: Please Help me !! Pin
Roger Stoltz23-Oct-08 6:27
Roger Stoltz23-Oct-08 6:27 
Questionerror: LNK2001: unresolved external symbol "char Platform" (?Platform@@3DA) Pin
VCProgrammer22-Oct-08 21:45
VCProgrammer22-Oct-08 21:45 
AnswerRe: error: LNK2001: unresolved external symbol "char Platform" (?Platform@@3DA) Pin
CPallini22-Oct-08 22:17
mveCPallini22-Oct-08 22:17 
AnswerRe: error: LNK2001: unresolved external symbol "char Platform" (?Platform@@3DA) Pin
Nishad S22-Oct-08 22:18
Nishad S22-Oct-08 22:18 
Questionhow to show dialog box in maximized mode(size) after running the dailog based application? Pin
puppya22-Oct-08 21:07
puppya22-Oct-08 21:07 
AnswerRe: how to show dialog box in maximized mode(size) after running the dailog based application? Pin
SandipG 22-Oct-08 21:09
SandipG 22-Oct-08 21:09 
QuestionCant delete files from current ditectory.. [modified] Pin
m_mun22-Oct-08 20:24
m_mun22-Oct-08 20:24 
AnswerRe: Cant delete files from current ditectory.. Pin
KarstenK22-Oct-08 20:49
mveKarstenK22-Oct-08 20:49 
GeneralRe: Cant delete files from current ditectory.. Pin
m_mun22-Oct-08 20:55
m_mun22-Oct-08 20:55 
GeneralRe: Cant delete files from current ditectory.. Pin
KarstenK22-Oct-08 21:51
mveKarstenK22-Oct-08 21:51 
AnswerRe: Cant delete files from current ditectory.. Pin
SandipG 22-Oct-08 21:06
SandipG 22-Oct-08 21:06 
Questionconvert CString to SQLCHAR* Pin
anna mathew22-Oct-08 19:34
anna mathew22-Oct-08 19:34 
AnswerRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 20:05
professionalRajesh R Subramanian22-Oct-08 20:05 
GeneralRe: convert CString to SQLCHAR* Pin
CPallini22-Oct-08 21:50
mveCPallini22-Oct-08 21:50 
GeneralRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 22:58
professionalRajesh R Subramanian22-Oct-08 22:58 
JokeRe: convert CString to SQLCHAR* Pin
CPallini22-Oct-08 23:04
mveCPallini22-Oct-08 23:04 
GeneralRe: convert CString to SQLCHAR* Pin
Rajesh R Subramanian22-Oct-08 23:11
professionalRajesh R Subramanian22-Oct-08 23:11 

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.