Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: printf and unicode Pin
Matt Newman12-May-03 4:27
Matt Newman12-May-03 4:27 
Generala basic dll question Pin
transoft11-May-03 6:52
transoft11-May-03 6:52 
GeneralRe: a basic dll question Pin
Nish Nishant11-May-03 7:49
sitebuilderNish Nishant11-May-03 7:49 
GeneralRe: a basic dll question Pin
transoft11-May-03 8:19
transoft11-May-03 8:19 
GeneralRe: a basic dll question Pin
Matt Newman11-May-03 9:06
Matt Newman11-May-03 9:06 
Generalencrypted binary variable Pin
noxon11-May-03 6:03
noxon11-May-03 6:03 
GeneralRe: encrypted binary variable Pin
Nish Nishant11-May-03 7:44
sitebuilderNish Nishant11-May-03 7:44 
GeneralRe: encrypted binary variable Pin
noxon11-May-03 8:52
noxon11-May-03 8:52 
Thanks Nish,

that has cleared up the question of whether I can do it or not. Im glad it was you who answered, it was your tutorial that got me off the ground with Winsock when I started writing the prog.

According to Microsoft void and char pointers are interchangeable without having to cast the pointer. So I'm giving cryptlib a NULL pointer to a character string like so:

char* encryptedDataBuffer = NULL;<br />
<br />
cryptPushData etc...<br />
<br />
cryptPopData( cryptEnvelope, encryptedDataBuffer, encryptedDataBufferSize, &bytesCopied );


But when i then use the code to send it on the Socket:

send( mySocket, encryptedDataBuffer, 1024, 0 );

The program just falls over (crashes), this same function works with a plaitext character string, so if I can send the binary, do you think I need to convert it to a hexadecimal representation of the actual binary, or am I missing something (quite possible).

Many thanks for help.

noxon
Generalcompiling with gcc or g++ in unix Pin
Themis11-May-03 5:21
Themis11-May-03 5:21 
GeneralRe: compiling with gcc or g++ in unix Pin
Nick Parker11-May-03 5:32
protectorNick Parker11-May-03 5:32 
GeneralRe: compiling with gcc or g++ in unix Pin
Baris Kurtlutepe11-May-03 5:33
Baris Kurtlutepe11-May-03 5:33 
Generalhi Pin
kuhx198011-May-03 3:09
kuhx198011-May-03 3:09 
GeneralRe: hi Pin
kuhx198011-May-03 3:10
kuhx198011-May-03 3:10 
GeneralProblem with Thread and Main Window Pin
Atlence11-May-03 1:59
Atlence11-May-03 1:59 
GeneralRe: Problem with Thread and Main Window Pin
User 665811-May-03 2:10
User 665811-May-03 2:10 
GeneralRe: Problem with Thread and Main Window Pin
Neville Franks11-May-03 2:26
Neville Franks11-May-03 2:26 
GeneralRe: Problem with Thread and Main Window Pin
Atlence11-May-03 6:30
Atlence11-May-03 6:30 
GeneralRe: Problem with Thread and Main Window Pin
Nish Nishant11-May-03 4:24
sitebuilderNish Nishant11-May-03 4:24 
GeneralRe: Problem with Thread and Main Window Pin
valikac11-May-03 6:15
valikac11-May-03 6:15 
GeneralRe: Problem with Thread and Main Window Pin
Neville Franks11-May-03 8:45
Neville Franks11-May-03 8:45 
GeneralTextOut problems Pin
franklyflee11-May-03 0:36
franklyflee11-May-03 0:36 
GeneralRe: TextOut problems Pin
franklyflee11-May-03 1:04
franklyflee11-May-03 1:04 
GeneralRe: TextOut problems Pin
Joe Woodbury11-May-03 6:23
professionalJoe Woodbury11-May-03 6:23 
GeneralRe: TextOut problems Pin
franklyflee11-May-03 6:38
franklyflee11-May-03 6:38 
GeneralRe: TextOut problems Pin
Joe Woodbury11-May-03 6:52
professionalJoe Woodbury11-May-03 6: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.