Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please!!!!! Can someone Help. Pin
FISH7866-Mar-09 20:12
FISH7866-Mar-09 20:12 
QuestionHow to get the flags set during the creation of an imagelist ? Pin
zouzoulikou6-Mar-09 10:22
zouzoulikou6-Mar-09 10:22 
AnswerRe: How to get the flags set during the creation of an imagelist ? Pin
Yusuf6-Mar-09 11:07
Yusuf6-Mar-09 11:07 
GeneralRe: How to get the flags set during the creation of an imagelist ? Pin
zouzoulikou6-Mar-09 11:22
zouzoulikou6-Mar-09 11:22 
Question.lib mystery and headache [modified] Pin
JackPuppy6-Mar-09 8:40
JackPuppy6-Mar-09 8:40 
AnswerRe: .lib mystery and headache Pin
led mike6-Mar-09 10:23
led mike6-Mar-09 10:23 
AnswerRe: .lib mystery and headache Pin
Eytukan6-Mar-09 19:51
Eytukan6-Mar-09 19:51 
GeneralRe: .lib mystery and headache Pin
JackPuppy6-Mar-09 20:59
JackPuppy6-Mar-09 20:59 
thanks pal!
however I didn't "Likner->Input->AdditionalDependencies[// Here specify your boos lib] //Also you can give absolute paths here", neither "#pragma comment(lib,"Absolute_path_to_your_lib".

But I can use regex_search(), and why? it's confusing?(I did include the lib's directory in project property dialog).

Further the lib seems to contain at least the name of the dll, however see this lib codes I have dumpbin from a lib:

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


Dump of file E:Visual Studio 2005\Projects\DLLexperiment\debug\dllshiyan.lib

File Type: LIBRARY

Archive member name at 8: /               
49B21595 time/date Sat Mar 07 14:35:01 2009
         uid
         gid
       0 mode
      7A size
correct header end

    5 public symbols

      17E __IMPORT_DESCRIPTOR_dllshiyan
      3B0 __NULL_IMPORT_DESCRIPTOR
      4EA dllshiyan_NULL_THUNK_DATA
      642 __imp__add
      642 _add

Archive member name at BE: /               
49B21595 time/date Sat Mar 07 14:35:01 2009
         uid
         gid
       0 mode
      84 size
correct header end

    4 offsets

        1      17E
        2      3B0
        3      4EA
        4      642

    5 public symbols

        1 __IMPORT_DESCRIPTOR_dllshiyan
        2 __NULL_IMPORT_DESCRIPTOR
        4 __imp__add
        4 _add
        3 dllshiyan_NULL_THUNK_DATA

Archive member name at 17E: dllshiyan.dll/  
49B21595 time/date Sat Mar 07 14:35:01 2009
         uid
         gid
       0 mode
     1F6 size
correct header end

FILE HEADER VALUES
             14C machine (x86)
               3 number of sections
        49B21595 time date stamp Sat Mar 07 14:35:01 2009
             110 file pointer to symbol table
               8 number of symbols
               0 size of optional header
             100 characteristics
                   32 bit word machine

SECTION HEADER #1
.debug$S name
       0 physical address
       0 virtual address
      44 size of raw data
      8C file pointer to raw data (0000008C to 000000CF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
42100040 flags
         Initialized Data
         Discardable
         1 byte align
         Read Only

SECTION HEADER #2
.idata$2 name
       0 physical address
       0 virtual address
      14 size of raw data
      D0 file pointer to raw data (000000D0 to 000000E3)
      E4 file pointer to relocation table
       0 file pointer to line numbers
       3 number of relocations
       0 number of line numbers
C0300040 flags
         Initialized Data
         4 byte align
         Read Write

RELOCATIONS #2
                                                Symbol    Symbol
 Offset    Type              Applied To         Index     Name
 --------  ----------------  -----------------  --------  ------
 0000000C  DIR32NB                    00000000         3  .idata$6
 00000000  DIR32NB                    00000000         4  .idata$4
 00000010  DIR32NB                    00000000         5  .idata$5

SECTION HEADER #3
.idata$6 name
       0 physical address
       0 virtual address
       E size of raw data
     102 file pointer to raw data (00000102 to 0000010F)
      E4 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0200040 flags
         Initialized Data
         2 byte align
         Read Write

COFF SYMBOL TABLE
000 007BC627 ABS    notype       Static       | @comp.id
001 00000000 SECT2  notype       External     | __IMPORT_DESCRIPTOR_dllshiyan
002 C0000040 SECT2  notype       Section      | .idata$2
003 00000000 SECT3  notype       Static       | .idata$6
004 C0000040 UNDEF  notype       Section      | .idata$4
005 C0000040 UNDEF  notype       Section      | .idata$5
006 00000000 UNDEF  notype       External     | __NULL_IMPORT_DESCRIPTOR
007 00000000 UNDEF  notype       External     | dllshiyan_NULL_THUNK_DATA

String Table Size = 0x56 bytes

Archive member name at 3B0: dllshiyan.dll/  
49B21595 time/date Sat Mar 07 14:35:01 2009
         uid
         gid
       0 mode
      FD size
correct header end

FILE HEADER VALUES
             14C machine (x86)
               2 number of sections
        49B21595 time date stamp Sat Mar 07 14:35:01 2009
              BC file pointer to symbol table
               2 number of symbols
               0 size of optional header
             100 characteristics
                   32 bit word machine

SECTION HEADER #1
.debug$S name
       0 physical address
       0 virtual address
      44 size of raw data
      64 file pointer to raw data (00000064 to 000000A7)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
42100040 flags
         Initialized Data
         Discardable
         1 byte align
         Read Only

SECTION HEADER #2
.idata$3 name
       0 physical address
       0 virtual address
      14 size of raw data
      A8 file pointer to raw data (000000A8 to 000000BB)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0300040 flags
         Initialized Data
         4 byte align
         Read Write

COFF SYMBOL TABLE
000 007BC627 ABS    notype       Static       | @comp.id
001 00000000 SECT2  notype       External     | __NULL_IMPORT_DESCRIPTOR

String Table Size = 0x1D bytes

Archive member name at 4EA: dllshiyan.dll/  
49B21595 time/date Sat Mar 07 14:35:01 2009
         uid
         gid
       0 mode
     11B size
correct header end

FILE HEADER VALUES
             14C machine (x86)
               3 number of sections
        49B21595 time date stamp Sat Mar 07 14:35:01 2009
              D8 file pointer to symbol table
               2 number of symbols
               0 size of optional header
             100 characteristics
                   32 bit word machine

SECTION HEADER #1
.debug$S name
       0 physical address
       0 virtual address
      44 size of raw data
      8C file pointer to raw data (0000008C to 000000CF)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
42100040 flags
         Initialized Data
         Discardable
         1 byte align
         Read Only

SECTION HEADER #2
.idata$5 name
       0 physical address
       0 virtual address
       4 size of raw data
      D0 file pointer to raw data (000000D0 to 000000D3)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0300040 flags
         Initialized Data
         4 byte align
         Read Write

SECTION HEADER #3
.idata$4 name
       0 physical address
       0 virtual address
       4 size of raw data
      D4 file pointer to raw data (000000D4 to 000000D7)
       0 file pointer to relocation table
       0 file pointer to line numbers
       0 number of relocations
       0 number of line numbers
C0300040 flags
         Initialized Data
         4 byte align
         Read Write

COFF SYMBOL TABLE
000 007BC627 ABS    notype       Static       | @comp.id
001 00000000 SECT2  notype       External     | dllshiyan_NULL_THUNK_DATA

String Table Size = 0x1F bytes

Archive member name at 642: dllshiyan.dll/  
49B21595 time/date Sat Mar 07 14:35:01 2009
         uid
         gid
       0 mode
      27 size
correct header end

  Version      : 0
  Machine      : 14C (x86)
  TimeDateStamp: 49B21595 Sat Mar 07 14:35:01 2009
  SizeOfData   : 00000013
  DLL name     : dllshiyan.dll
  Symbol name  : _add
  Type         : code
  Name type    : no prefix
  Hint         : 0
  Name         : add

     Exports

       ordinal    name

                  _add

Dump of file 
DUMPBIN : fatal error LNK1181: 无法打开输入文件""

GeneralRe: .lib mystery and headache Pin
JackPuppy6-Mar-09 21:02
JackPuppy6-Mar-09 21:02 
GeneralRe: .lib mystery and headache Pin
Eytukan6-Mar-09 21:29
Eytukan6-Mar-09 21:29 
Questionmessage associted with number? Pin
sam_psycho6-Mar-09 6:42
sam_psycho6-Mar-09 6:42 
AnswerRe: message associted with number?[modified] Pin
Eytukan6-Mar-09 6:52
Eytukan6-Mar-09 6:52 
QuestionLeft Mouse Click and Hold Pin
Software20076-Mar-09 6:26
Software20076-Mar-09 6:26 
AnswerRe: Left Mouse Click and Hold Pin
Jonnie White6-Mar-09 6:30
Jonnie White6-Mar-09 6:30 
GeneralRe: Left Mouse Click and Hold Pin
Software20076-Mar-09 6:50
Software20076-Mar-09 6:50 
AnswerRe: Left Mouse Click and Hold Pin
Code-o-mat6-Mar-09 8:23
Code-o-mat6-Mar-09 8:23 
GeneralRe: Left Mouse Click and Hold Pin
Software20076-Mar-09 8:49
Software20076-Mar-09 8:49 
QuestionRe: Left Mouse Click and Hold Pin
David Crow6-Mar-09 10:15
David Crow6-Mar-09 10:15 
QuestionA tricky way of manipulating memory allocation [modified] Pin
JackPuppy6-Mar-09 4:25
JackPuppy6-Mar-09 4:25 
AnswerRe: A tricky way of manipulating memory allocation Pin
Eytukan6-Mar-09 4:59
Eytukan6-Mar-09 4:59 
AnswerRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 5:17
JackPuppy6-Mar-09 5:17 
Answer. Pin
Perisic, Aleksandar6-Mar-09 6:10
Perisic, Aleksandar6-Mar-09 6:10 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 8:49
JackPuppy6-Mar-09 8:49 
General. Pin
Perisic, Aleksandar6-Mar-09 10:04
Perisic, Aleksandar6-Mar-09 10:04 
GeneralRe: A tricky way of manipulating memory allocation Pin
JackPuppy6-Mar-09 10:54
JackPuppy6-Mar-09 10:54 

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.