Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

mmwhw

@mmwhw
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • get number from string
    M mmwhw

    you can define a function CString getfirstparam(CString& strParam) { CString str,str1; int i; i = strParam.find(','); str = strParam.left(i); str1= strParam.right(strParam.Getlength()-i-1); strParam =- str1; return str; }

    C / C++ / MFC question json

  • create Predefined Macros
    M mmwhw

    All know that the vc has some Predefined Macros,such as __LINE__ ,__FILE__ etc.when the programmer write the code __FILE__ in the file myclass.cpp ,the compiler will convert it to "myclass.cpp". Now i want to create a macros __CLASS__,so when programmer write the code __CLASS__ in a class (such as CMyClass )function ,the compile will convert it to the class Name ("CMyClass"),can i realize that ?if can ,how? CMyClass { void DisplayMyName(); } void CMyClass::DisPlayMyName() { AfxMessageBox(__CLASS__);//When Compile it will be converted to AfxMessageBox("CMyClass") } thanks

    C / C++ / MFC c++ question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups