Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c x 18
Member Avatar for mohammadalipak

I'm logging employees' internet access for compliance with company policy. As soon as an employee visits a blocked site, he is redirected to a warning page (on the intranet). This warning page gets their IP addresses & emails them to the IT department. [COLOR="Red"]I also need their usernames.[/COLOR]I have found …

Member Avatar for cguan_77
0
695
Member Avatar for mohammadalipak

After using [INLINECODE]FILE *pFile[/INLINECODE] for file I/O (all the way from [INLINECODE]fopen(pFile, ...)[/INLINECODE] to [INLINECODE]fclose(pFile)[/INLINECODE]), my [INLINECODE]pFile[/INLINECODE] pointer still points to [INLINECODE]0x7803a710[/INLINECODE]. So I figured I better free it. However, when I try [INLINECODE]free(pFile)[/INLINECODE], it pauses execution (while debugging - though no breakpoint is set). When I hit F5 again …

Member Avatar for TkTkorrovi
0
1K
Member Avatar for mohammadalipak

What's the difference between[CODE=c]char *Name; Name = malloc (13*sizeof(char)); strcpy (Name, "George Brown");[/CODE]and[CODE=c]char Name[13]; strcpy (Name, "George Brown");[/CODE]The compiler gives a warning in the second case: [INLINECODE]warning C4047: 'function' : 'char *' differs in levels of indirection from 'char *[13]'[/INLINECODE] & [INLINECODE]warning C4024: 'strcat' : different types for formal and …

Member Avatar for mohammadalipak
0
127
Member Avatar for sanjuganju

i cannot understand...how to start because we cannot use structures or records everything is done inside main function.... P.S. i am not asking for CODE!!!!...i want to kno how to declare and use such function.....thank you...first yr programmer!:S how to create a 2d dynamic array of strings called book??????...where &book[*][0] …

Member Avatar for mohammadalipak
0
148
Member Avatar for mohammadalipak

[B]strncpy[/B] is not working for me for the following variable. It is working fine elsewhere in the program. [CODE=c]char szQName[21]; strncpy(szQName, "Text", 20); //debugger shows szQName's value as -88D11B47-8F19-41CA-.[/CODE] Has it ever happened to anyone? [B]Details[/B] (context of the code): [CODE=c]char szQName[21]; LPSTR szFileName; //Long Pointer to a STRing (char*) …

Member Avatar for mohammadalipak
0
148
Member Avatar for mohammadalipak

I need to create a data structure of data structures, but I can know "how many structs I need" only at runtime. [CODE=c]typedef struct tagPredefinedStruct{ int iSize; int iCount; } PREDEFINEDSTRUCT; int x; x = GetNumberofStructs(); //x is known only at runtime. typedef struct APIStruct { int iNumber; PREDEFINEDSTRUCT PreDefStruct[x]; …

Member Avatar for mohammadalipak
0
281
Member Avatar for mohammadalipak

I don't understand what this line of code does. (PMOMISCHEADER & LPVOID are pointer datatypes)[code]typedef BOOL (CALLBACK * PFNMISCBLOBCALLBACK) (PMOMISCHEADER pmoMiscHdr, LPVOID pData);[/code]I need to understand this because an API I'm using takes a pointer of datatype PFNMISCBLOBCALLBACK as a parameter. Thanks in advance.

Member Avatar for mohammadalipak
0
86