Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EXE: semantics, variable names

0 views
Skip to first unread message

John Doe

unread,
Feb 15, 2005, 2:33:55 AM2/15/05
to
Some of the following will be edited out. Mostly playing with
semantics.

char BrdName[4]="Brd";
char PadName[4]="Pad";
char KeyName[9]={0};
char ExtName[5]=".txt";
char FilName[320]={0};
char PthName[320]="C:\\Program Files\\PadWorks\\scripts\\";
int PthLength=strlen(PthName);
char LngName[320]={0};
char FulName[320]={0};
char SchName[320]="C:\\Program Files\\PadWorks\\scripts\\*";
char String[20480];
char StringOut[512]={0};
char TitleName[256];
char TitleNameCopy[256];
LRESULT CMainFrame::ReceivedFromDLL(UINT wParam,LONG lParam)
{//EXE
*TitleName='\0';
*TitleNameCopy='\0';
if(BrdKey)
{//EXE-keyboard key
strcpy(KeyName,BrdName);
KeyName[3]=(char)(wParam&0xff);
KeyName[4]='\0';
strcat(KeyName,ExtName);
//correct so far, FilName equals "Brd?.txt"
strcpy(LngName,PthName);
strcat(LngName,"*");
strcat(LngName,KeyName);
OutputDebugString(LngName);
return 0;


--
Writing the first dynamically timed systemwide macro recorder for
Windows XP. Please see (comp.windows.open-look). Coding help is
needed, using VC++ 7.

0 new messages