I second that. Thanks again for every thing.
Type: Posts; User: Afrinux
I second that. Thanks again for every thing.
I got it working with this:
clPrgBar->CenterWindow( this );
Thanks. By the way, are a Man Utd fan?
Hi novacain! Thanks for your help. Now it works.
BOOL CDVDVideoSolutionDlg::showPrgBarDlg( void )
{
clPrgBar = new CProgressBar();
if( clPrgBar->GetSafeHwnd())...
I have tried to follow your instructions, but I still have the same problem:
1. I created a dialog( enum { IDD = IDD_PROGRESS_BAR }; )
2. I put a progress bar on it
3. I created a class like...
I made a silly mistake. I didnt try to finish to the thread. With the following code, it works. Sorry for wasting your time.
TerminateThread( pStreamReadTask->m_hThread, NULL );...
Hi onkirus! Thanks for your tips. Now the thread can be deleted without the application crashing.
Here is the code:
Starting the Thread:
pStreamReadTask = new CDVDStreamReadTask();...
Hi novacain. Thanks for the reply.
I am having a compile error here m_ProgressBarDlg.Create(IDD_PROGRESSBAR_DLG,this);
After checking the function Create, it needs 4 parameters instead of 2 as...
Thanks okinrus, novacain!
I was learning threads. I have managed to create a worker thread that read the file.
Because of the nature of threads( still fuzzy in my head ), I left the idea of...
I have read somewhere, if an application is in a loop the memory usage is near to 100%. I used the Sleep() function in the loop to reduce the memory usage to 4%, but the application takes more time...
I have moved the topic here:
http://cboard.cprogramming.com/showthread.php?t=76477
Moderator: Would you please lock this thread. Thanks in advance.
Afrinux
I originally posted this thread in the C++ section. I was told that there is a windows section, and I have moved it here. Thanks for understanding
actually it is an mpeg file. I display the mpeg...
Hi Sebastiani and 7stud.
Thanks for your replies. I will post it in the windows sections.
And Sebastiani, I will make comments about your reply there.
Thanks for your time.
Afrinux
Hi all!
Here is the overview of the application I am trying to develop:
Platform: Windows XP, Visual C++ 6
Application type: MFC
Features: Read a file sector by sector ( 2048 bytes) and display...
Hi all!
Here is the overview of the application I am trying to develop:
Platform: Windows XP, Visual C++ 6
Application type: MFC
Features: Read a file sector by sector ( 2048 bytes) and display...
getchar(); just before the return will do.
int main( .., ...){
//code
getchar();
return 0;
}
Hi Dave!
Thanks for your explanation.
I have managed to find a solution for this data structure.
head = 4 bits
data_base[32-30] = 3 bits
pause_bit = 1 bit
data_base[29-15]...
Hi Dave!
I have stayed the rest of my day trying to figure out how you came up with this function, but still have no clue. Maybe I need a little rest .
I also want to use the same logic to extract...
1000 thanks DAVE :) Your code did what exactly what I wanted to do.
Thanks, I will. I am still working on it. If I get the results right, I will be back to post the final code.
Dave, yeah pretty interesting. It might solve my problem. I will try it too. If it...
Why it is not a good example?
I have taken a new approach:
//------------------------------------------------------------
// Function: bGetDataBase...
Thank you Salem!
If I understand what you are saying, using data structures is just a waste of time. It is better to use bitwise operators!?
Mas
Here is the code:
I took it from different files. I am going to post the related part
#define BYTE unsigned char
//---------------------------------------------------
typedef struct{...
You are right in this one.
In my original code, I didnt use unsigned char
I wrote it like this: #define BYTE unsigned char. So the original code was like BYTE head:2; ...
I was afraid taht if I...
Hi all!
I need some help regarding the following problem.
I have 6 bytes of data in the following order:
head = 2 bits
data_base[32-30] = 3 bits
pause_bit = 1 bit...
A main() inside a function!?! Does this work?