Hex editor that copies HEX to clipboard?

I’m going into withdrawal without the hourly tales of adolescent
foolhardiness. I haven’t laughed that hard in a long while!

I’m trying to copy a binary image into a registry key. The image is way too
large to manually type it in, so I opened it up in MSVC6 as a binary, and
copied all that lovely hex, and pasted it into the REG_BINARY editor in
regedt32. To my surprise, the hex values were very different than what I
started with. Apparently, VC 6 thinks that when I highlight the hex, I
really want the ASCII equivalent. After twiddling a several editors,
including CodeWright, I still am looking for an editor that will copy the
hex values into the clipboard, so I can paste them into regedt32. I’m
plenty willing to admit it’s a user error, but I just can’t figure out how
to take binary file foo and get a binary image of it into registry value
bar. I will eventually have a utility to write the binary into a .reg file,
but I was hoping to have a known good example of the .reg before I try it so
I can verify the output.

Anyone have some usage suggestions for what I have, or a favorite editor
that you know works? Or just an alternative means to accomplish what I want
to accomplish?

Thanks,

Phil

* Philip D. Barila | (503) 264-8386
* Intel Corp. | M/S JF2-53 Office JF2-2-G6
* Storage Architecture and Performance
* Internet Systems Lab


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi, Phil.

I admit I don’t fully understand your problem:
-If the image is already binary, I see no reason not to use it as
a binary file; so, I assume your problem must be the file is too
large to be manipulated at once;
-Yet, you could open it in MSVC6 as a binary and select the
hex you want/need (as you did), then paste it on new binary
file(s), sized as you want/need;
-It may sound stupid, but you may paste things to good’old
NOTEPAD (you may also select hex codes in MSVC6,
paste to Notepad, then save the file as - say - xpto.bin, and
you’ll get your binary file…) and, from it, selecting again and
pasting to wherever you want to… On Win2K, I once tried
opening a 30Mb binary file with Notepad (actually, a crash
dump file) - it works, believe it or not (gone are the days of
Win3.x when Notepad was a 64Kb limited tool…).

-But perhaps what you need is a simple tool (do it yourself
or find one, there are probably plenty on the Net) to convert
that hex to binary… :slight_smile:

Finally… you should seriously consider taking a couple of days
off and dis-stress yourself… (just kidding!) :)))

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com

«Humour and love are God’s answers
to Human weaknesses»

----- Original Message -----
On Tuesday, April 17, 2001 2:08 AM “Barila, Phil” wrote:

I’m going into withdrawal without the hourly tales of adolescent
foolhardiness. I haven’t laughed that hard in a long while!

I’m trying to copy a binary image into a registry key. The image is
way too
large to manually type it in, so I opened it up in MSVC6 as a binary,
and
copied all that lovely hex, and pasted it into the REG_BINARY editor in
regedt32. To my surprise, the hex values were very different than what
I
started with. Apparently, VC 6 thinks that when I highlight the hex, I
really want the ASCII equivalent. After twiddling a several editors,
including CodeWright, I still am looking for an editor that will copy
the
hex values into the clipboard, so I can paste them into regedt32. I’m
plenty willing to admit it’s a user error, but I just can’t figure out
how
to take binary file foo and get a binary image of it into registry
value
bar. I will eventually have a utility to write the binary into a .reg
file,
but I was hoping to have a known good example of the .reg before I try
it so
I can verify the output.

Anyone have some usage suggestions for what I have, or a favorite
editor
that you know works? Or just an alternative means to accomplish what I
want
to accomplish?

Thanks,

Phil

* Philip D. Barila | (503) 264-8386
* Intel Corp. | M/S JF2-53 Office JF2-2-G6
* Storage Architecture and Performance
* Internet Systems Lab


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

…but if you really need the HEX codes, you might just deal with
it. Here’s an easy way, taken from the MSVC6 help… :wink:

// example for CDumpContext::HexDump
char test = “This is a test of CDumpContext::HexDump\n”;
afxDump.HexDump( “.”, (BYTE*) test, sizeof test, 20 );

The output from this program is:

. 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 6F 66 20 43 44
. 75 6D 70 43 6F 6E 74 65 78 74 3A 3A 48 65 78 44 75 6D 70 0A
. 00

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com

«Humour and love are God’s answers
to Human weaknesses»

----- Original Message -----
From: “Miguel Monteiro”
To: “NT Developers Interest List”
Sent: Tuesday, April 17, 2001 9:37 AM
Subject: [ntdev] Re: Hex editor that copies HEX to clipboard?

Hi, Phil.

I admit I don’t fully understand your problem:
-If the image is already binary, I see no reason not to use it as
a binary file; so, I assume your problem must be the file is too
large to be manipulated at once;
-Yet, you could open it in MSVC6 as a binary and select the
hex you want/need (as you did), then paste it on new binary
file(s), sized as you want/need;
-It may sound stupid, but you may paste things to good’old
NOTEPAD (you may also select hex codes in MSVC6,
paste to Notepad, then save the file as - say - xpto.bin, and
you’ll get your binary file…) and, from it, selecting again and
pasting to wherever you want to… On Win2K, I once tried
opening a 30Mb binary file with Notepad (actually, a crash
dump file) - it works, believe it or not (gone are the days of
Win3.x when Notepad was a 64Kb limited tool…).

-But perhaps what you need is a simple tool (do it yourself
or find one, there are probably plenty on the Net) to convert
that hex to binary… :slight_smile:

Finally… you should seriously consider taking a couple of days
off and dis-stress yourself… (just kidding!) :)))

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com
------------------------------------------------------------
«Humour and love are God’s answers
to Human weaknesses»
------------------------------------------------------------

----- Original Message -----
On Tuesday, April 17, 2001 2:08 AM “Barila, Phil” wrote:

>I’m going into withdrawal without the hourly tales of adolescent
>foolhardiness. I haven’t laughed that hard in a long while!
>
>I’m trying to copy a binary image into a registry key. The image is
way too
>large to manually type it in, so I opened it up in MSVC6 as a binary,
and
>copied all that lovely hex, and pasted it into the REG_BINARY editor in
>regedt32. To my surprise, the hex values were very different than what
I
>started with. Apparently, VC 6 thinks that when I highlight the hex, I
>really want the ASCII equivalent. After twiddling a several editors,
>including CodeWright, I still am looking for an editor that will copy
the
>hex values into the clipboard, so I can paste them into regedt32. I’m
>plenty willing to admit it’s a user error, but I just can’t figure out
how
>to take binary file foo and get a binary image of it into registry
value
>bar. I will eventually have a utility to write the binary into a .reg
file,
>but I was hoping to have a known good example of the .reg before I try
it so
>I can verify the output.
>
>Anyone have some usage suggestions for what I have, or a favorite
editor
>that you know works? Or just an alternative means to accomplish what I
want
>to accomplish?
>
>Thanks,
>
>Phil
>
>* Philip D. Barila | (503) 264-8386
>* Intel Corp. | M/S JF2-53 Office JF2-2-G6
>* Storage Architecture and Performance
>* Internet Systems Lab


You are currently subscribed to ntdev as: xxxxx@criticalsoftware.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

http://www.hexworkshop.com/
the above is a very nice hex editor made by breakpoint software
it will do what you want.

Finney Patterson
EMC2
CLARiiON Division - RTP
62 T.W. Alexander Dr.
RTP, N.C. 27709 USA

Phone: 919-248-5806
FAX: 919-248-6108
Email: xxxxx@EMC.com

mailto:xxxxx

Web site: http:

-----Original Message-----
From: Barila, Phil [mailto:xxxxx@intel.com]
Sent: Monday, April 16, 2001 9:08 PM
To: NT Developers Interest List
Subject: [ntdev] Hex editor that copies HEX to clipboard?

I’m going into withdrawal without the hourly tales of adolescent
foolhardiness. I haven’t laughed that hard in a long while!

I’m trying to copy a binary image into a registry key. The image is way too
large to manually type it in, so I opened it up in MSVC6 as a binary, and
copied all that lovely hex, and pasted it into the REG_BINARY editor in
regedt32. To my surprise, the hex values were very different than what I
started with. Apparently, VC 6 thinks that when I highlight the hex, I
really want the ASCII equivalent. After twiddling a several editors,
including CodeWright, I still am looking for an editor that will copy the
hex values into the clipboard, so I can paste them into regedt32. I’m
plenty willing to admit it’s a user error, but I just can’t figure out how
to take binary file foo and get a binary image of it into registry value
bar. I will eventually have a utility to write the binary into a .reg file,
but I was hoping to have a known good example of the .reg before I try it so
I can verify the output.

Anyone have some usage suggestions for what I have, or a favorite editor
that you know works? Or just an alternative means to accomplish what I want
to accomplish?

Thanks,

Phil

* Philip D. Barila | (503) 264-8386
* Intel Corp. | M/S JF2-53 Office JF2-2-G6
* Storage Architecture and Performance
* Internet Systems Lab


You are currently subscribed to ntdev as: xxxxx@emc.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></mailto:xxxxx>

Yes, I stated that I would eventually have a utility which would write the
.reg file directly from the binary image. I was hoping to verify the
registry reading stuff in the driver before getting to that, as that is a
secondary issue to the real problem I am solving.

I’ll look over this one very carefully. It does look like it would be
trivial to make it do what I want.

Thanks,

Phil

-----Original Message-----
From: Miguel Monteiro [mailto:xxxxx@criticalsoftware.com]
Sent: Tuesday, April 17, 2001 1:41 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Hex editor that copies HEX to clipboard?

…but if you really need the HEX codes, you might just deal with
it. Here’s an easy way, taken from the MSVC6 help… :wink:

// example for CDumpContext::HexDump
char test = “This is a test of CDumpContext::HexDump\n”;
afxDump.HexDump( “.”, (BYTE*) test, sizeof test, 20 );

The output from this program is:

. 54 68 69 73 20 69 73 20 61 20 74 65 73 74 20 6F 66 20 43 44
. 75 6D 70 43 6F 6E 74 65 78 74 3A 3A 48 65 78 44 75 6D 70 0A
. 00

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com

?Humour and love are God’s answers
to Human weaknesses?

----- Original Message -----
From: “Miguel Monteiro”
To: “NT Developers Interest List”
Sent: Tuesday, April 17, 2001 9:37 AM
Subject: [ntdev] Re: Hex editor that copies HEX to clipboard?

Hi, Phil.

I admit I don’t fully understand your problem:
-If the image is already binary, I see no reason not to use it as
a binary file; so, I assume your problem must be the file is too
large to be manipulated at once;
-Yet, you could open it in MSVC6 as a binary and select the
hex you want/need (as you did), then paste it on new binary
file(s), sized as you want/need;
-It may sound stupid, but you may paste things to good’old
NOTEPAD (you may also select hex codes in MSVC6,
paste to Notepad, then save the file as - say - xpto.bin, and
you’ll get your binary file…) and, from it, selecting again and
pasting to wherever you want to… On Win2K, I once tried
opening a 30Mb binary file with Notepad (actually, a crash
dump file) - it works, believe it or not (gone are the days of
Win3.x when Notepad was a 64Kb limited tool…).

-But perhaps what you need is a simple tool (do it yourself
or find one, there are probably plenty on the Net) to convert
that hex to binary… :slight_smile:

Finally… you should seriously consider taking a couple of days
off and dis-stress yourself… (just kidding!) :)))

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com
------------------------------------------------------------
?Humour and love are God’s answers
to Human weaknesses?
------------------------------------------------------------

----- Original Message -----
On Tuesday, April 17, 2001 2:08 AM “Barila, Phil” wrote:

>I’m going into withdrawal without the hourly tales of adolescent
>foolhardiness. I haven’t laughed that hard in a long while!
>
>I’m trying to copy a binary image into a registry key. The image is
way too
>large to manually type it in, so I opened it up in MSVC6 as a binary,
and
>copied all that lovely hex, and pasted it into the REG_BINARY editor in
>regedt32. To my surprise, the hex values were very different than what
I
>started with. Apparently, VC 6 thinks that when I highlight the hex, I
>really want the ASCII equivalent. After twiddling a several editors,
>including CodeWright, I still am looking for an editor that will copy
the
>hex values into the clipboard, so I can paste them into regedt32. I’m
>plenty willing to admit it’s a user error, but I just can’t figure out
how
>to take binary file foo and get a binary image of it into registry
value
>bar. I will eventually have a utility to write the binary into a .reg
file,
>but I was hoping to have a known good example of the .reg before I try
it so
>I can verify the output.
>
>Anyone have some usage suggestions for what I have, or a favorite
editor
>that you know works? Or just an alternative means to accomplish what I
want
>to accomplish?
>
>Thanks,
>
>Phil
>
>* Philip D. Barila | (503) 264-8386
>* Intel Corp. | M/S JF2-53 Office JF2-2-G6
>* Storage Architecture and Performance
>* Internet Systems Lab


You are currently subscribed to ntdev as: xxxxx@criticalsoftware.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Finney,

That was exactly what I wanted to do.

Thanks!

Phil

-----Original Message-----
From: xxxxx@emc.com [mailto:xxxxx@emc.com]
Sent: Tuesday, April 17, 2001 5:06 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Hex editor that copies HEX to clipboard?

http://www.hexworkshop.com/
the above is a very nice hex editor made by breakpoint software
it will do what you want.

Finney Patterson
EMC2
CLARiiON Division - RTP
62 T.W. Alexander Dr.
RTP, N.C. 27709 USA

Phone: 919-248-5806
FAX: 919-248-6108
Email: xxxxx@EMC.com

mailto:xxxxx

Web site: http:

-----Original Message-----
From: Barila, Phil [mailto:xxxxx@intel.com]
Sent: Monday, April 16, 2001 9:08 PM
To: NT Developers Interest List
Subject: [ntdev] Hex editor that copies HEX to clipboard?

I’m going into withdrawal without the hourly tales of adolescent
foolhardiness. I haven’t laughed that hard in a long while!

I’m trying to copy a binary image into a registry key. The image is way too
large to manually type it in, so I opened it up in MSVC6 as a binary, and
copied all that lovely hex, and pasted it into the REG_BINARY editor in
regedt32. To my surprise, the hex values were very different than what I
started with. Apparently, VC 6 thinks that when I highlight the hex, I
really want the ASCII equivalent. After twiddling a several editors,
including CodeWright, I still am looking for an editor that will copy the
hex values into the clipboard, so I can paste them into regedt32. I’m
plenty willing to admit it’s a user error, but I just can’t figure out how
to take binary file foo and get a binary image of it into registry value
bar. I will eventually have a utility to write the binary into a .reg file,
but I was hoping to have a known good example of the .reg before I try it so
I can verify the output.

Anyone have some usage suggestions for what I have, or a favorite editor
that you know works? Or just an alternative means to accomplish what I want
to accomplish?

Thanks,

Phil

* Philip D. Barila | (503) 264-8386
* Intel Corp. | M/S JF2-53 Office JF2-2-G6
* Storage Architecture and Performance
* Internet Systems Lab


You are currently subscribed to ntdev as: xxxxx@emc.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></mailto:xxxxx>

I can send anybody a hex editor tool - the fullscreen DOS app.

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Tuesday, April 17, 2001 4:05 PM
Subject: [ntdev] RE: Hex editor that copies HEX to clipboard?

> http://www.hexworkshop.com/
> the above is a very nice hex editor made by breakpoint software
> it will do what you want.
>
> Finney Patterson
> EMC2
> CLARiiON Division - RTP
> 62 T.W. Alexander Dr.
> RTP, N.C. 27709 USA
>
> Phone: 919-248-5806
> FAX: 919-248-6108
> Email: xxxxx@EMC.com
>
> mailto:xxxxx
>
> Web site: http:
>
>
>
>
>
> -----Original Message-----
> From: Barila, Phil [mailto:xxxxx@intel.com]
> Sent: Monday, April 16, 2001 9:08 PM
> To: NT Developers Interest List
> Subject: [ntdev] Hex editor that copies HEX to clipboard?
>
>
> I’m going into withdrawal without the hourly tales of adolescent
> foolhardiness. I haven’t laughed that hard in a long while!
>
> I’m trying to copy a binary image into a registry key. The image is way
too
> large to manually type it in, so I opened it up in MSVC6 as a binary, and
> copied all that lovely hex, and pasted it into the REG_BINARY editor in
> regedt32. To my surprise, the hex values were very different than what I
> started with. Apparently, VC 6 thinks that when I highlight the hex, I
> really want the ASCII equivalent. After twiddling a several editors,
> including CodeWright, I still am looking for an editor that will copy the
> hex values into the clipboard, so I can paste them into regedt32. I’m
> plenty willing to admit it’s a user error, but I just can’t figure out how
> to take binary file foo and get a binary image of it into registry value
> bar. I will eventually have a utility to write the binary into a .reg
file,
> but I was hoping to have a known good example of the .reg before I try it
so
> I can verify the output.
>
> Anyone have some usage suggestions for what I have, or a favorite editor
> that you know works? Or just an alternative means to accomplish what I
want
> to accomplish?
>
> Thanks,
>
> Phil
>
> * Philip D. Barila | (503) 264-8386
> * Intel Corp. | M/S JF2-53 Office JF2-2-G6
> * Storage Architecture and Performance
> * Internet Systems Lab
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@emc.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></mailto:xxxxx>

Max,

Thank you for the reply. I got what I needed, but I appreciate you taking
the time to respond.

Phil

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Tuesday, April 17, 2001 9:49 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Hex editor that copies HEX to clipboard?

I can send anybody a hex editor tool - the fullscreen DOS app.

----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Tuesday, April 17, 2001 4:05 PM
Subject: [ntdev] RE: Hex editor that copies HEX to clipboard?

> http://www.hexworkshop.com/
> the above is a very nice hex editor made by breakpoint software
> it will do what you want.
>
> Finney Patterson
> EMC2
> CLARiiON Division - RTP
> 62 T.W. Alexander Dr.
> RTP, N.C. 27709 USA
>
> Phone: 919-248-5806
> FAX: 919-248-6108
> Email: xxxxx@EMC.com
>
> mailto:xxxxx
>
> Web site: http:
>
>
>
>
>
> -----Original Message-----
> From: Barila, Phil [mailto:xxxxx@intel.com]
> Sent: Monday, April 16, 2001 9:08 PM
> To: NT Developers Interest List
> Subject: [ntdev] Hex editor that copies HEX to clipboard?
>
>
> I’m going into withdrawal without the hourly tales of adolescent
> foolhardiness. I haven’t laughed that hard in a long while!
>
> I’m trying to copy a binary image into a registry key. The image is way
too
> large to manually type it in, so I opened it up in MSVC6 as a binary, and
> copied all that lovely hex, and pasted it into the REG_BINARY editor in
> regedt32. To my surprise, the hex values were very different than what I
> started with. Apparently, VC 6 thinks that when I highlight the hex, I
> really want the ASCII equivalent. After twiddling a several editors,
> including CodeWright, I still am looking for an editor that will copy the
> hex values into the clipboard, so I can paste them into regedt32. I’m
> plenty willing to admit it’s a user error, but I just can’t figure out how
> to take binary file foo and get a binary image of it into registry value
> bar. I will eventually have a utility to write the binary into a .reg
file,
> but I was hoping to have a known good example of the .reg before I try it
so
> I can verify the output.
>
> Anyone have some usage suggestions for what I have, or a favorite editor
> that you know works? Or just an alternative means to accomplish what I
want
> to accomplish?
>
> Thanks,
>
> Phil
>
> * Philip D. Barila | (503) 264-8386
> * Intel Corp. | M/S JF2-53 Office JF2-2-G6
> * Storage Architecture and Performance
> * Internet Systems Lab
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@emc.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</http:></mailto:xxxxx>

Miguel,

Thanks for the response. In answer to your questions:
It is a file. However, you might remember that I sent a note about a week
ago explaining that I am the boot ATAPI driver, replacing atapi.sys, and
asking how to open a file using ZwCreateFile from my DriverEntry routine
when the FS is waiting for *me* to finish initializing, so it can then
initialize itself with the FS on the disk which resides on my controller.
The consensus, along with some private response from the WinDBG guys, is
that it can’t be done, and the next best thing is to use the registry.

MSVC6 allows you to *select* the HEX codes, but actually *copies* the ascii
equivalent. If you open a binary file, say %SystemRoot%\Notepad.exe (That’s
C:\WINNT\Notepad.exe on my Win2K SP1 system), as a binary file, you see the
1st 16 bytes:
4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00

if you highlight those 32 hex digits, then copy them, then paste them to an
ordinary text editor, you get:
MZ???
which is the ASCII equivalent of those 16 bytes. The hex editor is not
copying the hex digits, it’s copying the ascii text represented by the
values in those bytes. If you open the file in Notepad, or Wordpad, or any
other basic text editor, you don’t even see the hex representation, you see
the ASCII representation of the bytes. If you don’t need to see the zeros,
it’s fine, but if you need to actually see where zero bytes are, among other
things, you need to see the hex, not the ASCII equivalent. And if you want
to paste it into a hex entry field, you can’t have anything except 0-9, and
A-F or a-f.

Finney Patterson suggested HexWorkshop, and I am downloading that as I
write.

I suppose I might have sounded a bit frustrated in the original post, but I
am not stressed. About this. Yet. :slight_smile:

Thanks,

Phil

-----Original Message-----
From: Miguel Monteiro [mailto:xxxxx@criticalsoftware.com]
Sent: Tuesday, April 17, 2001 1:38 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Hex editor that copies HEX to clipboard?

Hi, Phil.

I admit I don’t fully understand your problem:
-If the image is already binary, I see no reason not to use it as
a binary file; so, I assume your problem must be the file is too
large to be manipulated at once;
-Yet, you could open it in MSVC6 as a binary and select the
hex you want/need (as you did), then paste it on new binary
file(s), sized as you want/need;
-It may sound stupid, but you may paste things to good’old
NOTEPAD (you may also select hex codes in MSVC6,
paste to Notepad, then save the file as - say - xpto.bin, and
you’ll get your binary file…) and, from it, selecting again and
pasting to wherever you want to… On Win2K, I once tried
opening a 30Mb binary file with Notepad (actually, a crash
dump file) - it works, believe it or not (gone are the days of
Win3.x when Notepad was a 64Kb limited tool…).

-But perhaps what you need is a simple tool (do it yourself
or find one, there are probably plenty on the Net) to convert
that hex to binary… :slight_smile:

Finally… you should seriously consider taking a couple of days
off and dis-stress yourself… (just kidding!) :)))

Miguel Monteiro
xxxxx@criticalsoftware.com
www.criticalsoftware.com

?Humour and love are God’s answers
to Human weaknesses?


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com