have some difficulty compiling a project

This is a discussion on have some difficulty compiling a project within the C++ Programming forums, part of the General Programming Boards category; hello all. ive got a little problem here! i have a source code which is actualy a PEdumper developed by ...

  1. #1
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    493

    have some difficulty compiling a project

    hello all. ive got a little problem here! i have a source code which is

    actualy a PEdumper developed by Matt Pietrek 1994-2001, well i cant get

    it to compile! it just gives an error concerning this line(line 472 in

    common.cpp)
    Code:
    szDebugFormat = (debugDir->Type <= IMAGE_DEBUG_TYPE_OMAP_FROM_SRC )
                            ? SzDebugFormats[debugDir->Type] : "????";
    stating:
    invalid conversion from const char* to CHAR* ,having said that, it seems

    to be refering to "SzDebugFormats[debugDir->Type]", this source code used

    to compile well!, why should it now generate such error?i mean it used to

    work and now it doesnt!( im using GCC, Mingw3.4 from CodeBlocks)
    and how can i fix it?
    the rest of the codes seem to be working so far.
    by the way why do it get the error
    " Unable to start program'C:\Documents and settings\Master\MyDocuments\Visual Studio 2008\Projects\Dissassembler\Debug\Dissassembler.ex e'

    The system cannot find the file specified!"
    whenever i try to compile it under visual studio? ( i have the same

    problem with another project too!)

    PEdumper.zip
    Last edited by Masterx; 04-04-2009 at 07:34 AM.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  2. #2
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,471
    it seems the code has problems with const correctness.

    if you cannot change the variable/function types to use correct types - add the const_cast to add/remove const qualifier where you get warnings
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Project Varia recruiting.
    By Raigne in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 10-12-2008, 03:15 PM
  2. HELP! 1st Project!
    By Zionstorm in forum C++ Programming
    Replies: 3
    Last Post: 09-15-2008, 09:36 AM
  3. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  4. Remove ActiveX from VC++ project
    By cr_naik in forum Windows Programming
    Replies: 2
    Last Post: 07-02-2003, 11:15 AM
  5. Compiling assembly code into project
    By knutso in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 02:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21