Code:
char *CPFC = TEXT("C:\\Users\\Vasja-PC\\source\\repos\\Test\\Release\\Test.exe"); char CFP[128]; GetModuleFileName(NULL, CFP, 128); if (CFP == CPFC) printf("Good!"); With this comparison, the message Good! I do not receive, although when I try to compare 2 lines directly into if this message is displayed. This problem is not exactly related to the inequality of the lines, since I derived both lines and they were completely identical.
==operator.ifnothing to do with it. Secondly, if the type of the string is hard-coded, the arraychar, what does the macroTEXTdo here? For what purpose did you use thisTEXT? - AnTstrcmphas always been. - AnT