Click here to Skip to main content
15,913,669 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I need gSpan source code ( C or C++ ) Pin
linnumberone12-Feb-12 3:53
linnumberone12-Feb-12 3:53 
GeneralRe: I need gSpan source code ( C or C++ ) Pin
Albert Holguin12-Feb-12 9:13
professionalAlbert Holguin12-Feb-12 9:13 
QuestionCognizance Presents Insomnia : The Nocturnal Coding Life Pin
insomniaiitr10-Feb-12 23:05
insomniaiitr10-Feb-12 23:05 
QuestionRegister your program as PC's antivirus Pin
Brandon-X1200010-Feb-12 17:49
Brandon-X1200010-Feb-12 17:49 
AnswerRe: Register your program as PC's antivirus Pin
«_Superman_»12-Feb-12 17:55
professional«_Superman_»12-Feb-12 17:55 
GeneralRe: Register your program as PC's antivirus Pin
Brandon-X1200012-Feb-12 22:30
Brandon-X1200012-Feb-12 22:30 
GeneralRe: Register your program as PC's antivirus Pin
David Crow13-Feb-12 2:47
David Crow13-Feb-12 2:47 
QuestionTranslating the Mod Operator in VB to c++ check Pin
jkirkerx10-Feb-12 10:56
professionaljkirkerx10-Feb-12 10:56 
I just want to get a check to see if my translation of the Mod Operator in VB to c++ is even close to right, or if there is a c++ equivalent to Mod, where I can just use Mod or something close to it.

edit:
I'm not sure if the null terminate char will produce a different result in the c++.

So I have these lines of code to translate.

strTextChar = Mid(strDomainName, (i Mod Len(strDomainName)) + 1, 1)
strKeyChar = Mid(ApplicationName, (i Mod Len(ApplicationName)) + 1, 1)


//vb Mod Operator = a - (b * (a / b))
szTextChar = &szDomainName[ ( i - ( wcslen(szDomainName)) * (i / wcslen(szDomainName)) ) + 1 ];
szKeyChar = &pzApplicationName[ ( i - ( wcslen(szApplicationName)) * (i / wcslen(szApplicationName)) ) + 1 ];


I have this other line of code to translate, this one is more complex, just thought I would throw it out there. I took a peek at Xor, it's not quite sinking in yet.
strTextChar = Chr(Asc(strTextChar) Xor intTemp)

AnswerRe: Translating the Mod Operator in VB to c++ check Pin
Philippe Mori10-Feb-12 13:03
Philippe Mori10-Feb-12 13:03 
GeneralRe: Translating the Mod Operator in VB to c++ check Pin
jkirkerx10-Feb-12 13:14
professionaljkirkerx10-Feb-12 13:14 
AnswerNeed extra help on this Pin
jkirkerx11-Feb-12 8:56
professionaljkirkerx11-Feb-12 8:56 
AnswerRe: Translating the Mod Operator in VB to c++ check Pin
Dave Doknjas11-Feb-12 14:36
Dave Doknjas11-Feb-12 14:36 
GeneralRe: Translating the Mod Operator in VB to c++ check Pin
jkirkerx12-Feb-12 9:05
professionaljkirkerx12-Feb-12 9:05 
Questioncharacter counting and matching Pin
jkirkerx10-Feb-12 8:52
professionaljkirkerx10-Feb-12 8:52 
AnswerRe: character counting and matching Pin
Richard Andrew x6410-Feb-12 9:21
professionalRichard Andrew x6410-Feb-12 9:21 
GeneralRe: character counting and matching Pin
jkirkerx10-Feb-12 9:42
professionaljkirkerx10-Feb-12 9:42 
AnswerRe: character counting and matching Pin
Jochen Arndt10-Feb-12 22:33
professionalJochen Arndt10-Feb-12 22:33 
GeneralRe: character counting and matching Pin
jkirkerx11-Feb-12 7:41
professionaljkirkerx11-Feb-12 7:41 
AnswerRe: character counting and matching Pin
luckyxjb201018-Feb-12 19:05
luckyxjb201018-Feb-12 19:05 
QuestionAn application between bios and windows! Pin
candogu10-Feb-12 0:54
candogu10-Feb-12 0:54 
AnswerRe: An application between bios and windows! Pin
Richard MacCutchan10-Feb-12 0:59
mveRichard MacCutchan10-Feb-12 0:59 
GeneralRe: An application between bios and windows! Pin
candogu10-Feb-12 1:00
candogu10-Feb-12 1:00 
GeneralRe: An application between bios and windows! Pin
Richard MacCutchan10-Feb-12 1:23
mveRichard MacCutchan10-Feb-12 1:23 
QuestionShellExecute problem Pin
_Flaviu9-Feb-12 23:39
_Flaviu9-Feb-12 23:39 
AnswerRe: ShellExecute problem Pin
Rajesh R Subramanian10-Feb-12 0:02
professionalRajesh R Subramanian10-Feb-12 0:02 

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.