Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_CLOSE message Pin
David Crow18-Oct-04 10:27
David Crow18-Oct-04 10:27 
GeneralCommunication between classes Pin
Kamis18-Oct-04 9:03
Kamis18-Oct-04 9:03 
GeneralRe: Communication between classes Pin
David Crow18-Oct-04 9:25
David Crow18-Oct-04 9:25 
GeneralRe: Communication between classes Pin
toxcct19-Nov-04 5:57
toxcct19-Nov-04 5:57 
GeneralRe: Communication between classes Pin
David Crow19-Nov-04 6:44
David Crow19-Nov-04 6:44 
GeneralRe: Communication between classes Pin
Ravi Bhavnani18-Oct-04 11:17
professionalRavi Bhavnani18-Oct-04 11:17 
GeneralRe: Communication between classes Pin
Kamis18-Oct-04 13:08
Kamis18-Oct-04 13:08 
GeneralDirectInput help - DirectInputCreate Function wont Work! Pin
InflatableGarfield18-Oct-04 8:36
InflatableGarfield18-Oct-04 8:36 
Hi,
Ive been learning how to use DirectInput for a small Win32 game Im making. Ive been looking at the article
http://www.gamedev.net/reference/articles/article607.asp
to get started.

I type in, as stated in the article, the function
DirectInputCreate. It looks like this:

DirectInputCreate(hInstance, DIRECTINPUT_VERSION, &lpdi, NULL);

Yet whenever I try to compile in C++ 6 I get the error:
'DirectInputCreate' : undeclared identifier

After searching the net I found the website:
http://www.mvps.org/directx/faq/directx_general_issues.htm#dinputcreate
It states:
"Compiling code for previous versions of DirectInput under DirectX 8, you must define a constant specifying the required version support prior to including dinput.h. Define DIRECTINPUT_VERSION to be equal to 0x300, 0x0500, or 0x0700"

I tried this and I get the same error message. This is really getting frustrating. Please help!

By the way I have definately included the DINPUT.H file.

Thanks for any help you can give!
GeneralRe: DirectInput help - DirectInputCreate Function wont Work! Pin
BlackDice18-Oct-04 10:48
BlackDice18-Oct-04 10:48 
GeneralRe: DirectInput help - DirectInputCreate Function wont Work! Pin
BlackDice18-Oct-04 11:06
BlackDice18-Oct-04 11:06 
GeneralRe: DirectInput help - DirectInputCreate Function wont Work! Pin
InflatableGarfield18-Oct-04 11:50
InflatableGarfield18-Oct-04 11:50 
QuestionHow to make MDI GUI like this? :doh: Pin
yesjacky18-Oct-04 8:35
yesjacky18-Oct-04 8:35 
AnswerRe: How to make MDI GUI like this? :doh: Pin
Maximilien18-Oct-04 8:55
Maximilien18-Oct-04 8:55 
GeneralRe: How to make MDI GUI like this? :doh: Pin
yesjacky18-Oct-04 9:16
yesjacky18-Oct-04 9:16 
GeneralRe: How to make MDI GUI like this? :doh: Pin
Maximilien18-Oct-04 9:30
Maximilien18-Oct-04 9:30 
AnswerRe: How to make MDI GUI like this? :doh: Pin
David Crow18-Oct-04 9:15
David Crow18-Oct-04 9:15 
GeneralRe: How to make MDI GUI like this? :doh: Pin
yesjacky18-Oct-04 9:27
yesjacky18-Oct-04 9:27 
Generalserial port comm. Pin
Anonymous18-Oct-04 8:29
Anonymous18-Oct-04 8:29 
GeneralChanging dynamically tooltip text on toolbar Pin
Exsilius18-Oct-04 4:21
Exsilius18-Oct-04 4:21 
GeneralRe: Changing dynamically tooltip text on toolbar Pin
Exsilius18-Oct-04 4:55
Exsilius18-Oct-04 4:55 
GeneralString to Command Pin
dSolariuM18-Oct-04 3:53
dSolariuM18-Oct-04 3:53 
GeneralRe: String to Command Pin
P-Rex18-Oct-04 4:28
P-Rex18-Oct-04 4:28 
GeneralRe: String to Command Pin
Antony M Kancidrowski18-Oct-04 5:57
Antony M Kancidrowski18-Oct-04 5:57 
Generalcreating a package Pin
nnvidya18-Oct-04 3:23
nnvidya18-Oct-04 3:23 
GeneralRe: creating a package Pin
shiraztk18-Oct-04 19:13
shiraztk18-Oct-04 19:13 

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.