|
Loop through and disable all the controls, but leave the window enabled.
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
The windows in the task list, as it's more correctly called, meet the following criteria:
- No parent
- Visible
- No owner and WS_EX_TOOLWINDOW, OR Owner and WS_EX_APPWINDOW
- At least one character of text
Peter O.
|
|
|
|
|
|
is it possible for me to create a function with 3 return values?
|
|
|
|
|
|
or you could have it return a struct:
struct MyFuncReturnType
{
int one;
std::string two;
void* three;
};
- Roman -
|
|
|
|
|
|
1. Read a C/C++ book.
2. If you really wanna do it you can use assembly to push the values onto the stack and than pop them when the function returns.
3. I really do think u need a C/C++ book
bibamus, edamus, cras moriemur [eat, drink, for tomorrow we die]
|
|
|
|
|
I have a sample of win2k ddk's netcfg.I want to write the same program.But when I use there include file there are many errors.
d:\program files\ntddk\inc\rpcndr.h(880) : error C2146: syntax error : missing ';' before identifier 'MaxCount'
d:\program files\ntddk\inc\rpcndr.h(880) : error C2501: 'ULONG_PTR' : missing storage-class or type specifiers
d:\program files\ntddk\inc\rpcndr.h(880) : error C2501: 'MaxCount' : missing storage-class or type specifiers
what's wrong with the program.I have set the include file path in Vc.
Please help me.
Friends who have written ddk program help me please.
I want to ask a question.^_^
|
|
|
|
|
someone help me?
|
|
|
|
|
|
i installed the platform sdk.But there is the same question.What's wrong with it?
I want to ask a question.^_^
|
|
|
|
|
This may seem like and odd question, but why do most people prefix some of their variables with "m"? Does it help distinguish member variables or somthing of the sort?
|
|
|
|
|
|
Yes, the prefix helps the reader to recognize a member variable, one that isn't declared right there in the function. Other prefixes are g_ for globals (pretty common), and s_ for statics in a function (less common, although I use it). I've also seen one or two people use c_ for controls (such as a CListCtrl in a dialog) but I prefer using m_wnd for those.
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
I like the c_ for control.
Always I use the first letter in lower case to show the type.
eg int m_iCount, CSize m_zBox, Point m_pDot. etc.
Especially in larger apps I find it makes Life easier with the intellisense stuff.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said byRoger Wright about me.
|
|
|
|
|
|
Thank you.
|
|
|
|
|
|
hello everybody!
I have some trouble in freeing up the memory allocated for dialog items.
I have created the Gui screens using new and I use DestroyScreen to free my memory like this:
<br />
virtual void DestroyScreen(void) <br />
{<br />
if (m_pDlg->GetSafeHwnd())<br />
{<br />
delete m_pDlg;<br />
m_pDlg = NULL;<br />
}<br />
}<br /> }
I go through each dlg using this DestroyScreen function.
The returned warning is:
Warning: calling DestroyWindow in CDialog::~CDialog --
OnDestroy or PostNcDestroy in derived class will not be called.
Detected memory leaks!
Dumping objects ->
{3539} client block at 0x0081A330, subtype 0, 332 bytes long.
a CDialog object at $0081A330, 332 bytes long
Could anyone please help me with this one?
Thanks everyone!
Cheers,
wilche
|
|
|
|
|
|
You're destroying the dialog C++ object before the dialog window has been destroyed. Call m_pDlg->DestroyWindow() (assuming these are modeless) and call delete this; in each dialog's PostNCDestroy() .
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
let me guess ur problem:
m_pDlg is a pointer to CDialog or its sub-class, say XDialog.
instances are not from XDialog, but its sub-class.
if my guess is correct, simply change distructor to 'virtual' one. that is all.
for MFC class, it is not necessary to call Destroy, MFC can do it itself.
includeh10
|
|
|
|
|
I'm learning VC++/MFC programming.
I want post data to a webserver by http protocol,but it is errors
Source followed:
CString strHeaders =_T("Content-Type: application/x-www-form-urlencoded");
// URL-encoded form variables -
// name = "John Doe", userid = "hithere", other = "P&Q"
CString strFormData = _T("t=abcd");
CInternetSession session;
CHttpConnection* pConnection =
session.GetHttpConnection(_T("http://127.0.0.1/test.asp"));
CHttpFile* pFile =
pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST,_T("http://127.0.0.1/test.asp"));
why the pFile is null?
6对9说:好好的,打什么倒立。0对8讲:胖就胖一点了,系什么腰带。7对2讲,别跪了,跪死了也不嫁给你。5对3讲:哼,再隆胸也是假的
|
|
|
|
|
lxdff wrote:
session.GetHttpConnection(_T("http://127.0.0.1/test.asp"));
GetHttpConnection requires a server, not a file. Try
session.GetHttpConnection(_T("127.0.0.1"));
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|