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
S

Stevieslu

@Stevieslu
About
Posts
6
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CListBox colors
    S Stevieslu

    Quick Question! How do I go about changing the colors of the text and background in a standard list box?

    C / C++ / MFC question

  • Static Splitter window
    S Stevieslu

    I am trying to create a 3-way static splitter window but have never done this before... What is the best base classes to use for the splitter window to hold a list of variables which can be clicked to change the output in the main CSrollView derived view class? I am experimenting at present and am just trying to split one window simply by overriding CreateClient as follows BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) { return m_wndSplitter.Create (this, 2, 1, CSize (8, 8), pContext); } But I keep getting an ASSERT(pContext != NULL) Why is this and how can I fix it?

    C / C++ / MFC question help

  • Trying to manipulate CStdioFile
    S Stevieslu

    I am trying to replace spaces with newlines \n's in a file to create a single column then I can read the file using ReadString to get one value at a time but it doesn't work. It still thinks the file has the original set-up of rows and columns instead of just a single column. Can anyone explain why? Here is the code... CString cFilename = lpszPathName; CStdioFile fDataFile,fDataCol; CString szValue; CString szRow; fDataFile.Open(lpszPathName, CFile::modeRead); fDataFile.ReadString(szRow); int nFirst = szRow.Replace(" ","\n"); while(fDataFile.ReadString(szRow)) { int nCol = szRow.Replace(" ","\n"); } fDataFile.Close(); fDataCol.Open(lpszPathName, CFile::modeRead); BOOL b = fDataCol.ReadString(szValue); if(TRUE == b) { m_nRows = atoi(szValue); } b = fDataCol.ReadString(szValue); if(TRUE == b) { m_nColumns = atoi(szValue); } m_nValues = (m_nRows*m_nColumns); m_GraphData.SetSize(m_nRows); int nRowCount; int nColumnCount; for (nRowCount = 0; nRowCount

    C / C++ / MFC question

  • Parsing a string that contains only one seperator
    S Stevieslu

    Can you tell me how I copy a string to a char buffer? Sorry if this question is a bit stupid...

    C / C++ / MFC c++ json tutorial question

  • Processing CStdioFile
    S Stevieslu

    What do I use to replace the spaces as I read the strings from the file? I am trying to use strtok at present with limited success. Thanks for your help by the way, -Regards Steve

    C / C++ / MFC help question

  • Processing CStdioFile
    S Stevieslu

    I have to work with a large file with variable rows and columns and I want to make it into 1 large column so I can read all the data using the ReadString command i.e. I need to replace the spaces along each row with newlines(\n)'s. What can I use to do this? Any help would be much appreciated... ----------------

    C / C++ / MFC help 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