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

C / C++ / MFC

 
AnswerRe: Using array of string values Pin
Simon Langdon13-Jun-13 4:14
Simon Langdon13-Jun-13 4:14 
AnswerRe: Using array of string values Pin
jeron113-Jun-13 4:16
jeron113-Jun-13 4:16 
AnswerRe: Using array of string values Pin
David Crow13-Jun-13 4:19
David Crow13-Jun-13 4:19 
AnswerRe: Using array of string values Pin
CPallini13-Jun-13 6:45
mveCPallini13-Jun-13 6:45 
AnswerRe: Using array of string values Pin
Freak3014-Jun-13 0:43
Freak3014-Jun-13 0:43 
QuestionHow to use user defined type in other function. Pin
Manoj739012-Jun-13 19:44
Manoj739012-Jun-13 19:44 
AnswerRe: How to use user defined type in other function. Pin
Richard MacCutchan12-Jun-13 21:05
mveRichard MacCutchan12-Jun-13 21:05 
GeneralRe: How to use user defined type in other function. Pin
Manoj739012-Jun-13 21:41
Manoj739012-Jun-13 21:41 
Here is my some part of my code....

XML
int my_encrypt()

{

    typedef EllipticCurve<263> ec_t;

    ec_t   myEllipticCurve(1,1);



ec_t::Point P = myEllipticCurve[2];

cout << "some point P = " << P << ", 2P = " << (P+P) << "\n";

int a = irand(1,myEllipticCurve.Degree()-1);

ec_t::Point Pa = a*G; // public key

cout << "Alice' public key Pa = " << a << "*" << G << " = " << Pa << endl;


C#
ec_t::Point Pk = a*Pb;

    ec_t::ffe_t c1( m1*Pk.x() );

    ec_t::ffe_t c2( m2*Pk.y() );


I need to return these three values (Pa, C1, C2) into my main function.


GeneralRe: How to use user defined type in other function. Pin
Richard MacCutchan12-Jun-13 22:29
mveRichard MacCutchan12-Jun-13 22:29 
GeneralRe: How to use user defined type in other function. Pin
CPallini12-Jun-13 23:26
mveCPallini12-Jun-13 23:26 
GeneralRe: How to use user defined type in other function. Pin
Manoj739013-Jun-13 23:54
Manoj739013-Jun-13 23:54 
GeneralRe: How to use user defined type in other function. Pin
CPallini14-Jun-13 0:42
mveCPallini14-Jun-13 0:42 
QuestionCapturing mouse input outside a dialog Pin
rbrunton12-Jun-13 7:19
rbrunton12-Jun-13 7:19 
GeneralRe: Capturing mouse input outside a dialog Pin
David Crow12-Jun-13 10:19
David Crow12-Jun-13 10:19 
GeneralRe: Capturing mouse input outside a dialog Pin
rbrunton12-Jun-13 11:04
rbrunton12-Jun-13 11:04 
GeneralRe: Capturing mouse input outside a dialog Pin
rbrunton12-Jun-13 11:11
rbrunton12-Jun-13 11:11 
AnswerRe: Capturing mouse input outside a dialog Pin
Erudite_Eric13-Jun-13 1:15
Erudite_Eric13-Jun-13 1:15 
AnswerRe: Capturing mouse input outside a dialog Pin
thanh_bkhn13-Jun-13 16:57
professionalthanh_bkhn13-Jun-13 16:57 
QuestionCToolTipCtrl with TTF_TRACK Flag won't disappear, SetDelayTime doesn't work? Pin
Falconapollo12-Jun-13 0:34
Falconapollo12-Jun-13 0:34 
QuestionLoadImage error Pin
_Flaviu11-Jun-13 22:04
_Flaviu11-Jun-13 22:04 
AnswerRe: LoadImage error Pin
Jochen Arndt11-Jun-13 22:58
professionalJochen Arndt11-Jun-13 22:58 
GeneralRe: LoadImage error Pin
_Flaviu11-Jun-13 23:24
_Flaviu11-Jun-13 23:24 
GeneralRe: LoadImage error Pin
Jochen Arndt11-Jun-13 23:38
professionalJochen Arndt11-Jun-13 23:38 
GeneralRe: LoadImage error Pin
_Flaviu11-Jun-13 23:51
_Flaviu11-Jun-13 23:51 
GeneralRe: LoadImage error Pin
Jochen Arndt12-Jun-13 0:36
professionalJochen Arndt12-Jun-13 0:36 

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.