|
I think you should reffer to some good books on C and C++ (Ex: C and C++ Programmers Bible)
|
|
|
|
|
You shouldn't be using these low level and old fashioned string manipulations routines without a compelling reason to do so. Instead use a string class such as the standard library's std::string or MFC's CString .
Steve
|
|
|
|
|
i am retrieving a unicode field from a database table using getfieldvalue function. but due to some data loss it is displaying question marks. how can i retrieve a double byte value from database in vc++
|
|
|
|
|
Please elaborate on the question ?
Regards,
Paresh.
|
|
|
|
|
roli_sri wrote: but due to some data loss it is displaying question marks.
You need to track where data is lost. I would start with setting up a break point where I start reading date from the database.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I want to add maximize and minimize buttons in a property sheet implemented as Dialog based MFC application.
|
|
|
|
|
wrote: I want to add maximize and minimize buttons in a property sheet implemented as Dialog based MFC application.
start by adding a name to your codeproject account. i like to know who i speak to.
then look in the properties dialog over your propertySheet in the resource editor, and spot the minimize/maximize options...
|
|
|
|
|
toxcct wrote: start by adding a name to your codeproject account.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
toxcct wrote: start by adding a name to your codeproject account.
this is exactly what i was about to tell him.
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
:->
an advice : type with your nose, you'll be long faster !!!
|
|
|
|
|
toxcct wrote: an advice : type with your nose, you'll be long faster !!!
Regards,
Vijay.
God may not give us what we 'want', but he surely gives us what we 'need'.
|
|
|
|
|
|
I cant get the damn list box to change the ownerdraw property when i subclass it.
Part of the code :
CWnd * wnd = NULL;
while (wnd = FindWindowEx(this->m_hWnd,(wnd == NULL ? NULL : wnd->m_hWnd),"ListBox",NULL))
{
MyListBox * temp = new MyListBox();
temp->SubclassWindow(wnd->m_hWnd);
temp->ModifyStyle(0,LBS_OWNERDRAWFIXED);
TempControlAdd((CWnd*)temp);
temp = NULL;
} Thanks for the Help.
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
Hi there,
I think the LBS_OWNERDRAW* styles can be set only upon creation of the listbox control.
|
|
|
|
|
Thanks for the help.
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
If anybody need a solution here is one[^]
Artificial Intelligence is no match for Natural Stupidity
No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
I can't always be wrong ... or can I?
|
|
|
|
|
Hi,
I created dll and trying to export a function which in turn calls InvokeHelper function,But my dll is created using win32 dynamic library it is not recognizing InvokeHelper,so i included the macros,
_AFX_NO_OCC_SUPPORT and AFX_CDECL.Now it is showing error as,
error C2061: syntax error : identifier 'CWnd'.What i have to do.Please help me...
Siddharth
|
|
|
|
|
Include afxwin.h , remove statement #include <windows.h> , if there is any.
siddharthsan wrote: _AFX_NO_OCC_SUPPORT and AFX_CDECL
I wonder, why you needed to use this?
|
|
|
|
|
If I include afxwin.h it showing the following error,
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
What i have to do...
Siddharth
|
|
|
|
|
Remove line #include <windows>, if there is any.
|
|
|
|
|
I removed windows.h from stdafx.h and included afxwin.h in my header file.Now it is not recognizing the InvokeHelper and it's parameters.Giving error as
error C2065: 'InvokeHelper' : undeclared identifier
error C2065: 'DISPATCH_METHOD' : undeclared identifier
error C2065: 'VT_EMPTY' : undeclared identifier
What would be the problem...
Siddahrth
|
|
|
|
|
How do you expect to use an OCC_SUPPORT method by using the _AFX_NO_OCC_SUPPORT macro to ommit
OCC support in the MFC code??
Get rid of that macro!
*EDIT* You probably shouldn't be messing with AFX_CDECL either unless you know what you're doing.
Look at the declaration for CWnd::InvokeHelper()...
#ifndef _AFX_NO_OCC_SUPPORT
COleControlSite* GetOleControlSite(UINT idControl) const;
void AFX_CDECL InvokeHelper(DISPID dwDispID, WORD wFlags,
...
See why it won't work with that macro?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi
When i use CDialogTemplate class in my application, then there is error occure as error C2065: 'CDialogTemplate' : undeclared identifier, so to use this class is there is need to include any Header file in code.
Regards
Atul M
|
|
|
|
|
Its declared in afxpriv.h . But why you needed to use this class ?
Refer this[^] link for more information.
|
|
|
|
|
Off the top of my head the answer would be YES! A template is just an outline of the code which the compiler needs to generate. That means that without the outline it can not generate it. Therefore it does not exist and can not exist until you provide the outline for it.
Bottom line: Include the header for any template that you wish to use.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|