Click here to Skip to main content
15,915,094 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get position of the cursor Pin
David Crow7-Sep-07 5:13
David Crow7-Sep-07 5:13 
AnswerRe: How to get position of the cursor [modified] Pin
Mark Salsbery7-Sep-07 5:37
Mark Salsbery7-Sep-07 5:37 
QuestionSOLVED: MFC: changing control size [modified] Pin
progDes7-Sep-07 2:56
progDes7-Sep-07 2:56 
AnswerRe: MFC: changing control size Pin
progDes7-Sep-07 3:07
progDes7-Sep-07 3:07 
Question'const unsigned short *' to 'const char *' Pin
revanth19857-Sep-07 2:08
revanth19857-Sep-07 2:08 
AnswerRe: 'const unsigned short ' to 'const char ' Pin
Cedric Moonen7-Sep-07 2:13
Cedric Moonen7-Sep-07 2:13 
GeneralRe: 'const unsigned short ' to 'const char ' Pin
revanth19857-Sep-07 2:43
revanth19857-Sep-07 2:43 
QuestionPE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
sundareswaran.senthilvel7-Sep-07 1:29
professionalsundareswaran.senthilvel7-Sep-07 1:29 
Hello,

Am having a problem with PE file binary output.
We'd given our project to our client and the binary file generated by them is having a
[-> 3A48 [ 50] RVA [size] of Import Directory <-]

as offset address for import directory.

Where as the same project if we compile in our machine, it is
having a RVA a

[-> 3A58 [ 50] RVA [size] of Import Directory <-].

Both are differing by 16 bytes exactly.
Due to this the addresses referred are differing by 16 bytes in the file.

This is the only place where the address gets differred, due to this the

A sample dumbin out put of two files having only the headers alone are placed here.

Please help us in this regard to solve this problem.


===========================MAIN FILE=======================================
Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.


Dump of file MAIN.exe

PE signature found

File Type: EXECUTABLE IMAGE

FILE HEADER VALUES
14C machine (x86)
4 number of sections
46E1277D time date stamp Fri Sep 07 15:57:09 2007
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
10F characteristics
Relocations stripped
Executable
Line numbers stripped
Symbols stripped
32 bit word machine

OPTIONAL HEADER VALUES
10B magic # (PE32)
7.10 linker version
1C00 size of code
2E00 size of initialized data
0 size of uninitialized data
22BD entry point (004022BD)
1000 base of code
3000 base of data
400000 image base (00400000 to 00407FFF)
1000 section alignment
200 file alignment
4.00 operating system version
0.00 image version
4.00 subsystem version
0 Win32 version
8000 size of image
400 size of headers
0 checksum
2 subsystem (Windows GUI)
0 DLL characteristics
100000 size of stack reserve
1000 size of stack commit
100000 size of heap reserve
1000 size of heap commit
0 loader flags
10 number of directories
0 [ 0] RVA [size] of Export Directory
3A48 [ 50] RVA [size] of Import Directory
6000 [ 1888] RVA [size] of Resource Directory
0 [ 0] RVA [size] of Exception Directory
0 [ 0] RVA [size] of Certificates Directory
0 [ 0] RVA [size] of Base Relocation Directory
3230 [ 1C] RVA [size] of Debug Directory
0 [ 0] RVA [size] of Architecture Directory
0 [ 0] RVA [size] of Global Pointer Directory
0 [ 0] RVA [size] of Thread Storage Directory
3750 [ 48] RVA [size] of Load Configuration Directory
0 [ 0] RVA [size] of Bound Import Directory
3000 [ 228] RVA [size] of Import Address Table Directory
0 [ 0] RVA [size] of Delay Import Directory
0 [ 0] RVA [size] of COM Descriptor Directory
0 [ 0] RVA [size] of Reserved Directory



----------------------------------------------------------------------------




===========================Other Compiled FILE=============================

Microsoft (R) COFF/PE Dumper Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.


Dump of file MAIN.exe

PE signature found

File Type: EXECUTABLE IMAGE

FILE HEADER VALUES
14C machine (x86)
4 number of sections
46E127EB time date stamp Fri Sep 07 15:58:59 2007
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
10F characteristics
Relocations stripped
Executable
Line numbers stripped
Symbols stripped
32 bit word machine

OPTIONAL HEADER VALUES
10B magic # (PE32)
7.10 linker version
1C00 size of code
2E00 size of initialized data
0 size of uninitialized data
22BD entry point (004022BD)
1000 base of code
3000 base of data
400000 image base (00400000 to 00407FFF)
1000 section alignment
200 file alignment
4.00 operating system version
0.00 image version
4.00 subsystem version
0 Win32 version
8000 size of image
400 size of headers
0 checksum
2 subsystem (Windows GUI)
0 DLL characteristics
100000 size of stack reserve
1000 size of stack commit
100000 size of heap reserve
1000 size of heap commit
0 loader flags
10 number of directories
0 [ 0] RVA [size] of Export Directory
3A58 [ 50] RVA [size] of Import Directory
6000 [ 1888] RVA [size] of Resource Directory
0 [ 0] RVA [size] of Exception Directory
0 [ 0] RVA [size] of Certificates Directory
0 [ 0] RVA [size] of Base Relocation Directory
3230 [ 1C] RVA [size] of Debug Directory
0 [ 0] RVA [size] of Architecture Directory
0 [ 0] RVA [size] of Global Pointer Directory
0 [ 0] RVA [size] of Thread Storage Directory
3750 [ 48] RVA [size] of Load Configuration Directory
0 [ 0] RVA [size] of Bound Import Directory
3000 [ 228] RVA [size] of Import Address Table Directory
0 [ 0] RVA [size] of Delay Import Directory
0 [ 0] RVA [size] of COM Descriptor Directory
0 [ 0] RVA [size] of Reserved Directory
----------------------------------------------------------------------------


mithun.nss

AnswerRe: PE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
Matthew Faithfull7-Sep-07 3:55
Matthew Faithfull7-Sep-07 3:55 
GeneralRe: PE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
sundareswaran.senthilvel9-Sep-07 20:12
professionalsundareswaran.senthilvel9-Sep-07 20:12 
GeneralRe: PE File Format differs by 16 Bytes in RVA of Import Directory Structure Section in Header... Pin
sundareswaran.senthilvel20-Sep-07 21:44
professionalsundareswaran.senthilvel20-Sep-07 21:44 
QuestionCo-ordinates of buttons Pin
69 Bay7-Sep-07 1:17
69 Bay7-Sep-07 1:17 
AnswerRe: Co-ordinates of buttons Pin
Nishad S7-Sep-07 1:39
Nishad S7-Sep-07 1:39 
GeneralRe: Co-ordinates of buttons Pin
69 Bay7-Sep-07 3:25
69 Bay7-Sep-07 3:25 
GeneralRe: Co-ordinates of buttons Pin
Mark Salsbery7-Sep-07 5:51
Mark Salsbery7-Sep-07 5:51 
GeneralRe: Co-ordinates of buttons Pin
Nishad S8-Sep-07 0:40
Nishad S8-Sep-07 0:40 
Questionfatal error C1853: in vc6 Pin
prakashd7-Sep-07 0:32
prakashd7-Sep-07 0:32 
AnswerRe: fatal error C1853: in vc6 Pin
Naveen7-Sep-07 0:40
Naveen7-Sep-07 0:40 
GeneralRe: fatal error C1853: in vc6 Pin
jhwurmbach7-Sep-07 1:39
jhwurmbach7-Sep-07 1:39 
AnswerRe: fatal error C1853: in vc6 Pin
jhwurmbach7-Sep-07 1:42
jhwurmbach7-Sep-07 1:42 
GeneralRe: fatal error C1853: in vc6 Pin
prakashd12-Sep-07 3:04
prakashd12-Sep-07 3:04 
GeneralRe: fatal error C1853: in vc6 Pin
jhwurmbach12-Sep-07 3:26
jhwurmbach12-Sep-07 3:26 
GeneralRe: fatal error C1853: in vc6 Pin
prakashd17-Sep-07 4:56
prakashd17-Sep-07 4:56 
AnswerRe: fatal error C1853: in vc6 Pin
KaЯl7-Sep-07 2:10
KaЯl7-Sep-07 2:10 
QuestionIStream and XmlLite Pin
Jan S.6-Sep-07 23:10
Jan S.6-Sep-07 23:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.