C++ FAQs

*** READ THIS BEFORE POSTING ***

Page 1 of 1

4 Replies - 59649 Views - Last Post: 30 July 2011 - 01:22 PM Rate Topic: -----

#1 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1876
  • View blog
  • Posts: 20,284
  • Joined: 17-March 01

C++ FAQs

Posted 09 September 2007 - 09:06 AM

This is a list of commonly asked questions and links to some helpful threads, snippets, and tutorials here at dream.in.code. Read these before asking your question as it may already be answered.

If there is a thread you feel belongs here, please reply and a moderator will add it to this post.

C++ Quick Reference Cheat Sheet
C++ Compiler Information from Bjarne Stroustrop: The Creator of C++


Threads:
Snippets:
Tutorials:
Developer Blogs:
Common Windows/Visual Studio Errors:
  • Error:
    error C2664: cannot convert parameter ... from 'const char *' to 'LPCWSTR'
    

    Fix: Under Project Menu -> Properties-> Configuration Properties->General change the Character Set option to Use Multi-Byte Character Set or Not Set.

  • Error:
    error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup[/i]
    

    Fix: Go to Project->Project Properties->Configuration Properties->Linker->System and change the SubSystem dropdown value from Windows (/SUBSYSTEM: WINDOWS) to Console (/SUBSYSTEM: CONSOLE)


Offsite Links:

Is This A Good Question/Topic? 3
  • +

Replies To: C++ FAQs

#2 jonhylever  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 27-April 11

Re: C++ FAQs

Posted 26 May 2011 - 11:16 PM

Thanks to tell

I am wasting my time to search similar post in this forum so again thanks.
Was This Post Helpful? 0
  • +
  • -

#3 Jeet.in  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 12
  • View blog
  • Posts: 304
  • Joined: 30-May 11

Re: C++ FAQs

Posted 14 July 2011 - 11:09 AM

I think there's another common error you should add which I had faced.When I upgraded from Visual C++ 2008 Express to Visual C++ 2010 Express and tried to compile previously made code ( Made with VC++ 08 ) I got the following error:

1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\Data Input Options.exe.embed.manifest". The parameter is incorrect.



It's a known bug in VC++ 2010, and can be fixed by clicking "Clean Solution" under "Build" Menu.

And if that doesn't work one has to do this :

Project -> Properties

Mainfest Tool -> Command line

then in the 'Additional Options' box
type in the following exactly

/validate_manifest

(Thanks to snoopy11 for the tip).
Was This Post Helpful? 1
  • +
  • -

#4 ccubed  Icon User is offline

  • It's That Guy
  • member icon

Reputation: 160
  • View blog
  • Posts: 1,403
  • Joined: 13-June 08

Re: C++ FAQs

Posted 30 July 2011 - 01:15 PM

What about the difference between cin.getline and getline? There's been a couple of those.
Was This Post Helpful? 0
  • +
  • -

#5 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10596
  • View blog
  • Posts: 39,259
  • Joined: 27-December 08

Re: C++ FAQs

Posted 30 July 2011 - 01:22 PM

If you have a link on this, feel free to post it or shoot me a PM and I'll add it. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1