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
A

Aoife

@Aoife
About
Posts
32
Topics
17
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Debug Assertion & Combo Box?
    A Aoife

    Thanks but that isn't going to be much good to me because later in Dialog1 I need to .AddString() to the ComboBox. I guess what I'll have to do is write the items that need to be put into the ComboBox to a file in Dialog1 and then read them from the file when Dialog2 is opened and put them into the ComboBox.:~ Thanks for your help anyway. Aoife

    C / C++ / MFC help debugging question

  • Debug Assertion & Combo Box?
    A Aoife

    Hi, I have two Dialog boxes, Dialog1 and Dialog2. I need to populate a Combo Box in Dialog2 from Dialog1. When I use the following lines in Dialog1 it compiles without error. CDialog2 ob; ob.m_cComboBox.ResetContent(); However when I run it (and when it reaches the 2nd line above)I get a Debug Assertion Failure in File: afxwin2.inl at line 741 which is this line. { ASSERT(::IsWindow(m_hWnd)); ::SendMessage(m_hWnd, CB_RESETCONTENT, 0, 0); } The Combo Box properties are, Type: Dropdown, Owner draw: Variable Thanks in advance for any help, Aoife

    C / C++ / MFC help debugging question

  • RE: Set ComboBox Values ?
    A Aoife

    Thanks. That has worked in that now I get no errors when I compile. But when It runs I get a debug assertion failure in File afxwin2.inl at this line (741) { ASSERT(::IsWindow(m_hWnd)); ::SendMessage(m_hWnd, CB_RESETCONTENT, 0, 0); } Does this have something to do with the properties of the ComboBox? Thanks for you help. Aoife

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

  • RE: Set ComboBox Values ?
    A Aoife

    In Dialog2 the ComboBox public control variable is m_cCombo. In Dialog1 when I call m_cCombo.ResetContent(); I get told error C2065: 'm_cCombo' : undeclared identifier error C2228: left of '.ResetContent' must have class/struct/union type In Dialog1.cpp I have included Dialog2.cpp

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

  • RE: Set ComboBox Values ?
    A Aoife

    Hello, Sorry for posting this a second time. I'm using MFC dialog based app. In it I have two dialog boxes Dialog1 and Dialog2. There is a Combo Box in Dialog2 that I want to populate with integer values obtained from Dialog1. I know that I must use ResetContent() and InsertString(). But what I don't know is how to use them from Dialog1. The ComboBox has a control variable in Dialog2 but when I call this in Dialog1 I get errors. (I have included the header files). The following explains what I want to do. Dialog1.cpp #include "Dialog2.h" clear all contents from the Combo Box in Dialog2 while (number < 10) { ... if(some condition) { write whatever the 'number' value is to the combo box in Dialog2 } ... number++; } Does anyone know how I can do this or know of any document explaining this. Thanks in advance, Aoife

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

  • Set Combo Box values??
    A Aoife

    Hello, I'm using MFC dialog based app. In it I have two dialog boxes Dialog1 and Dialog2. There is a Combo Box in Dialog2 that I want to populate with integer values obtained from Dialog1. The following explains what I want to do. Dialog1.cpp #include "Dialog2.h" clear all contents from the Combo Box in Dialog2 while (number < 10) { ... if(some condition) { write whatever the 'number' value is to the combo box in Dialog2 } ... number++; } Does anyone know how I can do this or know of any document explaining this. Thanks in advance, Aoife

    C / C++ / MFC c++ question

  • Theorem on Salary from School Time Concept
    A Aoife

    Here is another one: Postulate 1: Time is Money (Time = Money) Postulate 2: Money is the root of all evil (Money = SqRoot(Evil)) Postulate 3: Women require time and money (Women = Time * Money) Therefore: Women = Money * Money as Time = Money As Money = SqRoot(Evil) then Money * Money = Evil Therefore it can be concluded that... Women = Evil :laugh: Aoife

    The Lounge css com game-dev career

  • Debug Assertion?
    A Aoife

    Worked perfectly! I feel a bit thick that I didn't know that, but I'm so happy that I have finally got my application working that I don't care! Thanks a million Chris. Aoife

    C / C++ / MFC c++ debugging help question

  • Debug Assertion?
    A Aoife

    I'm a newbie, so could you please explain how I can fix this? Thanks, Aoife

    C / C++ / MFC c++ debugging help question

  • Debug Assertion?
    A Aoife

    It says that the "Debug Assertion Failed" in file winctrl.cpp at line 547. void CListCtrl::DrawItem(LPDRAWITEMSTRUCT) { ASSERT(FALSE); } This is a MFC\src file. It gives no other reason as to why its happening. Thanks

    C / C++ / MFC c++ debugging help question

  • Debug Assertion?
    A Aoife

    But the first dialog box isn't mentioned in OnInitDialog and it works fine. Could it be because there is two of them? Thanks,

    C / C++ / MFC c++ debugging help question

  • Debug Assertion?
    A Aoife

    Hello, In my MFC application I have two similar dialog boxes. Each have a List Control Box and each has a varaible (of type CListCtrl) associated to them. One of them works fine but I get a Debug Assertion error on the first of these four lines in the second dialog. m_MyListControl2.InsertItem(0, Line1, 0) m_MyListControl2.SetItemText(0, 1, Line2); m_MyListControl2.SetItemText(0, 2, Line3); m_MyListControl2.SetItemText(0, 3, Line5); The dialog boxes all have the same header files and the contents of DoDataExchange() are similar too. Does anyone know why this is happening? Thanks, Aoife

    C / C++ / MFC c++ debugging help question

  • Problems calling another dialog box.
    A Aoife

    It was already there, but when I deleated #include "Dialog2.h" and added the variable again that worked. Thanks, Aoife

    C / C++ / MFC c++ help

  • Problems calling another dialog box.
    A Aoife

    Hi, I'm (attempting) to make a MFC Dialog based application. In my application I have a dialog box that calls another dialog box. Each have there own class "CDialog1" and "CDialog2". When Dialog1.cpp wants to call CDialog2 I created a private variable of CDialog2 called m_dDialog2 (in CDialog1) and in Dialog1.cpp it calls it using m_dDialog2.DoModal(). This was all working fine but now when I compile I get the following errors: c:\proj\interf\dialog1.h(18) : error C2146: syntax error : missing ';' before identifier 'm_dDialog2' c:\proj\interf\dialog1.h(18) : error C2501: 'CDialog2' : missing storage-class or type specifiers c:\proj\interf\dialog1.h(18) : error C2501: 'm_dDialog2' : missing storage-class or type specifiers I didn't make any changes myself to any of the code in dialog1.h But the strange this is that sometimes (not all the time) when I delete the variable and add it again using "Add Member Variable" it compiles and runs fine. Then after running it I compile it again (without making changes) and the three errors return. I'm getting really frustrated so any comments would be really welcome. Thanks, Aoife

    C / C++ / MFC c++ help

  • Batch File
    A Aoife

    Hello, I need a bit of help writing a batch file. In the line below where I have %1 instead of reading only one word I need to to read an entire string. So to do this I persume that I'll have to read the string from a file. So my question is how do I tell it to read from the file. Lets say the line I need to read is in c:\line.txt echo %1 | C:\myexecutable --sendsms %2 Thanks. Aoife

    C / C++ / MFC question help

  • Read string at a certain point?
    A Aoife

    This worked perfectly, Thanks!

    C / C++ / MFC question

  • Read string at a certain point?
    A Aoife

    Hello, I need to read the following two lines from a .txt file. Name John Doe Number +12345 Then I must extract "John Doe" and "+12345" and send them to an edit box. I tried using strtok() but it didn't work the way I want it to. Is there a way of starting at a particular point in the string? eg in "Name John Doe" at position 6. Thanks, Aoife /********************************************/ FILE *stream; stream = fopen( "number", "r" ); char bufLine1[30], bufLine2[30]; fgets(bufLine1, 30, stream); fgets(bufLine2, 30, stream); char *pNext1 = ?????(bufLine1, ??); char *pNext2 = ?????(bufLine2, ??); strcpy(bufLine1, pNext1); strcpy(bufLine2, pNext2); SendDlgItemMessage(IDC_BOX1, EM_REPLACESEL, FALSE, (LPARAM)bufLine1); SendDlgItemMessage(IDC_BOX2, EM_REPLACESEL, FALSE, (LPARAM)bufLine2); fclose( stream );

    C / C++ / MFC question

  • How to use DLLs
    A Aoife

    Hello, I need to use a dll file (that I downloaded from the net) in my MFC VC++ application, but I am new to dll's and VC++ and don't know where to start. I was hoping that someone knew of a document that I could read that would show me how to do this. Thanks, Aoife

    C / C++ / MFC c++ tutorial

  • Hot to get ouput of console application executed by my program?
    A Aoife

    Go to this site and download the pipe demo. I got this yesterday and it is great!:) It will get the output of any console command. http://sloat.bradsoft.net/c.php Aoife

    C / C++ / MFC question com tutorial

  • MFC Dialog and Pipes?
    A Aoife

    Does anyone know where I could find a good VC++ MFC Example Dialog application that uses pipes? Thanks

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