Click here to Skip to main content
16,005,138 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi13-Sep-05 17:07
Hamed Musavi13-Sep-05 17:07 
AnswerRe: Great Trouble.Please, please Help. Even a simple link... Pin
charlieg13-Sep-05 17:15
charlieg13-Sep-05 17:15 
GeneralRe: Great Trouble.Please, please Help. Even a simple link... Pin
Hamed Musavi14-Sep-05 15:40
Hamed Musavi14-Sep-05 15:40 
QuestionVC 6.0 and Windows CE 5.0 Pin
Demian Panello13-Sep-05 12:52
Demian Panello13-Sep-05 12:52 
AnswerRe: VC 6.0 and Windows CE 5.0 Pin
charlieg13-Sep-05 16:58
charlieg13-Sep-05 16:58 
GeneralRe: VC 6.0 and Windows CE 5.0 Pin
Demian Panello14-Sep-05 1:00
Demian Panello14-Sep-05 1:00 
GeneralRe: VC 6.0 and Windows CE 5.0 Pin
charlieg14-Sep-05 2:43
charlieg14-Sep-05 2:43 
QuestionCryptAcquireContext fails on other machines Pin
KnaveR77713-Sep-05 12:52
KnaveR77713-Sep-05 12:52 
Hello All, I have an application that runs without error on my own system. Even in release mode Big Grin | :-D . However, when i run the application on other systems, my app reports to me that it was undable to aquire a crypt context (CryptAcquireContext) due to an invalid param.

This code is called in a simple C worker thread. Any Ideas?

<br />
UINT stringHash(byte* message, char* hash){<br />
DWORD hashLen = 16;<br />
<br />
HCRYPTPROV hCryptProv;<br />
HCRYPTHASH hHash;<br />
<br />
// zeroing just in case CryptAquireContext is getting garbage somehow<br />
<br />
ZeroMemory(&hCryptProv, sizeof(hCryptProv));<br />
ZeroMemory(&hHash,sizeof(hHash));<br />
<br />
BYTE hashedBytes[16];<br />
<br />
// Aquire Crypto Handle - fails<br />
<br />
if (!CryptAcquireContext(&hCryptProv, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL, 0)){<br />
CryptReleaseContext(hCryptProv,0);<br />
return GetLastError();<br />
}<br />
<br />
...<br />

AnswerRe: CryptAcquireContext fails on other machines Pin
HumanOsc13-Sep-05 23:34
HumanOsc13-Sep-05 23:34 
AnswerRe: CryptAcquireContext fails on other machines Pin
22491714-Sep-05 1:11
22491714-Sep-05 1:11 
QuestionASSERT((CWnd*)p == this) failed Pin
valerie9913-Sep-05 12:15
valerie9913-Sep-05 12:15 
AnswerRe: ASSERT((CWnd*)p == this) failed Pin
Weiye Chen13-Sep-05 16:26
Weiye Chen13-Sep-05 16:26 
GeneralRe: ASSERT((CWnd*)p == this) failed Pin
valerie9914-Sep-05 4:13
valerie9914-Sep-05 4:13 
AnswerRe: ASSERT((CWnd*)p == this) failed Pin
Tim Smith14-Sep-05 4:05
Tim Smith14-Sep-05 4:05 
GeneralThank you!!! This is it.....:) Pin
valerie9914-Sep-05 4:23
valerie9914-Sep-05 4:23 
Questionproblem getting function name Pin
gamitech13-Sep-05 11:33
gamitech13-Sep-05 11:33 
QuestionDetect changes made to dialog input fields Pin
Liu Shuai13-Sep-05 11:30
Liu Shuai13-Sep-05 11:30 
AnswerRe: Detect changes made to dialog input fields Pin
Christian Graus13-Sep-05 12:10
protectorChristian Graus13-Sep-05 12:10 
QuestionUsing common dialog box: Print Pin
bugDanny13-Sep-05 11:17
bugDanny13-Sep-05 11:17 
AnswerRe: Using common dialog box: Print Pin
Hamed Musavi13-Sep-05 16:26
Hamed Musavi13-Sep-05 16:26 
QuestionHow to get instance handle of an ActiveX control Pin
prcarp13-Sep-05 11:11
prcarp13-Sep-05 11:11 
QuestionHow to take advantage of .NET in MFC application Pin
DaNang13-Sep-05 7:07
DaNang13-Sep-05 7:07 
AnswerRe: How to take advantage of .NET in MFC application Pin
Nish Nishant13-Sep-05 8:09
sitebuilderNish Nishant13-Sep-05 8:09 
AnswerRe: How to take advantage of .NET in MFC application Pin
Chris Losinger13-Sep-05 8:10
professionalChris Losinger13-Sep-05 8:10 
QuestionPlatform SDK problen! Pin
rat.crown13-Sep-05 6:06
rat.crown13-Sep-05 6:06 

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.