Click here to Skip to main content
16,010,876 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what does this mean: variable =! variable Pin
Eytukan13-Jun-08 21:21
Eytukan13-Jun-08 21:21 
AnswerRe: what does this mean: variable =! variable Pin
Vaclav_14-Jun-08 14:28
Vaclav_14-Jun-08 14:28 
AnswerRe: what does this mean: variable =! variable Pin
liuxianming200116-Jun-08 16:12
liuxianming200116-Jun-08 16:12 
QuestionNetJoinDomain-lm.h, lmjoin.h Pin
daavena13-Jun-08 8:12
daavena13-Jun-08 8:12 
AnswerRe: NetJoinDomain-lm.h, lmjoin.h Pin
Jijo.Raj13-Jun-08 10:19
Jijo.Raj13-Jun-08 10:19 
GeneralRe: NetJoinDomain-lm.h, lmjoin.h Pin
daavena13-Jun-08 10:46
daavena13-Jun-08 10:46 
GeneralRe: NetJoinDomain-lm.h, lmjoin.h Pin
Jijo.Raj13-Jun-08 19:45
Jijo.Raj13-Jun-08 19:45 
GeneralRe: NetJoinDomain-lm.h, lmjoin.h Pin
bob1697213-Jun-08 19:45
bob1697213-Jun-08 19:45 
daavena wrote:
but it's same


Not quite. If you'll notice the errors are different.

Error 1 error C2146: syntax error : missing ';' before identifier 'NET_API_FUNCTION' c:\program files\microsoft visual studio 8\vc\platformsdk\include\lmjoin.h 99

Error 1 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft visual studio 8\vc\platformsdk\include\lmaccess.h 46

it's now complaining about something in lmaccess.h so you've likely included the headers too high up in your stdafx.h file.

Make sure the includes are toward the bottom of the Wizard generated Include statements in stdafx.h to make sure the whole mess of other junk is in place before it attempts to include your api headers. Do a "rebuild all" to ensure everything gets taken into consideration.

// All wizard generated stuff should be above this
#include "Lm.h"
#include "Lmjoin.h"

#pragma comment(lib, "Netapi32")
GeneralRe: NetJoinDomain-lm.h, lmjoin.h Pin
daavena13-Jun-08 23:12
daavena13-Jun-08 23:12 
QuestionScroll bars Pin
Chandrasekharan P13-Jun-08 2:42
Chandrasekharan P13-Jun-08 2:42 
AnswerRe: Scroll bars Pin
Cedric Moonen13-Jun-08 3:11
Cedric Moonen13-Jun-08 3:11 
GeneralRe: Scroll bars Pin
Chandrasekharan P15-Jun-08 19:14
Chandrasekharan P15-Jun-08 19:14 
QuestionGetting cursor position in editbox and placing the text there??? Pin
VCProgrammer13-Jun-08 2:34
VCProgrammer13-Jun-08 2:34 
AnswerRe: Getting cursor position in editbox and placing the text there??? Pin
Cedric Moonen13-Jun-08 2:41
Cedric Moonen13-Jun-08 2:41 
GeneralRe: Getting cursor position in editbox and placing the text there??? Pin
VCProgrammer13-Jun-08 2:49
VCProgrammer13-Jun-08 2:49 
GeneralRe: Getting cursor position in editbox and placing the text there??? Pin
Rajesh R Subramanian13-Jun-08 2:50
professionalRajesh R Subramanian13-Jun-08 2:50 
GeneralRe: Getting cursor position in editbox and placing the text there??? Pin
Cedric Moonen13-Jun-08 2:55
Cedric Moonen13-Jun-08 2:55 
GeneralRe: Getting cursor position in editbox and placing the text there??? Pin
VCProgrammer13-Jun-08 2:56
VCProgrammer13-Jun-08 2:56 
GeneralRe: Getting cursor position in editbox and placing the text there??? Pin
bulg13-Jun-08 10:13
bulg13-Jun-08 10:13 
QuestionWin32 Timer and a C++ Class? Pin
Steffen Lange13-Jun-08 1:56
Steffen Lange13-Jun-08 1:56 
AnswerRe: Win32 Timer and a C++ Class? Pin
CPallini13-Jun-08 2:13
mveCPallini13-Jun-08 2:13 
AnswerRe: Win32 Timer and a C++ Class? Pin
Mark Salsbery13-Jun-08 5:39
Mark Salsbery13-Jun-08 5:39 
GeneralRe: Win32 Timer and a C++ Class? Pin
Steffen Lange14-Jun-08 9:05
Steffen Lange14-Jun-08 9:05 
GeneralRe: Win32 Timer and a C++ Class? Pin
Mark Salsbery14-Jun-08 10:03
Mark Salsbery14-Jun-08 10:03 
QuestionDialog window help Pin
Kwanalouie13-Jun-08 1:52
Kwanalouie13-Jun-08 1:52 

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.