Click here to Skip to main content
15,887,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: printf and unicode Pin
Matt Newman11-May-03 8:11
Matt Newman11-May-03 8:11 
GeneralRe: printf and unicode Pin
Chris Losinger11-May-03 11:10
professionalChris Losinger11-May-03 11:10 
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 
I'm new to this, but I have a problem I can't solve, and could do with some help please.

I'm writing an encrypted chat program with VC++ 6, which uses the Winsock API. The encryption is provided by Peter Gutmann's cryptlib library.

The problem is that the encryption process outputs a void pointer to a binary string variable, and sockets as far as I'm aware take a pointer to a character string. The cryptlib documentation suggests using the S/MIME format but I'm not writing an e-mail client/server, I just want to send the data through a socket, something like this:

send( mySocket, encryptedDataBuffer, 1024, 0 );

Is there a way I can convert the binary into a character sequence, send that and then convert it back at the recieving end?

Thanks in advance.

noxon
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 
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 

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.