Click here to Skip to main content
16,011,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVisual C 6 Webbrowser & Saving Webpages Pin
muckmail5-Mar-04 2:40
muckmail5-Mar-04 2:40 
GeneralRe: Visual C 6 Webbrowser & Saving Webpages Pin
Neville Franks5-Mar-04 10:47
Neville Franks5-Mar-04 10:47 
GeneralUnlocking a File or Volume Pin
mmica5-Mar-04 2:08
mmica5-Mar-04 2:08 
QuestionHow I show the *.mdb table content on the form? Pin
Emre Zorlu5-Mar-04 0:38
Emre Zorlu5-Mar-04 0:38 
AnswerRe: How I show the *.mdb table content on the form? Pin
includeh105-Mar-04 0:49
includeh105-Mar-04 0:49 
GeneralRe: How I show the *.mdb table content on the form? Pin
Emre Zorlu5-Mar-04 0:59
Emre Zorlu5-Mar-04 0:59 
GeneralRe: How I show the *.mdb table content on the form? Pin
l a u r e n5-Mar-04 8:23
l a u r e n5-Mar-04 8:23 
QuestionHow to compile DirectX in MFC Pin
includeh105-Mar-04 0:18
includeh105-Mar-04 0:18 
i use DirectX 6.1

following is a piece of code to be compiled

//inside a function
IDirectDraw*pdd;
HRESULT hr;
hr=::DirectDrawCreate(0,&pdd,0);
IDirectDraw4*ppd4;
hr=pdd->QueryInterface(IID_IDirectDraw4,(void**)&ppd4);
pdd->Release();

in win32 App, the code is compiled no problem.

but once in MFC, i got compile error:
*****************************************************
error LNK2001: unresolved external symbol _IID_IDirectDraw4
*****************************************************
to solve the error, i try all but none of them working,
following is includes and libs in CPP file:

#define INITGUID

#include <objbase.h>
#include <initguid.h>

#include <stdio.h>
#include <stdarg.h>
#include <windows.h>
#include <mmsystem.h>
#include <ddraw.h>

#pragma comment(lib,"ddraw.lib")
#pragma comment(lib,"ddraw.lib")
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"kernel32.lib")
#pragma comment(lib,"user32.lib")
#pragma comment(lib,"gdi32.lib")
#pragma comment(lib,"winspool.lib")
#pragma comment(lib,"comdlg32.lib")
#pragma comment(lib,"advapi32.lib")
#pragma comment(lib,"shell32.lib")
#pragma comment(lib,"ole32.lib")
#pragma comment(lib,"oleaut32.lib")
#pragma comment(lib,"uuid.lib")
#pragma comment(lib,"odbc32.lib")
#pragma comment(lib,"odbccp32.lib")
#pragma comment(lib,"dxguid.lib")

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

where is IID_IDirectDraw4 defined?
why no problem in win32, but trouble in MFC?

thx for any help












includeh10
AnswerRe: How to compile DirectX in MFC Pin
Anonymous5-Mar-04 3:02
Anonymous5-Mar-04 3:02 
GeneralRe: How to compile DirectX in MFC Pin
includeh105-Mar-04 11:31
includeh105-Mar-04 11:31 
GeneralText selection in CRichEditView Pin
MolleX4-Mar-04 23:40
MolleX4-Mar-04 23:40 
GeneralRe: Text selection in CRichEditView Pin
includeh105-Mar-04 0:34
includeh105-Mar-04 0:34 
GeneralRe: Text selection in CRichEditView Pin
MolleX5-Mar-04 0:50
MolleX5-Mar-04 0:50 
GeneralRe: Text selection in CRichEditView Pin
includeh105-Mar-04 0:54
includeh105-Mar-04 0:54 
GeneralRe: Text selection in CRichEditView Pin
MolleX5-Mar-04 1:19
MolleX5-Mar-04 1:19 
GeneralPhilips API Pin
samrenkazi4-Mar-04 23:29
samrenkazi4-Mar-04 23:29 
GeneralPing!!!! Pin
Ilamparithi4-Mar-04 23:04
Ilamparithi4-Mar-04 23:04 
GeneralRe: Ping!!!! Pin
Jörgen Sigvardsson4-Mar-04 23:17
Jörgen Sigvardsson4-Mar-04 23:17 
GeneralRe: Ping!!!! Pin
Prakash Nadar4-Mar-04 23:37
Prakash Nadar4-Mar-04 23:37 
GeneralRe: Ping!!!! Pin
Jörgen Sigvardsson5-Mar-04 0:32
Jörgen Sigvardsson5-Mar-04 0:32 
GeneralRe: Ping!!!! Pin
Prakash Nadar5-Mar-04 0:38
Prakash Nadar5-Mar-04 0:38 
GeneralRe: Ping!!!! Pin
Prakash Nadar5-Mar-04 0:40
Prakash Nadar5-Mar-04 0:40 
GeneralRe: Ping!!!! Pin
Ilamparithi5-Mar-04 1:18
Ilamparithi5-Mar-04 1:18 
GeneralProxy Problem Pin
miaoon here4-Mar-04 21:50
sussmiaoon here4-Mar-04 21:50 
Questiontechnique for assure, that a function is overwritten in c++?? Pin
schaereran@gmx.net4-Mar-04 21:36
schaereran@gmx.net4-Mar-04 21:36 

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.