hey Anna-Jayne Metcalfe .......
-
sorry to bother u.but can u help me out with this work i dont really understand this programm,can u pls throw in light in here so that i may get it well here. thanks man. :) BYTE* pInBuf,int InBufSize,char* function_name) { DWORD syslen=InBufSize; BYTE* sysbuffer=pInBuf; char hname[MAX_PATH]; sprintf(hname,"%s%s",function_name,".h"); HANDLE hHandle=CreateFileA(hname, GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0); SetFilePointer(hHandle,0,0,FILE_BEGIN); DWORD RW; char _code_end[]="\"; int l_end=strlen(&_code_end[0]); char cname[MAX_PATH]; char* pszSlash=hname; char TX[5]; int count=0; int arrary_num=1; int ar_num=0; WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle,"//",2,&RW,NULL); WriteFile(hHandle,hname,strlen(hname),&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle, "//Created by Your Name",strlen("//Created by Your Name"),&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle, "//your email", strlen("//your email"), &RW, NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); for(UINT i=0;i<syslen;i++){ if(ar_num==0){ WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); int ee=sprintf(cname,"%s","unsigned char "); ee+=sprintf(cname+ee,"%s",pszSlash); ee=ee-2; ee+=sprintf(cname+ee,"%s%05d","_",arrary_num); ee=sprintf(cname+ee,"%s",_code[]=\"\\\r\n"); int l=strlen(&cname[0]); WriteFile(hHandle,cname,l,&RW,NULL); } WriteFile(hHandle,"\\x",2,&RW,NULL); sprintf(TX,"%02x",sysbuffer[i]); WriteFile(hHandle,TX,2,&RW,NULL); count++; ar_num=ar_num+4; if (count==20){ count=0; WriteFile(hHandle,"\\",1,&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); } if(ar_num>2030){ arrary_num=arrary_num+1; WriteFile(hHandle,_code_end,l_e
-
sorry to bother u.but can u help me out with this work i dont really understand this programm,can u pls throw in light in here so that i may get it well here. thanks man. :) BYTE* pInBuf,int InBufSize,char* function_name) { DWORD syslen=InBufSize; BYTE* sysbuffer=pInBuf; char hname[MAX_PATH]; sprintf(hname,"%s%s",function_name,".h"); HANDLE hHandle=CreateFileA(hname, GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_NORMAL,0); SetFilePointer(hHandle,0,0,FILE_BEGIN); DWORD RW; char _code_end[]="\"; int l_end=strlen(&_code_end[0]); char cname[MAX_PATH]; char* pszSlash=hname; char TX[5]; int count=0; int arrary_num=1; int ar_num=0; WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle,"//",2,&RW,NULL); WriteFile(hHandle,hname,strlen(hname),&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle, "//Created by Your Name",strlen("//Created by Your Name"),&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); WriteFile(hHandle, "//your email", strlen("//your email"), &RW, NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); for(UINT i=0;i<syslen;i++){ if(ar_num==0){ WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); int ee=sprintf(cname,"%s","unsigned char "); ee+=sprintf(cname+ee,"%s",pszSlash); ee=ee-2; ee+=sprintf(cname+ee,"%s%05d","_",arrary_num); ee=sprintf(cname+ee,"%s",_code[]=\"\\\r\n"); int l=strlen(&cname[0]); WriteFile(hHandle,cname,l,&RW,NULL); } WriteFile(hHandle,"\\x",2,&RW,NULL); sprintf(TX,"%02x",sysbuffer[i]); WriteFile(hHandle,TX,2,&RW,NULL); count++; ar_num=ar_num+4; if (count==20){ count=0; WriteFile(hHandle,"\\",1,&RW,NULL); WriteFile(hHandle,"\r",1,&RW,NULL); WriteFile(hHandle,"\n",1,&RW,NULL); } if(ar_num>2030){ arrary_num=arrary_num+1; WriteFile(hHandle,_code_end,l_e
It looks like C/C++, but with a keyboard lacking an enter key :) You may want to post on the C++/MFC board[^] too! Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
It looks like C/C++, but with a keyboard lacking an enter key :) You may want to post on the C++/MFC board[^] too! Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
thanks a lot,:confused: but i still got little problem.whtas up with this c/c++ of a thing,cause sincerely speaking ,i no nothing about this thing. i don't really mind if u can help me out with some working on how to work on it .......... i will be really greatful if u can just do that 4 me........ thanks for ur care.... :) tuneroz :-\
tuneroz
-
thanks a lot,:confused: but i still got little problem.whtas up with this c/c++ of a thing,cause sincerely speaking ,i no nothing about this thing. i don't really mind if u can help me out with some working on how to work on it .......... i will be really greatful if u can just do that 4 me........ thanks for ur care.... :) tuneroz :-\
tuneroz
Many people that can help you may not look on this message board. Please repost your code in a readable format on the appropriate board. I and many others will be glad to try to help you :) Cheers, Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Many people that can help you may not look on this message board. Please repost your code in a readable format on the appropriate board. I and many others will be glad to try to help you :) Cheers, Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Your one of the most patient MVP's i've seen on these message boards! I see why Microsoft made you one of their top guys :).
Mark Brock Click here to view my blog
-
Your one of the most patient MVP's i've seen on these message boards! I see why Microsoft made you one of their top guys :).
Mark Brock Click here to view my blog
I would have readied my mallet. This guy is so clueless it's not even funny. :(
So the creationist says: Everything must have a designer. God designed everything. I say: Why is God the only exception? Why not make the "designs" (like man) exceptions and make God a creation of man?
-
I would have readied my mallet. This guy is so clueless it's not even funny. :(
So the creationist says: Everything must have a designer. God designed everything. I say: Why is God the only exception? Why not make the "designs" (like man) exceptions and make God a creation of man?
I think he was trolling for a date! :laugh: At least he had code to share, even if he did not know unix2dos.com
Learn to write self marginalizing code! Call 1-888-BAD-CODE ------------------ Silver member by constant and unflinching longevity.
-
I think he was trolling for a date! :laugh: At least he had code to share, even if he did not know unix2dos.com
Learn to write self marginalizing code! Call 1-888-BAD-CODE ------------------ Silver member by constant and unflinching longevity.
I've just seen this thread (it's just as well I wasn't drinking any coffee, or I'd be cleaning the monitor right now!) If he was trying to get a date with me, he doesn't know me very well...:doh:
Anna :rose: Having a bad bug day? Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
-
I've just seen this thread (it's just as well I wasn't drinking any coffee, or I'd be cleaning the monitor right now!) If he was trying to get a date with me, he doesn't know me very well...:doh:
Anna :rose: Having a bad bug day? Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"
Anna-Jayne Metcalfe wrote:
If he was trying to get a date with me, he doesn't know me very well...
:laugh: BTW - saw the write up in VSJ of your software the other day - tres cool.
Deja View - the feeling that you've seen this post before.
-
Anna-Jayne Metcalfe wrote:
If he was trying to get a date with me, he doesn't know me very well...
:laugh: BTW - saw the write up in VSJ of your software the other day - tres cool.
Deja View - the feeling that you've seen this post before.
Hey it was only a little one.... :-O Believe it or not we didn't submit it ourselves (I've a feeling they picked it up from Grey Matter's "new stuff" email). Either way, we're not complaining, although the timing isn't entirely ideal as we're getting ready to launch our new site, so finding a time when nobody is looking at it now to do the switch over could be even harder... :-\
Anna :rose: Having a bad bug day? Anna's Place | Tears and Laughter "If mushy peas are the food of the devil, the stotty cake is the frisbee of God"