Click here to Skip to main content
15,886,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: edit control not responding in a dialog created within an activex control Pin
lakshman rao8-Nov-10 3:55
lakshman rao8-Nov-10 3:55 
GeneralRe: edit control not responding in a dialog created within an activex control Pin
lakshman rao18-Nov-10 23:47
lakshman rao18-Nov-10 23:47 
QuestionTranslate C-Code to Csharp Pin
djfresh8-Nov-10 2:16
djfresh8-Nov-10 2:16 
AnswerRe: Translate C-Code to Csharp Pin
Sauro Viti8-Nov-10 2:24
professionalSauro Viti8-Nov-10 2:24 
GeneralRe: Translate C-Code to Csharp Pin
djfresh8-Nov-10 2:51
djfresh8-Nov-10 2:51 
GeneralRe: Translate C-Code to Csharp Pin
Sauro Viti8-Nov-10 3:31
professionalSauro Viti8-Nov-10 3:31 
GeneralRe: Translate C-Code to Csharp Pin
djfresh8-Nov-10 3:47
djfresh8-Nov-10 3:47 
AnswerRe: Translate C-Code to Csharp Pin
Sauro Viti8-Nov-10 4:07
professionalSauro Viti8-Nov-10 4:07 
You have misunderstood the code:


  • The UuDecodeLength and UuEncodeLength functions get the length of a string as parameter and return the required length of the correspondant decoded/encoded string.
  • The UuDecode and UuEncode functions get three parameters: an output buffer, an input string and the length of the input string. They return the number of bytes written to the output buffer, and put on the output buffer the decoded/encoded version of the input string.


I tried this on my PC:

C++
int main(int argc, char* argv[])
{
   INT8U in = "12";
   INT8U* out = (INT8U*)malloc(UuEncodeLength(2));
   INT32U n = UuEncode(out, in, 2);

   // Put a breakpoint here and look what happened
   // Now n is 3 and inside out you find ",3(" i.e.:
   // out[0] = ','
   // out[1] = '3'
   // out[2] = '('

   free(out);
}

GeneralRe: Translate C-Code to Csharp Pin
djfresh9-Nov-10 2:12
djfresh9-Nov-10 2:12 
AnswerRe: Translate C-Code to Csharp Pin
Luc Pattyn8-Nov-10 4:07
sitebuilderLuc Pattyn8-Nov-10 4:07 
QuestionWhy SampleGrabber->SetOneShot(FALSE) fails with video files? Pin
Chesnokov Yuriy8-Nov-10 0:12
professionalChesnokov Yuriy8-Nov-10 0:12 
Question890817 - what's wrong with clicking on a control in a dockable pane? Pin
ilostmyid28-Nov-10 0:02
professionalilostmyid28-Nov-10 0:02 
AnswerRe: 890817 - what's wrong with clicking on a control in a dockable pane? Pin
Sauro Viti8-Nov-10 1:04
professionalSauro Viti8-Nov-10 1:04 
GeneralRe: 890817 - what's wrong with clicking on a control in a dockable pane? Pin
ilostmyid28-Nov-10 1:51
professionalilostmyid28-Nov-10 1:51 
GeneralRe: 890817 - what's wrong with clicking on a control in a dockable pane? Pin
Sauro Viti8-Nov-10 2:12
professionalSauro Viti8-Nov-10 2:12 
AnswerRe: 890817 - what's wrong with clicking on a control in a dockable pane? Pin
Sauro Viti8-Nov-10 2:18
professionalSauro Viti8-Nov-10 2:18 
GeneralRe: 890817 - what's wrong with clicking on a control in a dockable pane? Pin
ilostmyid28-Nov-10 18:03
professionalilostmyid28-Nov-10 18:03 
QuestionHow to use get the image's URL from web page Pin
yu-jian6-Nov-10 6:24
yu-jian6-Nov-10 6:24 
AnswerRe: How to use get the image's URL from web page Pin
«_Superman_»6-Nov-10 6:48
professional«_Superman_»6-Nov-10 6:48 
GeneralRe: How to use get the image's URL from web page Pin
yu-jian7-Nov-10 14:55
yu-jian7-Nov-10 14:55 
GeneralRe: How to use get the image's URL from web page Pin
«_Superman_»7-Nov-10 15:26
professional«_Superman_»7-Nov-10 15:26 
GeneralRe: How to use get the image's URL from web page Pin
yu-jian7-Nov-10 16:44
yu-jian7-Nov-10 16:44 
QuestionCopying Variants Pin
softwaremonkey5-Nov-10 23:59
softwaremonkey5-Nov-10 23:59 
AnswerRe: Copying Variants Pin
softwaremonkey6-Nov-10 0:42
softwaremonkey6-Nov-10 0:42 
QuestionRegEnumValue not return the correct values Pin
Arnon A5-Nov-10 12:39
Arnon A5-Nov-10 12:39 

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.