CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: jvr2

Page 1 of 6 1 2 3 4

Search: Search took 0.26 seconds.

  1. Re: Check if file is a video file, independent of file extension?

    You're right.
    So, I will probably have to create a list with extensions that are known to be associated with video. Maybe, the registry can be used for this ...
  2. Re: Check if file is a video file, independent of file extension?

    Or ... is there somewhere 'a list' of possible video types available on the computer (e.g. in the registry), or extensions that are associated with video files?

    Otherwise, I could check if the...
  3. Re: Check if file is a video file, independent of file extension?

    I should think that somehow there must be a way to do that ...

    Look at the Windows Explorer ...
    If you use the 'thumbnails' view mode, then a thumbnail of every image or video in the specified...
  4. Check if file is a video file, independent of file extension?

    Hello,

    I'm developing a player for video files using DirectX ...
    I would like the player to be able to access all files (so, not only files with the usual extensions like *.wmv, *.avi, *.mpg,...
  5. Replies
    7
    Views
    5,909

    Combining Notepad and Visual C++ ?

    Hello,

    I would like to open a new text file from within a function in C++, and write some data to it. But I don't succeed :(
    Important : I don't want to create a text file on disk, I want the...
  6. Replies
    4
    Views
    938

    Re: link background color of multiple cells

    It's not as simple as that.
    Recording a macro gives you something like this :


    Range("C40").Select
    With Selection.Interior
    .Pattern = xlSolid
    .PatternColorIndex = xlAutomatic...
  7. Replies
    4
    Views
    938

    link background color of multiple cells

    I have a problem while writing a macro in VBA in Excel.

    What I want to do 'looks' very simple : link the background color of 2 cells in a worksheet ...

    It can be compared with linking the...
  8. Re: Problems with creating a simple Excel-file from within C++ function

    This did help :

    http://support.microsoft.com/kb/308292/en-us
  9. Problems with creating a simple Excel-file from within C++ function

    Hello,

    If I push a button in my Visual C++ dialog box, I want to create a simple Excel-file …
    I thought it would be easy, but apparently, it isn’t!

    I’m using Microsoft Excel 2002, and I...
  10. Replies
    5
    Views
    1,818

    Re: Problem with StretchBlt and HALTONE

    initialize???

    I just call 'SetStretchBltMode' ...

    SetStretchBltMode((HDC)dc.GetSafeHdc(), HALFTONE);
  11. Replies
    5
    Views
    1,818

    Re: Problem with StretchBlt and HALFTONE

    Yes, I know ...
    But I did the following test : I saved those portions of the original image as new images.
    So, I got 2 new images :
    a) dimensions 144 x 113
    b) dimensions 144 x 114
    When I display...
  12. Replies
    5
    Views
    1,818

    Problem with StretchBlt and HALTONE

    Are there certain restrictions to the use of StretchBlt, regarding dimensions?

    I'm using the StretchBlt-function, HALFTONE-mode. It seemed to be working correctly, but now I discovered some...
  13. Thread: Key detection

    by jvr2
    Replies
    2
    Views
    578

    Perhaps by using the...

    Perhaps by using the PreTranslateMessage()-function ?
  14. Replies
    1
    Views
    1,273

    The following code does exactly what I want, but...

    The following code does exactly what I want, but I'm not sure it's the best way to achieve it ...



    void CMyWnd::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
    {
    int curpos =...
  15. Replies
    1
    Views
    1,273

    scrolling in Cwnd-derived class

    Hello,

    I'm having a problem with the implementation of scrollbars in a custom class, derived from CWnd.

    I created an object from the class in the OnInitDialog() member function :



    BOOL...
  16. Replies
    0
    Views
    386

    create setup file, register own filters

    Hello,

    I created an application in Microsoft Visual C++ .NET, using DirectX and GDIplus.
    I also created some DirectShow-filters.

    Now, I want to create a 'setup.exe' file to transfer the...
  17. Replies
    7
    Views
    791

    email notification from within application

    Hello,

    How can I send an email notification from within an application ?

    I have an application that will be running on a PC in another room. I would like the other PC to send an email to me if...
  18. Replies
    3
    Views
    2,179

    I knew that, but I guess I cannot use the return...

    I knew that, but I guess I cannot use the return value of the SuspendThread/ResumeThread functions !

    Suppose a thread is currently suspended. If I use ResumeThread () to check its return value,...
  19. Replies
    3
    Views
    2,179

    Thread suspended or not ?

    Hello,

    I'm writing a multithreaded application, using the CWinThread-class.

    I create a thread :


    m_pThread = AfxBeginThread(ThreadProc, this, THREAD_PRIORITY_NORMAL, 0, CREATE_SUSPENDED);...
  20. Replies
    11
    Views
    2,666

    I'll try it. Problem is : I already tried...

    I'll try it.

    Problem is : I already tried several constructions, but I always ended up with the system hanging ...

    Indeed, it's a good idea to put the commands into a queue if the system is...
  21. Replies
    11
    Views
    2,666

    No no, the factor has nothing to do with the...

    No no, the factor has nothing to do with the priority !

    I only needed a construction that made it possible that the thread could be completed without the user pressing one of the buttons.

    The...
  22. Replies
    11
    Views
    2,666

    Thank you very much for the effort !!!!! ...

    Thank you very much for the effort !!!!!

    Indeed, it seems to work that way.

    Now, I'm only a few steps away from a structure that I can use in my program.

    In the program you have written, you...
  23. Replies
    11
    Views
    2,666

    No, removing the PeekMessage() in the thread...

    No, removing the PeekMessage() in the thread doesn't make a difference.



    UINT TestProc(LPVOID pParam)
    {
    HANDLE hEvent = *(HANDLE*)pParam;

    bool bThreadDone = false;
    while...
  24. Replies
    11
    Views
    2,666

    Maybe the PeekMessage() isn't necessary in the...

    Maybe the PeekMessage() isn't necessary in the thread, I will try to remove it.

    But I suppose that isn't the cause of my problem, since the program passes the thread without any problem, and it...
  25. Replies
    11
    Views
    2,666

    thread : unexpected behaviour

    Hello,

    I'm having a problem with a thread construction.

    Below, you can find a sample thread.
    It's a simple thread that does ... nothing, except wait for an 'ending' command (passed by an...
Results 1 to 25 of 130
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured