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

C / C++ / MFC

 
GeneralRe: PageFile Size Pin
matrixprogrammer26-Nov-03 16:55
matrixprogrammer26-Nov-03 16:55 
GeneralTreeview control for BOM Pin
mmcsherr26-Nov-03 15:02
mmcsherr26-Nov-03 15:02 
Generalabout C++ Pin
Chau Ngoc Vo26-Nov-03 14:35
Chau Ngoc Vo26-Nov-03 14:35 
GeneralRe: about C++ Pin
Christian Graus26-Nov-03 15:24
protectorChristian Graus26-Nov-03 15:24 
GeneralRe: about C++ Pin
Joe Woodbury26-Nov-03 16:39
professionalJoe Woodbury26-Nov-03 16:39 
GeneralRe: about C++ Pin
Phil Hamer26-Nov-03 18:35
Phil Hamer26-Nov-03 18:35 
GeneralRe: about C++ Pin
Prakash Nadar26-Nov-03 21:25
Prakash Nadar26-Nov-03 21:25 
GeneralCryptoApi CryptEncrypt returning a smaller size Pin
(Steven Hicks)n+126-Nov-03 14:32
(Steven Hicks)n+126-Nov-03 14:32 
dwLength = sizeof(TCHAR)*_tcslen(m_tContents);

BYTE *pbBuffer = (BYTE *)malloc(dwLength);
if (pbBuffer != NULL)
{
memcpy(pbBuffer, m_tContents, dwLength);
if (CryptEncrypt(hKey, 0, TRUE, 0, pbBuffer, &dwLength, dwLength))
{
m_strResultingText.Format("%s",pbBuffer);
CString strShow;
strShow.Format("After: %s %d %d ", m_strResultingText, dwLength, m_strResultingText.GetLength());
MessageBox(strShow);
}

why does this show:
After: encrypted-text 2359 225


Its been really buging me (no pun intended)



-Steven Hicks

CPA

CodeProjectAddict

Actual Linux Penguins were harmed in the creation of this message.

More tutorials: Ltpb.8m.com: Tutorials |404Browser.com (Download Link)

GeneralRe: CryptoApi CryptEncrypt returning a smaller size Pin
Mike Dimmick27-Nov-03 2:49
Mike Dimmick27-Nov-03 2:49 
GeneralLPCWSTR function question Pin
Binayak26-Nov-03 12:26
Binayak26-Nov-03 12:26 
GeneralC++ question Pin
Cpudood26-Nov-03 12:08
Cpudood26-Nov-03 12:08 
GeneralRe: C++ question Pin
Joaquín M López Muñoz26-Nov-03 12:20
Joaquín M López Muñoz26-Nov-03 12:20 
Generaltextboxes in forms c++.net Pin
marmary26-Nov-03 11:34
marmary26-Nov-03 11:34 
GeneralCEdit does not show font smaller than 8pt. Pin
Yonatan26-Nov-03 11:08
Yonatan26-Nov-03 11:08 
GeneralCReBar RBN_AUTOSIZE Pin
alex.barylski26-Nov-03 10:53
alex.barylski26-Nov-03 10:53 
QuestionRight way to get ASCII value of a character? Pin
Kuniva26-Nov-03 9:08
Kuniva26-Nov-03 9:08 
AnswerRe: Right way to get ASCII value of a character? Pin
Johnny ²26-Nov-03 10:39
Johnny ²26-Nov-03 10:39 
GeneralRe: Right way to get ASCII value of a character? Pin
Kuniva26-Nov-03 23:41
Kuniva26-Nov-03 23:41 
QuestionAnimated bitmap/avi in main menu bar - how to do? Pin
iknowindigo26-Nov-03 8:43
iknowindigo26-Nov-03 8:43 
AnswerRe: Animated bitmap/avi in main menu bar - how to do? Pin
Michael Dunn26-Nov-03 10:33
sitebuilderMichael Dunn26-Nov-03 10:33 
AnswerRe: Animated bitmap/avi in main menu bar - how to do? Pin
alex.barylski26-Nov-03 10:42
alex.barylski26-Nov-03 10:42 
GeneralRe: Animated bitmap/avi in main menu bar - how to do? Pin
Prakash Nadar26-Nov-03 16:01
Prakash Nadar26-Nov-03 16:01 
GeneralProblem with manually editing a .rc file Pin
Kevin McFarlane26-Nov-03 6:40
Kevin McFarlane26-Nov-03 6:40 
GeneralRe: Problem with manually editing a .rc file Pin
Mike Dimmick26-Nov-03 6:46
Mike Dimmick26-Nov-03 6:46 
GeneralRe: Problem with manually editing a .rc file Pin
Kevin McFarlane26-Nov-03 23:26
Kevin McFarlane26-Nov-03 23:26 

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.