The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MPEyeFinderApp.cpp File Reference

#include "stdafx.h"
#include "resource.h"
#include <atlbase.h>
#include <streams.h>
#include <initguid.h>
#include "DirectShow/MPDirectShow.h"
#include <cstdio>

Include dependency graph for MPEyeFinderApp.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define MAX_LOADSTRING   100
#define WM_GRAPHNOTIFY   WM_APP + 1

Functions

LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM)
void HandleEvent ()
BOOL InitInstance (HINSTANCE, int)
void Msg (TCHAR *szFormat,...)
ATOM MyRegisterClass (HINSTANCE hInstance)
int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)

Variables

BYTE bReturnImmediatelyFromCallback = 0
HINSTANCE hInst
MPDirectShow m_directShow
TCHAR szTitle [MAX_LOADSTRING]
TCHAR szWindowClass [MAX_LOADSTRING]


Define Documentation

#define MAX_LOADSTRING   100
 

Definition at line 12 of file MPEyeFinderApp.cpp.

#define WM_GRAPHNOTIFY   WM_APP + 1
 

Definition at line 38 of file MPEyeFinderApp.cpp.


Function Documentation

LRESULT CALLBACK About HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

void HandleEvent  ) 
 

Definition at line 168 of file MPEyeFinderApp.cpp.

00169 {
00170     long evCode, param1, param2;
00171     HRESULT hr;
00172 
00173 }

BOOL InitInstance HINSTANCE  ,
int 
 

void Msg TCHAR *  szFormat,
  ...
 

Definition at line 264 of file MPEyeFinderApp.cpp.

00265 {
00266     TCHAR szBuffer[1024];  // Large buffer for very long filenames (like HTTP)
00267 
00268     // Format the input string
00269 
00270         va_list pArgs;
00271     va_start(pArgs, szFormat);
00272     _vstprintf(szBuffer, szFormat, pArgs);
00273     va_end(pArgs);
00274 
00275     // Display a message box with the formatted string
00276     MessageBox(NULL, szBuffer, TEXT("First Grab Sample"), MB_OK);
00277 }

ATOM MyRegisterClass HINSTANCE  hInstance  ) 
 

int APIENTRY WinMain HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow
 

Definition at line 49 of file MPEyeFinderApp.cpp.

References InitInstance(), MAX_LOADSTRING, MyRegisterClass(), szTitle, and szWindowClass.

00053 {
00054         // TODO: Place code here.
00055         MSG msg;
00056         HACCEL hAccelTable;
00057 
00058         // Initialize global strings
00059         LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
00060         LoadString(hInstance, IDC_MPEYEFINDERAPP, szWindowClass, MAX_LOADSTRING);
00061         MyRegisterClass(hInstance);
00062 
00063         // Perform application initialization:
00064         if (!InitInstance (hInstance, nCmdShow))
00065         {
00066                 return FALSE;
00067         }
00068 
00069         hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_MPEYEFINDERAPP);
00070 
00071         // Main message loop:
00072         while (GetMessage(&msg, NULL, 0, 0))
00073         {
00074                 if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
00075                 {
00076                         TranslateMessage(&msg);
00077                         DispatchMessage(&msg);
00078                 }
00079         }
00080 
00081         return msg.wParam;
00082 }

Here is the call graph for this function:

LRESULT CALLBACK WndProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 


Variable Documentation

BYTE bReturnImmediatelyFromCallback = 0
 

Definition at line 43 of file MPEyeFinderApp.cpp.

HINSTANCE hInst
 

Definition at line 15 of file MPEyeFinderApp.cpp.

MPDirectShow m_directShow
 

Definition at line 40 of file MPEyeFinderApp.cpp.

TCHAR szTitle[MAX_LOADSTRING]
 

Definition at line 16 of file MPEyeFinderApp.cpp.

TCHAR szWindowClass[MAX_LOADSTRING]
 

Definition at line 17 of file MPEyeFinderApp.cpp.


Generated on Mon Nov 8 17:08:13 2004 for MPT by  doxygen 1.3.9.1