Search:

Type: Posts; User: Afrinux

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    2,424

    I second that. Thanks again for every thing.

    I second that. Thanks again for every thing.
  2. Replies
    24
    Views
    2,424

    I got it working with this:...

    I got it working with this:
    clPrgBar->CenterWindow( this );
    Thanks. By the way, are a Man Utd fan?
  3. Replies
    24
    Views
    2,424

    Hi novacain! Thanks for your help. Now it works....

    Hi novacain! Thanks for your help. Now it works.

    BOOL CDVDVideoSolutionDlg::showPrgBarDlg( void )
    {
    clPrgBar = new CProgressBar();
    if( clPrgBar->GetSafeHwnd())...
  4. Replies
    24
    Views
    2,424

    I have tried to follow your instructions, but I...

    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...
  5. Replies
    24
    Views
    2,424

    I made a silly mistake. I didnt try to finish to...

    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 );...
  6. Replies
    24
    Views
    2,424

    Hi onkirus! Thanks for your tips. Now the thread...

    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();...
  7. Replies
    24
    Views
    2,424

    Hi novacain. Thanks for the reply. I am having a...

    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...
  8. Replies
    24
    Views
    2,424

    Thanks okinrus, novacain! I was learning...

    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...
  9. Replies
    24
    Views
    2,424

    I have read somewhere, if an application is in a...

    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...
  10. Replies
    4
    Views
    829

    I have moved the topic here:...

    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
  11. Replies
    24
    Views
    2,424

    I originally posted this thread in the C++...

    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...
  12. Replies
    4
    Views
    829

    Hi Sebastiani and 7stud. Thanks for your...

    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
  13. Replies
    24
    Views
    2,424

    Need help developing an application

    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...
  14. Replies
    4
    Views
    829

    Need help for developing an application

    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...
  15. Replies
    7
    Views
    921

    getchar(); just before the return will do. ...

    getchar(); just before the return will do.


    int main( .., ...){
    //code

    getchar();
    return 0;
    }
  16. Replies
    15
    Views
    2,544

    Hi Dave! Thanks for your explanation. I have...

    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]...
  17. Replies
    15
    Views
    2,544

    Hi Dave! I have stayed the rest of my day trying...

    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...
  18. Replies
    15
    Views
    2,544

    1000 thanks DAVE :) Your code did what exactly...

    1000 thanks DAVE :) Your code did what exactly what I wanted to do.
  19. Replies
    15
    Views
    2,544

    Thanks, I will. I am still working on it. If I...

    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...
  20. Replies
    15
    Views
    2,544

    Why it is not a good example? I have taken a...

    Why it is not a good example?

    I have taken a new approach:


    //------------------------------------------------------------
    // Function: bGetDataBase...
  21. Replies
    15
    Views
    2,544

    Thank you Salem! If I understand what you are...

    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
  22. Replies
    15
    Views
    2,544

    Here is the code: I took it from different...

    Here is the code:
    I took it from different files. I am going to post the related part


    #define BYTE unsigned char

    //---------------------------------------------------

    typedef struct{...
  23. Replies
    15
    Views
    2,544

    You are right in this one. In my original code,...

    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...
  24. Replies
    15
    Views
    2,544

    Need some help regarding data structures

    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...
  25. A main() inside a function!?! Does this work?

    A main() inside a function!?! Does this work?
Results 1 to 25 of 46
Page 1 of 2 1 2