Search:

Type: Posts; User: matth

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,182

    FYI: This code is being developed in MS Visual...

    FYI: This code is being developed in MS Visual C++ 6.0.

    I use the function with a void argument and void return. According to MSDN the function uses __cdecl calling convention and should have no...
  2. Replies
    2
    Views
    3,182

    SetThreadPriority

    I have spent a few days on this already...

    I am using _beginthread and _endthread, but I cannot correctly set the priority.

    !!!Does someone have a simple example of how to use...
  3. Replies
    1
    Views
    882

    Handle for the event

    I am using DirectX 9 and trying to synchronize events by using


    HRESULT WaitForVerticalBlank(
    DWORD dwFlags,
    HANDLE hEvent
    );


    How can I create a Handle for the event that should be...
  4. Thread: Display a .jpg

    by matth
    Replies
    1
    Views
    1,062

    Display a .jpg

    Hi,

    In a separate thread my program brings up a second window where it displays a rectangle then destroys the window.


    CFrameWnd *pSecondWin = new CFrameWnd;
    pSecondWin->Create(NULL,...
  5. Replies
    0
    Views
    1,028

    Create a Window from _beginthread

    I am trying to create a window from a thread. I currently am working in a Single Document Interface MFC program and would like to call CWnd::Create. I see that many parameters are needed, most of...
  6. Replies
    1
    Views
    4,196

    _beginthread & calling a class member function

    I have a class with public functions & member variables. Within one of its function definitions I am calling _beginthread to do a longer function. That longer functions is of that class from which...
  7. Replies
    0
    Views
    2,443

    Adding DShowLib::Grabber to a program

    Hello,

    I am using MS VC++ 6.0. I get errors that I don't understand. Each file compiles with 0 errors but when I go to Rebuild All I get this

    LINK : warning LNK4098: defaultlib "MSVCRT"...
  8. Call to new to create objects that go into a vector

    I don't have the code in front of me & I'm using a SDK. I will try to reproduce the code from memory. I need to know the best way release memory back from when I create new objects from calling...
  9. Replies
    1
    Views
    1,280

    error LNK2001: unresolved external symbol

    I am compiling code from someone else which was done on MSVC++ but I get, for example,

    error LNK2001: unresolved external symbol _get_app_size

    However the "get_app_size" is in the code. I...
  10. Replies
    4
    Views
    4,201

    Error using string class type

    My code is simple. This file is being added to a MSVC++ 6.0 program once I get past this error. Below you'll see the header and source file.



    #ifndef READCONFIGFILEH
    #define READCONFIGFILEH...
  11. Replies
    1
    Views
    1,101

    Standard Template Library

    I am using Microsoft Visual C++ 6.0 with the Intel C++ compilier 5.0. I was asked by a SDK support person which Standard Template Library I was using. How can I determin which Standard Template...
  12. Replies
    3
    Views
    1,068

    Each frame: struct PP *State = new PP

    I am writting a firewire video processing program and on each frame, I create a new structure with

    struct PP *State = new PP

    then I fill the struct as needed. After that, I laod it,...
  13. Thread: _beginthread()

    by matth
    Replies
    4
    Views
    1,490

    Thanks for the reply. In the code for the...

    Thanks for the reply. In the code for the thread, I set bThreadFunctCalled = true. If the thread was not called, then bThreadFunctCalled = false. I look in an output file that writes out variables...
  14. Thread: _beginthread()

    by matth
    Replies
    4
    Views
    1,490

    _beginthread()

    When I use _beginthread(), it doesn't run the thread everytime. Is there a way to be sure the call to another thread will run?

    Thanks,
    Matt
    :confused:


    ...
    else if((!bRewarded) &&...
  15. Replies
    0
    Views
    920

    Multiple theads to process video files

    I define an array of a structs. This function runs as its own thread to process firewire video frames; ring buffer: thread per frame. In the function, I fill the array with frame information. This...
  16. Replies
    3
    Views
    3,268

    read char *TimeStamp to make an __int64

    I am able to read everything into TimeStamp as a 0-255 value but I am unsure how to get the __int64 TimeStamp value from the char pointer.



    unsigned char *get_data(CString file_name, int*...
  17. Replies
    3
    Views
    3,268

    read data from file

    I am writing a program that opens a file and reads the data. But since the data information is organized in strange way, I don't know the best way to put this data into a vector.

    The data is...
  18. Replies
    0
    Views
    1,470

    Title and Icon On Window

    I have a C++ program, which is a single document MFC application. In the most upper-left corner, there is an icon and a title for the window. How can this be change to somthing I design myself? I...
  19. Replies
    3
    Views
    2,110

    Many Header Files

    I am developing an application using MSVC++ that is getting somewhat large. I make a new source and header file for each task I need to carry out. I don't know where to include all the header...
  20. Thread: FileName

    by matth
    Replies
    4
    Views
    1,069

    FileName

    Using MS Visual Studio C++

    I am using a function that I wrote which will create a string. The string will have the date & time which is preceeded by a letter that is a function arg to identify...
Results 1 to 20 of 20