|
You forgot to post the details of the crash - is it an ASSERT? GPF? The monitor explodes and all files on HD are deleted?
Are you sure that control with id == IDC_CATEGORIES is defined in the dialog template?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
<small><br />
HWND CDataExchange::PrepareCtrl(int nIDC)<br />
{<br />
ASSERT(nIDC != 0);<br />
ASSERT(nIDC != -1);
HWND hWndCtrl;<br />
m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl);<br />
if (hWndCtrl == NULL)<br />
{<br />
TRACE1("Error: no data exchange control with ID 0x%04X.\n", nIDC);<br />
<big>ASSERT(FALSE); </big> <br />
AfxThrowNotSupportedException();<br />
}<br />
m_hWndLastControl = hWndCtrl;<br />
m_bEditLastControl = FALSE;
ASSERT(hWndCtrl != NULL);
return hWndCtrl;<br />
}<br />
</small>
Actually, it's a bug that causes the dog to eat my homework.
It asserts out on the line I bolded above. I'm going to try and create a new dialog just for kicks and see if that dialog gives me problems.
Thanks for the help.
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
Check nIDC passed to PrepareControl - you may have some #define conflict and symbol that you're using in DDX_Control resolves to number other than used in dialog template resource.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
With a program which has a few DLL projects and one EXE project is it okay to have #define values that are the same between the DLL's and EXE. For example one DLL project has a value for 1000 while another DLL has a value for a 1000, however both are different ID's. Is it wise to make all #defines in
a project different regardless?
Thanks again.
"Why are we hiding from the police, Daddy?"
"We use VI, son. They use Emacs."
|
|
|
|
|
Yes, especially if you plan to create context help someday This also applies to duplicated values mapped to different IDC_xxx inside single DLL or EXE.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How to develop mailclient application in VC++ which uses pop3 protocol to retrew mails from serverlike MSExchange.
Where i have to create database to usersid and password.
how the application can be done.
Pavan ch.
|
|
|
|
|
How to develop mailclient application in VC++ which uses pop3 protocol to retrew mails from serverlike MSExchange.
Where i have to create database to usersid and password.
how the application can be done.
Pavan ch.
|
|
|
|
|
There's some usefull classes (By PJ Naughter) for playing with POP3 & SMTP :
http://www.codeproject.com/internet/cpop3conn.asp
http://www.codeproject.com/internet/csmtpconn.asp
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor@soukhov.com | ICQ:57404554 | http://soukhov.com
|
|
|
|
|
How to develop mailclient application in VC++ which uses pop3 protocol to retrew mails from serverlike MSExchange.
Where i have to create database to usersid and password.
how the application can be done.
Pavan ch.
|
|
|
|
|
Hmmm, if I should answer all those questions, I would have to write the program for you.
Search around here at CodeProject, I think there a couple of classes that receives POP3 mail.
If you want to write it yourself, you should start to look at the WinSock functions (which you would use to connect to the mailserver), and then look at the POP3 protocol, so you know what commands to send to the server...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hi,all
Has any know how to access remote tape on another machine? My code is as following:
CreateFile("\\\\.\\\\TapeServer\\Tape0",.....);
But it fail, how should I do???????
Thanks.
C
|
|
|
|
|
I've written a program to declare in the window explorer, a new namespace and virtual folders inside.
But i cannot drag & drop a folder or a file from the the left tree view of
the window explorer (items in the disk C for example) to a virtual folder in
my new namespace (still on the left tree view of the window explorer).
The flag SFGAO_DROPTARGET is on for the namespace and also on for each
virtual folders when the IShellFolder::GetAttibutesof() method is called !
Someone can help me ?
Pierre
|
|
|
|
|
you must use the true format, if you can't , you will be failed
|
|
|
|
|
What is the true format ?
|
|
|
|
|
I try to perform actions for the event WM_CHAR but this func not performed.
Why ??????
|
|
|
|
|
Some keys do not produce OnChar messages. But you may catch the WM_KEYDOWN and WM_KEYUP messages.
rtfm!
MSDN says...
Remarks
Because there is not necessarily a one-to-one correspondence between keys pressed and character messages generated, the information in the high-order word of the lParam parameter is generally not useful to applications. The information in the high-order word applies only to the most recent WM_KEYDOWN message that precedes the posting of the WM_CHAR message.
For enhanced 101- and 102-key keyboards, extended keys are the right ALT and the right CTRL keys on the main section of the keyboard; the INS, DEL, HOME, END, PAGE UP, PAGE DOWN and arrow keys in the clusters to the left of the numeric keypad; and the divide (/) and ENTER keys in the numeric keypad. Some other keyboards may support the extended-key bit in the lParam parameter.
Whistler: The WM_UNICHAR message is the same as WM_CHAR, except it is designed to send or post Unicode characters to ANSI windows.
(Best Regards,)
Patrick Hoffmann
-------------------------------------------------------------------------------
Technical and Operations Manager, System Analyst, Software Architect
PGP: http://www.novacom.net/pgp/PatrickHoffmann.asc
-------------------------------------------------------------------------------
veturo, der kostenlose NOVACOM Routenplaner für Europa... http://www.veturo.de
--------------------------------------------------------------------------
|
|
|
|
|
try catch this message in PreTranslateMesssage method of your window class...
Best regards,
-----------
Igor Soukhov (Brainbench/Tekmetrics ID:50759)
igor@soukhov.com | ICQ:57404554 | http://soukhov.com
|
|
|
|
|
Hi,
I have an application that makes use of a splitter window.
One pane makes use of several (up to sometimes 20) CView deriven windows.
Each of this views has a lot of child CWnd deriven windows and each such a window also has child controls like CCombo, CEdit
CLisBox etc.
Now I have a serious performance problem I think. My theory is that al the windows are 'eating' performance
by means of their message queues, is this possible? And if so, is it possible to stop these queues for the
above described views that are not active? Or is there a solution to decrease CPU use?
Hope someone can help me with this.
Regards,
Frank.
|
|
|
|
|
A message queue belongs to a thread, not a window, so you could have 15000 windows but they'd share the same queue.
My guess is that any slowdown would be due to MFC having to walk the message maps of all the views whenever a message is sent to your app.
--Mike--
http://home.inreach.com/mdunn/
Sometimes, arming yourself with a big pointy stake just won't do you any good.
|
|
|
|
|
Ok..I think I understand my problem now. I have a lot of CWnd deriven windows in each view which all have their own message map, each of these windows also have child windows which also have their own message map. Some numbers:
10 view classes, with each 10 windows and each of this window 20 sub windows -> say more than 220 windows that have their own message map. Could this cause my program to be very slow? And is there by any means a way to speed up the proces, work around the message map, or let MFC know not to walk through the message maps of certain windows (say all windows in the views that are not active?)
|
|
|
|
|
Hi Friends,
- I need to know following things
a) how to capture html text displayed in the Netscape Browser.
b) how to capture the events like Key down, Key Up events in the Netscape Browser
In any one of these programming languages C ,C++ or VC++, Java.
Thanks,
Prashanth
Prashanth BA
|
|
|
|
|
Hi all,
I want to know how can i change pointer with giving the number for pointing ???
I mean, when i give 2 to function it must point to record two ...
I have algorothm for myself:
m_rs->Move(lLink - m_rs->GetAbsolutePosition() - 1);
lLink is variable that i get of user for pointing ...
Do you have any good idea ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I do you verify that a folder exists with MFC?
Thanks
|
|
|
|
|
Try:
if (GetFileAttributes("My filename") & FILE_ATTRIBUTE_DIRECTORY)
{
// The directory exists
}
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Are the coloured scroll bars (on the codeproject website if you have IE5.5+) able to be achieved in C++ apps? i.e., is there a new version of the common controls with an extended FlatSB api or what???
Would be so perfect for some stuff we're doing here.
Nb
|
|
|
|