Click here to Skip to main content
15,921,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PalBlt or FillRect.... - what is faster ? Pin
Tomasz Sowinski8-Mar-02 4:39
Tomasz Sowinski8-Mar-02 4:39 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tim Smith8-Mar-02 5:03
Tim Smith8-Mar-02 5:03 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tomasz Sowinski8-Mar-02 5:11
Tomasz Sowinski8-Mar-02 5:11 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tim Smith8-Mar-02 5:12
Tim Smith8-Mar-02 5:12 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tim Smith8-Mar-02 5:10
Tim Smith8-Mar-02 5:10 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tomasz Sowinski8-Mar-02 5:19
Tomasz Sowinski8-Mar-02 5:19 
GeneralRe: PalBlt or FillRect.... - what is faster ? Pin
Tim Smith8-Mar-02 8:43
Tim Smith8-Mar-02 8:43 
GeneralToo few parameters. Expexted 1! Pin
isCode8-Mar-02 4:16
isCode8-Mar-02 4:16 
Hi I have a problem
When I call this function below, I get this error:
"Too few parameters. Expected 1."
What am I doing wrong here?

Here is the function:

void CMyTreeView::FillProducts()
{
CProductSet *pSet = &(GetDocument()->m_productSet);
pSet->m_strFilter = "[Categories].[CategoryID] = [Products].[CategoryID]";

if (pSet->IsOpen())
{
pSet->Close();
}

pSet->Open();

if (pSet->IsBOF())
return;

pSet->MoveFirst();
while (!pSet->IsEOF())
{
HTREEITEM hProductNode = FindNode(NULL, pSet->m_CategoryName);
InsertNode(pSet->m_ProductName, hProductNode);

pSet->MoveNext();
}
}

Here is the CProductSet:

void CProductSet::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CProductSet)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Long(pFX, _T("[Categories].[CategoryID]"), m_CategoryID);
RFX_Text(pFX, _T("[CategoryName]"), m_CategoryName);
RFX_Long(pFX, _T("[ProductID]"), m_ProductID);
RFX_Text(pFX, _T("[ProductName]"), m_ProductName);
RFX_Text(pFX, _T("[ProductDescription]"), m_ProductDescription);
RFX_Long(pFX, _T("[Products].[CategoryID]"), m_CategoryID2);
RFX_Text(pFX, _T("[SerialNumber]"), m_SerialNumber);
RFX_Text(pFX, _T("[UnitSellingPrice]"), m_UnitSellingPrice);
RFX_Text(pFX, _T("[UnitCostPrice]"), m_UnitCostPrice);
RFX_Long(pFX, _T("[ReorderLevel]"), m_ReorderLevel);
RFX_Long(pFX, _T("[UnitsInStock]"), m_UnitsInStock);
RFX_Long(pFX, _T("[SupplierID]"), m_SupplierID);
//}}AFX_FIELD_MAP
pFX->SetFieldType(CFieldExchange::param);
RFX_Text(pFX, "ProductNameParam", m_ProductNameparam);
}


GeneralRe: Too few parameters. Expexted 1! Pin
8-Mar-02 4:23
suss8-Mar-02 4:23 
GeneralRe: Too few parameters. Expexted 1! Pin
isCode8-Mar-02 4:59
isCode8-Mar-02 4:59 
GeneralHibernation Notification Pin
Steve Thresher8-Mar-02 3:58
Steve Thresher8-Mar-02 3:58 
GeneralRe: Hibernation Notification Pin
Tomasz Sowinski8-Mar-02 4:04
Tomasz Sowinski8-Mar-02 4:04 
GeneralRe: Hibernation Notification Pin
Steve Thresher8-Mar-02 6:23
Steve Thresher8-Mar-02 6:23 
Generaldeque of structures Pin
Merle Pittman8-Mar-02 3:53
Merle Pittman8-Mar-02 3:53 
GeneralRe: deque of structures Pin
Joaquín M López Muñoz8-Mar-02 3:58
Joaquín M López Muñoz8-Mar-02 3:58 
GeneralRe: deque of structures Pin
Tomasz Sowinski8-Mar-02 3:58
Tomasz Sowinski8-Mar-02 3:58 
GeneralRe: deque of structures Pin
Merle Pittman8-Mar-02 4:02
Merle Pittman8-Mar-02 4:02 
GeneralRe: deque of structures Pin
Tomasz Sowinski8-Mar-02 5:03
Tomasz Sowinski8-Mar-02 5:03 
GeneralRe: deque of structures Pin
8-Mar-02 17:38
suss8-Mar-02 17:38 
QuestionHow do I get multi-node select in a Tree Control? Pin
david ewan8-Mar-02 3:33
david ewan8-Mar-02 3:33 
AnswerRe: How do I get multi-node select in a Tree Control? Pin
Tomasz Sowinski8-Mar-02 3:43
Tomasz Sowinski8-Mar-02 3:43 
GeneralDialog Boxes Pin
Mark Ryall8-Mar-02 2:26
Mark Ryall8-Mar-02 2:26 
GeneralRe: Dialog Boxes Pin
Tomasz Sowinski8-Mar-02 2:31
Tomasz Sowinski8-Mar-02 2:31 
GeneralRe: Dialog Boxes Pin
Joaquín M López Muñoz8-Mar-02 2:38
Joaquín M López Muñoz8-Mar-02 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.