Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAbout Wizard based programs: Urgent Pin
parims9-Sep-05 0:19
parims9-Sep-05 0:19 
AnswerRe: About Wizard based programs: Urgent Pin
prasad_som9-Sep-05 0:55
prasad_som9-Sep-05 0:55 
QuestionResizing a window at runtime? Pin
Dominik Reichl8-Sep-05 23:17
Dominik Reichl8-Sep-05 23:17 
AnswerRe: Resizing a window at runtime? Pin
Mircea Puiu9-Sep-05 0:24
Mircea Puiu9-Sep-05 0:24 
AnswerRe: Resizing a window at runtime? Pin
Dominik Reichl9-Sep-05 0:43
Dominik Reichl9-Sep-05 0:43 
GeneralRe: Resizing a window at runtime? Pin
prasad_som9-Sep-05 0:59
prasad_som9-Sep-05 0:59 
GeneralRe: Resizing a window at runtime? Pin
Mircea Puiu9-Sep-05 1:16
Mircea Puiu9-Sep-05 1:16 
QuestionSchlsp.h Pin
sunit58-Sep-05 23:03
sunit58-Sep-05 23:03 
I am programing a Socket with SSL,so i m using various header files for encrytion,ssl protocol

#include <wincrypt.h>
#include <wintrust.h>
#include <Schnlsp.h>

(these header files r in stdafx.h)

when i compiling my program is showing errors,eg

c:\program files\microsoft visual studio\vc98\include\schnlsp.h(118) : error C2501: 'ALG_ID' : missing storage-class or type specifiers


when click on the error

typedef struct _SecPkgCred_SupportedAlgs
{
DWORD cSupportedAlgs;
ALG_ID *palgSupportedAlgs;
} SecPkgCred_SupportedAlgs, *PSecPkgCred_SupportedAlgs;

when i check this strucure in msdn i found data type ALG_ID is defined in the Wincrypt.h header file.

when i check wincrypt i found that a macro has to be define
#if(_WIN32_WINNT >= 0x0400)for using wincrypt.h

so i defined #define _WIN32_WINNT 0x0500 in stdafx.h before any header file is defined
now when i again compile the program

D:\sunit\controleon\Working\CSocket\sslsocket.cpp(611) : error C2039: 'dwFlags' : is not a member of '_SCHANNEL_CRED'

c:\program files\microsoft visual studio\vc98\include\schnlsp.h(129) : see declaration of '_SCHANNEL_CRED'

i found the struct _SCHANNEL_CRED in schnlsp.h file

typedef struct _SCHANNEL_CRED
{
DWORD dwVersion;
DWORD cCreds;
PCCERT_CONTEXT *paCred;
HCERTSTORE hRootStore;

DWORD cMappers;
struct _HMAPPER **aphMappers;

DWORD cSupportedAlgs;
ALG_ID *palgSupportedAlgs;

DWORD grbitEnabledProtocols;
DWORD dwMinimumCipherStrength;
DWORD dwMaximumCipherStrength;
DWORD dwSessionLifespan;

} SCHANNEL_CRED, *PSCHANNEL_CRED;

where as in msdn

typedef struct _SCHANNEL_CRED
{
DWORD dwVersion;
DWORD cCreds;
PCCERT_CONTEXT * paCred;
HCERTSTORE hRootStore;
DWORD cMappers;
struct _HMAPPER ** aphMappers;
DWORD cSupportedAlgs;
ALG_ID * palgSupportedAlgs;
DWORD grbitEnabledProtocols;
DWORD dwMinimumCipherStrength;
DWORD dwMaximumCipherStrength;
DWORD dwSessionLifespan;
DWORD dwFlags;
DWORD reserved;
} SCHANNEL_CRED, *PSCHANNEL_CRED;

as in my proram i m using dwFlags

i m not understanding where is the problem.
Thanx for any suggesstion




-- modified at 5:42 Friday 9th September, 2005
QuestionMessageBoxes defintion in RC File Pin
Identity Undisclosed8-Sep-05 21:40
Identity Undisclosed8-Sep-05 21:40 
AnswerRe: MessageBoxes defintion in RC File Pin
ThatsAlok8-Sep-05 21:56
ThatsAlok8-Sep-05 21:56 
GeneralRe: MessageBoxes defintion in RC File Pin
Identity Undisclosed8-Sep-05 23:15
Identity Undisclosed8-Sep-05 23:15 
AnswerRe: MessageBoxes defintion in RC File Pin
ThatsAlok8-Sep-05 23:36
ThatsAlok8-Sep-05 23:36 
GeneralRe: MessageBoxes defintion in RC File Pin
David Crow9-Sep-05 2:47
David Crow9-Sep-05 2:47 
QuestionHELP: VC 6.0, 7.0 to makefiles woes :S Pin
kevingpo8-Sep-05 21:36
kevingpo8-Sep-05 21:36 
AnswerRe: HELP: VC 6.0, 7.0 to makefiles woes :S Pin
David Crow9-Sep-05 2:54
David Crow9-Sep-05 2:54 
GeneralRe: HELP: VC 6.0, 7.0 to makefiles woes :S Pin
kevingpo10-Sep-05 11:12
kevingpo10-Sep-05 11:12 
QuestionWant UPNP Example Pin
danscort yu8-Sep-05 21:19
danscort yu8-Sep-05 21:19 
Questionwhy INVALID datatype for BLOB or CLOB Pin
snprani8-Sep-05 21:11
snprani8-Sep-05 21:11 
Questionmulti thread opengl Pin
cell518-Sep-05 20:55
cell518-Sep-05 20:55 
AnswerRe: multi thread opengl Pin
Bob Stanneveld9-Sep-05 0:59
Bob Stanneveld9-Sep-05 0:59 
QuestionRLE8 to BMP Pin
Zyziek8-Sep-05 20:30
Zyziek8-Sep-05 20:30 
QuestionFrench Win XP Pin
Identity Undisclosed8-Sep-05 20:05
Identity Undisclosed8-Sep-05 20:05 
AnswerRe: French Win XP Pin
toxcct8-Sep-05 21:06
toxcct8-Sep-05 21:06 
QuestionCListView Pin
study.sourabh8-Sep-05 20:00
study.sourabh8-Sep-05 20:00 
AnswerRe: CListView Pin
David Crow9-Sep-05 3:00
David Crow9-Sep-05 3:00 

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.