|
Jawache wrote:
I put a breakpoint in the connstructor and its actually called twice? I thought there was only ever 1 CWinApp derived object
Yes, there should be exactly one CWinApp-derived object. Look at the call stack when code hits the breakpoint in constructor.
Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
|
|
|
|
|
The first CWinApp Derived is
CWinApp _afxOleWinApp;
the second is the normal
CExplorerApp theApp;
I think its safe at this point to mention that i'm using some activeX controls in my applications. I suppose thats what the _afxOleWinApp is all about.
The constructor is called twice becuase two objects are created, but the destructor is called once.
I think i've got it.
The descructor is called for _afxOleWinApp and since no documents have been added to this one the m_pDocManager is NULL by the time the destructor is called.
This must cause some error and the app to terminate incorrectly.
What is _afxOleWinApp is this correct behavior, to have 2 WinApps?
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
_afxOleWinApp is defined in dll-related MFC source files. The comment next to declaration states that '// This CWinApp is required so this module state has a CWinApp object!'
It seems you're somehow managed to mix dll-mode MFC into your .exe. Is _afxOleWinApp declared in dllinit.cpp or dllole.cpp?
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
its declared in dllole.cpp
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Jawache wrote:
its declared in dllole.cpp
Maybe your ActiveX controls are MFC-based?
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
I reckon they are.. i'll contact the author.
Should it matter though, I thought the whole COM ActiveX thing was entirely self contained i.e. it shouldn't matter what they are written in as long as they have the same interface.
So basically, CExplorerApp theApp; is not being destroyed. So VC is picking up memory leaks.
There must be an error after the destruction of _afxOleWinApp before theApp can be destroyed.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Got it.
The brute force method. Make a baseline and then change code randomly untill it goes away.
Turns out it was some sort of strange recursicve pointer deletion in the Splitter Window Class.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Is there any way to set a contitional breakpoint when m_pDocManager changes or something?
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Hi dear,
I want to save the CDC class content into a bitmap file.
How can I do this?
I've done it by using GDI+ simply because this functionality exists in GDI+ library. But I don't wanna use GDI+ in my application.
|
|
|
|
|
I hope you don't mind me asking but i was looking to implement similar functionality in my app a bit later.
Is there an article or some information you can point me to as to how to accomplish this?
Cheers
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Hi dear,
I'm looking for a class or library for crating a 3D plot
for x,y,z series of data, programmatically.
a 3D plot, as you've seen in MATLAB software.
Thank you in advance.
|
|
|
|
|
Have you tried octave.
Only used it on UNIX nut i'm pretty sure its available for Windows.
http://www.octave.org/
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Have you tried ROOT ?
http://root.cern.ch/
Jonathan de Halleux, Belgium.
|
|
|
|
|
Hello,
I try to figure myself, but can't, so please help:
I want to place a input box and a button in taskbar,
which stay there all the time. When user have to search for a
keyword, type it in input and hit the button.
Which is the way to place windows controls in taskbar?
But in system tray instead??
Thanks in advance.
|
|
|
|
|
You need to create either a application bar or a taskbar (band?) which contains your controls.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
Objects in the taskbar are called "Desktop bands". Article here[^]
MS quote (http://www.microsoft.com/ddk) : As of September 30, 2002, the Microsoft® Windows® 2000 DDK, the Microsoft Windows 98 DDK, and the Microsoft Windows NT® 4.0 DDK will no longer be available for purchase or download on this site. Support for development will ship at the same time as the Windows XP Service Pack 1 (SP1) release.
|
|
|
|
|
Thanks a lot, at least I know now what
I'm searching. I really forgoted the
term "Desktop band", and I did lot of searches
after other keywords.
Regards
|
|
|
|
|
I use the StretchDIBits to stretch blt a bmp to memory dc,
But when blt a large bmp file(4000 X 3000 X 24bit, or larger)
The part of displayed image will be wrong, for example, the top part of the image will disply the bottom part, and the botom part will display nothing
Why this happened ?
Any one meet this errors ?
It's me, code_cold
|
|
|
|
|
If i want to send and receive bitmap by socket, how i can do?
|
|
|
|
|
What is the difference between #include "" statements declared in the .cpp and the .h files?
tx
J
|
|
|
|
|
Jolene wrote:
What is the difference between #include "" statements declared in the .cpp and the .h files
There is no difference!(?)
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
apart from the fact that include statements in .h files will also be included in any other files that include that .h file there is no difference.
I prefer to only add #include statements in .h file if absolutely necessary if it isn't i use forward decraltions of the classes.
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
|
You want just a link or a REAL implementation like the My Computer icon?
The link is simple placing a .lnk file into the users ?:\Documents and Settings\[username]\Desktop.
The other way requires a extending the explorer namespace (think twice before you say 'thats what i need')
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
I don't want a link obviously, that's why I put "shell extension" into my subject line
Andreas Saurwein wrote:
The other way requires a extending the explorer namespace (think twice before you say 'thats what i need')
I don't need it really. But I want it. Any pointers, articles...?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|