|
Andreas Saurwein wrote:
And dont tell me that I should not use my cat anymore.
Use your cat, but don't exploit it
BTW: the email you're using for CP response notifications bounces.
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Tomasz Sowinski wrote:
BTW: the email you're using for CP response notifications bounces.
I noticed that. But it does so only for mails coming from codeproject. Any other source works fine. I get the notice that the received header contains a known spam source (codeproject.com ? ). Seriously, I think that its comming from the psi.ca mailserver.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
Hi,
i've made a menu with a few items. The called handlers are in "MainFrm.cpp" as On... implemented. So far so good...
BUT when the focus is on an control in a sdi view of the main program i can't
get the event. My Program does nothing when i click on the menuitem.
How can my control get informed, when a menuitem event is fired ?
Marco
|
|
|
|
|
Are you awating the event in the CMainFrame::On... while the control has focus, or in the control itself (C?Control::On...)?
Is'nt the message trapped in the CMainFrame::On..., while You are awaiting it in the control?
The menu generates WM_COMMAND message which is send to the application message main message handling loop. The handler for the message is then searched in the main window, if not found in it, the handler is searched in the child window with focus and so on.
Sonork 100.15206;PavelK
|
|
|
|
|
Hi,
the message handler code is in CMainFrame, but it is not called if the focus is at the control. The menuitem code CMainFrame::On... should work at the whole application, independently which control the focus has.
Marco
|
|
|
|
|
You are right. Can't figure where the problem can be .
Is the control a standard one?
Sonork 100.15206;PavelK
|
|
|
|
|
Hmm,
yes these are all standard controls.
Marco
|
|
|
|
|
The project I'm working on is quite big now, but I don't think it's messed up too much
What's happen? Some weeks ago this situation started: everytime I add a CEdit or any other item to a CDialog based class, I have to "Rebuild All" the project because the compiler tells me that it can't find "IDC_XXX" identifier.
Can anyone help me?
Thanks in advance.
|
|
|
|
|
The compiler doesn't know that the resource.h file has been updated. I used to have this problem when I included resource.h via the stdafx.h header file.
Michael
Time flies like an arrow. Fruit flies like a banana
|
|
|
|
|
Just add the resource.h file only to the .cpp files where you actually need any ID defined in this file. Never ever put the resource.h into your stdafx.h, as convenient as it may seem.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
Thanks!
There was an heaeder in "stdafx.h" that included an header that included an header tht included "resource.h"
|
|
|
|
|
I am writting a Win32-DLL, in resources a define a string-table to store all my messages i will use with AfxMessage().
When I use the DLL in a test application, it uses the string-table of the program not of the DLL-resouces, displaying not desired messages.
What can I do ?
Thanks a lot !
|
|
|
|
|
Call AfxSetResourceHandle() with the handle of your DLL. You can do a LoadLibrary() even if you use the DLL implicitly (imported functions).
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
It works !
But now i cannot use the resources of the program.
How can i use several resources definitions together ?
Thanks again !
|
|
|
|
|
|
If using MFC in DLL is an option, you may create 'MFC extension DLL'. Resources in extension DLL and .exe form 'resource chain'. In this case, MFC searches through resources in .exe and all .dlls.
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Thanks ! I will you MFC extension DLL
I've found also a nice tutorial in
http://www.devx.com/free/mgznarch/vcdj/1997/jan97/evryth1.asp
Best regards )
|
|
|
|
|
I will USE ... I mean, sorry !
|
|
|
|
|
Hello everybody,
In a new application, which a dialog box application i have a message error which appears and which tell me:
" Unhandld exception in Fractal_v1_0.exe(MSVCRTD.DLL):0xC0000005:Access Violation"
(Fractal_v1_0 is the name of my project!)
So, i meet often the problem "Access Violation" caused by mistake in memory allocation for different pointers, but here i don't understand!
so if someone could help me!
thanks in advance for your answers
gerald
|
|
|
|
|
Please, build a debug version and run it under the debugger. Since it faults in the runtime library, it should be obvious why it fails when run in the debugger.
Common reasons for access violations are str...() functions with null pointers or invalid strings (source or target, length wrong), memcpy/memmove with invalid source or target locations. Also overwrites of allocated memory or stack may cause this error.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
Hi I have a problem with return key and dialog based applications. While I run my dialog based application in MSVisual C++, it closes automatically when i press return key (Enter Key). Can somebody help me to get rid of this problem?
Ravi
|
|
|
|
|
|
I've created a simple instant messaging application (Client+server) using TCP protocol.
I want my client to connect to the server via well known proxies also. (e.g SOCKS and HTTP). For this purpose i am in search of any open source code or plugin control that i can easily embed in my client application. If you know any, then please tell me. I would be more glad if the code not uses MFC.
|
|
|
|
|
Hi all, here's my problem.
Im developing an activex control to work as a "proxy" between a server and a pda. The users will go to a webpage and from that webpage, they will be able to update/change the configuration of our app on their pda.
The problem is that sometimes, the files that we need to download are a bit too big to put in the asp generated code so we thought we'd let the activex control do the downloading to pc by itself. This works great with HTTP, using wininet, but fails misserably with HTTPS[1]. Ive checked out msdn and tried the things they say at http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q168151&[^]
Im fairly new to this webstuff thingamajiggs so I thought I'd check to see if anyone has had similar problems with code working with HTTP but not HTTPS.
[1] I get a webpage back saying: "ERROR: The requested URL could not be retrieved"
“Our solar system is Jupiter and a bunch of junk” - Charley Lineweaver 2002
|
|
|
|
|
MSDN[^] contains a nice sample how to download a file as you need it. It works also fine with a https connection.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|