Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Create Bitmap from mousemovement in picturebox MFC Pin
Alain Rist12-Dec-10 10:00
Alain Rist12-Dec-10 10:00 
GeneralRe: Create Bitmap from mousemovement in picturebox MFC Pin
josipahutar13-Dec-10 7:21
josipahutar13-Dec-10 7:21 
GeneralRe: Create Bitmap from mousemovement in picturebox MFC Pin
David Crow13-Dec-10 8:01
David Crow13-Dec-10 8:01 
GeneralRe: Create Bitmap from mousemovement in picturebox MFC Pin
Alain Rist13-Dec-10 9:20
Alain Rist13-Dec-10 9:20 
Question[Solved] Speech sample not running.... [modified] Pin
AmbiguousName12-Dec-10 8:01
AmbiguousName12-Dec-10 8:01 
AnswerRe: Speech sample not running.... Pin
Richard MacCutchan12-Dec-10 9:37
mveRichard MacCutchan12-Dec-10 9:37 
AnswerRe: Speech sample not running.... Pin
Emilio Garavaglia12-Dec-10 9:42
Emilio Garavaglia12-Dec-10 9:42 
QuestionUsing Filtering Functions in Win32 App Pin
Coder-12345612-Dec-10 3:14
Coder-12345612-Dec-10 3:14 
Hi every one,

Have you ever saw minifilter driver source code in WinDDK examples?
I want to write a program like the user app that connects to driver but I want to make Win32 App with dialogs, ...
When I compile it, Free Build Environment reports errors.
for example this is a part of my code:
int WINAPI
WinMain (
    __in HINSTANCE hInstance,
    __in_opt HINSTANCE hPrevInstance,
    __in LPSTR lpCmdLine,
    __in int nCmdShow
)
{
    DWORD requestCount = SCANNER_DEFAULT_REQUEST_COUNT;
    DWORD threadCount = SCANNER_DEFAULT_THREAD_COUNT;
    SCANNER_THREAD_CONTEXT context;
    HANDLE port, completion;
    PSCANNER_MESSAGE msg;
    DWORD threadId;
    HRESULT hr;
    DWORD i, j;
/*Line 277*/HWND h;


    hr = FilterConnectCommunicationPort( ScannerPortName,
                                         0,
                                         NULL,
                                         0,
                                         NULL,
                                         port );

------------------------------------------------------------------------

And Free Build Environment reports:Confused | :confused:

BUILD: Compile and Link for x86
BUILD: Start time: Sun Dec 12 12:27:56 2010
BUILD: Examining d:\av-fsd2\test directory for files to compile.
    d:\av-fsd2\test Invalidating OACR warning log for 'root:x86fre'
BUILD: Compiling and Linking d:\av-fsd2\test directory
Configuring OACR for 'root:x86fre' - <OACR on>
Compiling resources - resource.rc
Compiling - test.c
1>errors in directory d:\av-fsd2\test
1>d:\av-fsd2\test\test.c(277) : error C2220: warning treated as error - no 'obje
ct' file generated
Linking Executable - objfre_win7_x86\i386\test.exe
1>link : error LNK1181: cannot open input file 'd:\av-fsd2\test\objfre_win7_x86\
i386\test.obj'
BUILD: Finish time: Sun Dec 12 12:27:57 2010
BUILD: Done
    4 files compiled - 5 Warnings - 1 Error
    1 executable built - 1 Error


------------------------------------------------------------------------

And this is the content of sources file:

TARGETNAME=test
TARGETTYPE=PROGRAM
TARGET_DESTINATION=dbg\layout
USE_MSVCRT=1
MSC_WARNING_LEVEL=/W4 /WX
MUI=0
MUI_COMMENT=TO_COMMENT, old disabled, owners need to contact MUICore to get new comment and comment code
UMTYPE=windows
UMENTRY=winmain
UMBASE=0x1000000
!if $(_NT_TARGET_VERSION) != $(_NT_TARGET_VERSION_WS03)  
# Use current headers (don't set _NT_TARGET_VERSION)
# Run downlevel to XP
SUBSYSTEM_VERSION=$(SUBSYSTEM_501)
!endif
C_DEFINES = $(C_DEFINES) -DUNICODE -D_UNICODE
INCLUDES=$(INCLUDES);         \
         $(IFSKIT_INC_PATH);  \
         $(DDK_INC_PATH);     \
         ..\inc
TARGETLIBS=\
        $(SDK_LIB_PATH)\kernel32.lib    \
        $(SDK_LIB_PATH)\user32.lib      \
        $(SDK_LIB_PATH)\gdi32.lib       \
        $(SDK_LIB_PATH)\comctl32.lib    \
        $(SDK_LIB_PATH)\cfgmgr32.lib    \
        $(SDK_LIB_PATH)\setupapi.lib
TARGETLIBS= $(TARGETLIBS) \
            $(IFSKIT_LIB_PATH)\fltMgr.lib
 
SOURCES=test.c \
        resource.rc


So does any body know how I can use windows user mode filtering functions in Win32 projects? (not in console mode)

Thanks
AnswerRe: Using Filtering Functions in Win32 App Pin
Niklas L12-Dec-10 3:23
Niklas L12-Dec-10 3:23 
GeneralRe: Using Filtering Functions in Win32 App Pin
Coder-12345612-Dec-10 5:07
Coder-12345612-Dec-10 5:07 
GeneralRe: Using Filtering Functions in Win32 App Pin
Niklas L12-Dec-10 8:09
Niklas L12-Dec-10 8:09 
GeneralRe: Using Filtering Functions in Win32 App Pin
Coder-12345612-Dec-10 21:27
Coder-12345612-Dec-10 21:27 
QuestionHow can use Socket Connection Timeout? Pin
Le@rner11-Dec-10 1:40
Le@rner11-Dec-10 1:40 
AnswerRe: How can use Socket Connection Timeout? Pin
yu-jian15-Dec-10 3:13
yu-jian15-Dec-10 3:13 
GeneralRe: How can use Socket Connection Timeout? Pin
Le@rner15-Dec-10 17:19
Le@rner15-Dec-10 17:19 
QuestionUser defined message , exeption at the handler return [modified] Pin
timbk10-Dec-10 3:05
timbk10-Dec-10 3:05 
AnswerRe: User defined message , exeption at the hander return Pin
Cool_Dev10-Dec-10 3:25
Cool_Dev10-Dec-10 3:25 
GeneralRe: User defined message , exeption at the hander return Pin
timbk10-Dec-10 4:09
timbk10-Dec-10 4:09 
AnswerRe: User defined message , exeption at the hander return Pin
Maximilien10-Dec-10 3:48
Maximilien10-Dec-10 3:48 
GeneralRe: User defined message , exeption at the hander return Pin
timbk10-Dec-10 4:24
timbk10-Dec-10 4:24 
AnswerRe: User defined message , exeption at the handler return Pin
«_Superman_»10-Dec-10 7:50
professional«_Superman_»10-Dec-10 7:50 
GeneralRe: User defined message , exeption at the handler return Pin
timbk10-Dec-10 7:56
timbk10-Dec-10 7:56 
AnswerAdded information Pin
timbk10-Dec-10 8:09
timbk10-Dec-10 8:09 
AnswerMore Added Info Pin
timbk10-Dec-10 9:30
timbk10-Dec-10 9:30 
GeneralRe: More Added Info Pin
Richard MacCutchan10-Dec-10 23:01
mveRichard MacCutchan10-Dec-10 23:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.