Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Get-Togethers
  4. hey Anna-Jayne Metcalfe .......

hey Anna-Jayne Metcalfe .......

Scheduled Pinned Locked Moved Get-Togethers
help
10 Posts 7 Posters 13 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tuneroz
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • T tuneroz

      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

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      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:

      T 1 Reply Last reply
      0
      • M Mark Salsbery

        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:

        T Offline
        T Offline
        tuneroz
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • T 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

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          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:

          M 1 Reply Last reply
          0
          • M Mark Salsbery

            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:

            M Offline
            M Offline
            MarkB777
            wrote on last edited by
            #5

            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

            R 1 Reply Last reply
            0
            • M MarkB777

              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

              R Offline
              R Offline
              Ri Qen Sin
              wrote on last edited by
              #6

              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?

              R 1 Reply Last reply
              0
              • R Ri Qen Sin

                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?

                R Offline
                R Offline
                RichardM1
                wrote on last edited by
                #7

                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.

                A 1 Reply Last reply
                0
                • R RichardM1

                  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.

                  A Offline
                  A Offline
                  Anna Jayne Metcalfe
                  wrote on last edited by
                  #8

                  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"

                  P 1 Reply Last reply
                  0
                  • A Anna Jayne Metcalfe

                    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"

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    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.

                    My blog | My articles

                    A 1 Reply Last reply
                    0
                    • P Pete OHanlon

                      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.

                      My blog | My articles

                      A Offline
                      A Offline
                      Anna Jayne Metcalfe
                      wrote on last edited by
                      #10

                      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"

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups