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

C / C++ / MFC

 
QuestionExporting functions with strings Pin
mosquitooth26-Mar-06 1:49
mosquitooth26-Mar-06 1:49 
AnswerRe: Exporting functions with strings Pin
Giannakakis Kostas26-Mar-06 18:35
professionalGiannakakis Kostas26-Mar-06 18:35 
AnswerRe: Abstract dataype Pin
PJ Arends26-Mar-06 11:31
professionalPJ Arends26-Mar-06 11:31 
QuestionText Formatting Pin
Waldermort26-Mar-06 1:38
Waldermort26-Mar-06 1:38 
QuestionClass Creation Problem Pin
vin36925-Mar-06 23:52
vin36925-Mar-06 23:52 
AnswerRe: Class Creation Problem Pin
Stephen Hewitt26-Mar-06 12:14
Stephen Hewitt26-Mar-06 12:14 
Questionfont of barcode Pin
includeh1025-Mar-06 22:27
includeh1025-Mar-06 22:27 
QuestionBeginner's Guide to DirectX Pin
WhatNameHasn'tBeenTakenYet25-Mar-06 22:10
WhatNameHasn'tBeenTakenYet25-Mar-06 22:10 
I'm a complete beginner with C++. I'm trying to get some sample programs that use DirectX (specifically DDraw) to compile using VC++ 6, but it's making my head hurt. Is there an idiot's guide to exactly what I have to do set everything up? Or can someone help me?

So far I've:

Downloaded & installed DirectX SDK 10
Fired up VC++ 6 and:

Tools\Options\Directories - added the \SDK\Include path to the "Include files" drop down & added the \SDK\x64 and \SDK\x86 paths to the "Library files" drop down

Project\Settings\Link - added "ddraw.lib" to the "Object/Library modules"

Obviously something's wrong though, as the sample I'm trying to compile comes back with a "error C2146: syntax error : missing ';' before identifier 'lpdd'" when it gets to the first of the list of externals ("extern LPDIRECTDRAW4 lpdd; ")

I've combed the web to the best of my ability and there seems to be lots of advice on setting up Borland and DevC++ to use DirectX, but I can't find a word about Visual C - I assume I'm being stupid.
AnswerRe: Beginner's Guide to DirectX Pin
CaesarCZ25-Mar-06 23:06
CaesarCZ25-Mar-06 23:06 
GeneralRe: Beginner's Guide to DirectX Pin
WhatNameHasn'tBeenTakenYet25-Mar-06 23:52
WhatNameHasn'tBeenTakenYet25-Mar-06 23:52 
QuestionDisplaying float in MessageBox Pin
Steve Kelly25-Mar-06 20:59
Steve Kelly25-Mar-06 20:59 
AnswerRe: Displaying float in MessageBox Pin
Hamid_RT25-Mar-06 21:16
Hamid_RT25-Mar-06 21:16 
GeneralRe: Displaying float in MessageBox Pin
ThatsAlok26-Mar-06 17:59
ThatsAlok26-Mar-06 17:59 
AnswerRe: Displaying float in MessageBox Pin
Hamid_RT25-Mar-06 21:27
Hamid_RT25-Mar-06 21:27 
GeneralRe: Displaying float in MessageBox Pin
Steve Kelly25-Mar-06 21:38
Steve Kelly25-Mar-06 21:38 
GeneralRe: Displaying float in MessageBox Pin
Hamid_RT25-Mar-06 21:54
Hamid_RT25-Mar-06 21:54 
GeneralRe: Displaying float in MessageBox Pin
toxcct26-Mar-06 3:38
toxcct26-Mar-06 3:38 
GeneralRe: Displaying float in MessageBox Pin
Nish Nishant26-Mar-06 7:49
sitebuilderNish Nishant26-Mar-06 7:49 
GeneralRe: Displaying float in MessageBox Pin
toxcct26-Mar-06 20:31
toxcct26-Mar-06 20:31 
GeneralRe: Displaying float in MessageBox Pin
ThatsAlok26-Mar-06 18:01
ThatsAlok26-Mar-06 18:01 
GeneralRe: Displaying float in MessageBox Pin
normanS26-Mar-06 18:25
normanS26-Mar-06 18:25 
AnswerRe: Displaying float in MessageBox Pin
eli1502197926-Mar-06 1:44
eli1502197926-Mar-06 1:44 
QuestionProblem in Drag & Drop with Splitter Window Pin
Sarvan AL25-Mar-06 19:08
Sarvan AL25-Mar-06 19:08 
AnswerRe: Problem in Drag & Drop with Splitter Window Pin
Michael Dunn26-Mar-06 12:35
sitebuilderMichael Dunn26-Mar-06 12:35 
QuestionGetThreadContext always gives the same Context.Eip for all the threads of a program :( Pin
IvanovaIsGod25-Mar-06 18:38
IvanovaIsGod25-Mar-06 18:38 

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.