|
Um... wow...
It really sounds like it has to be an interaction problem between the two programs then.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I'm affraid. But I really can't see which one. I was also thinking about a shared .dll.
I'll try recompiling, some functions (like fopen) need to be recompile to run properly under NT. We'll see if this is enough.
Yarp
|
|
|
|
|
I need to display a bitmap without a windows frame. I've seen code here at the code project that can do this but can't find it again.
Del
|
|
|
|
|
Use the sample of splasj Screen. That will teach you how to do that...
If you don't find that sample, only add in a simple project, the componnet of splash screen, that you can find in the component gallery, and you will can see the class that make that....;)
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Does anyone know how to catch the EXIT when you exit or when you push the small x on the caption before it exits the program. I would like to in some instances not exit and would like to know where then I can add my code to do this.
THanks for the help.
|
|
|
|
|
one way is add WindowProc to your application, and check if ( message == WM_CLOSE ).
|
|
|
|
|
You can also check the WM_SYSCOMMAND message, with the SC_CLOSE value set in the wParam parameter. This occurs before the WM_CLOSE message.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I've got an MFC app that uses pattern brushes to display a background within dialogs. There seems to be different behavior between Windows 2000 and XP regarding the brush origin . The brush is set in the WM_CTLCOLOR handler OnCtlColor as follows:
<nobr><br />
CPoint origin(0,0);<br />
pDC->SetBkMode(TRANSPARENT);<br />
UnrealizeObject((HBRUSH)_BackgroundBrush);<br />
CRect rect;<br />
if (GetStyle() & WS_CHILD) {<br />
GetParent()->GetWindowRect(&rect);<br />
}<br />
else {<br />
GetWindowRect(&rect);<br />
}<br />
origin = rect.TopLeft();<br />
pWnd->ScreenToClient(&origin);<br />
pDC->SetBrushOrg(origin.x,origin.y);<br />
hbr = (HBRUSH)_BackgroundBrush;<br />
</nobr>
_BackgroundBrush is initialized elsewhere. This code is used in two dialogs; a main dialog, and then a second dialog that is 'embedded' within the main (it has the WS_CHILD style).
The problem I'm having is this. On Windows XP, the brushes all line up, and the bitmap pattern looks seemless across both the main dialog and the embedded one. On 2000, button controls (including group boxes) and statics do not align correctly . Supposedly Windows NT and its successors align brushes automatically, but I've found that they don't always do it correctly.
Any help would be much appreciated.
Gary Wheeler
|
|
|
|
|
I'm not sure if we have a place to post WTL questions yet or not, but has anyone used what ships with VS.NET? The wizard generated query asserts at Allocate.cpp (line 247) when I click the File menu Is anyone here using that could help me?
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
WTL doesn't ship with VS.NET.
But the best place to ask WTL questions is:
Yahoo WTL group
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Well don't I feel stooooopid. I had downloaded the WTL so long ago and installed the Wizard that when I looked at the wizards, I got excited thinking that they were finally shipping it with VS.NET.
In that case, I'm probably just out of date and need to update to WTL 7.
Thanks Tim!
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
WTL Download 7.0
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Thanks Tim.
I just downloaded it and it doesn't even compile the wizard gen'd app! I posted a msg on Yahoo.
Cheers,
Tom Archer
Author, Inside C#
Please note that the opinions expressed in this correspondence do not necessarily reflect the views of the author.
|
|
|
|
|
Hello
I have made an aplication that i would like to fill with some elegant icons.. but because I am terrible on design i would like try out someone elses. I would like to know if anybody know a place were I can get Icons.
Best Regards
Henrik
|
|
|
|
|
Either search through google for "free icons" or search through the lounge posts for "free icons". There are some good links hidden amongst the lounge posts.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
This site has a few
http://www.coolarchive.com/
Roger Allen
Sonork 100.10016
If I had a quote, it would be a very good one.
|
|
|
|
|
If your going use the icons in a shareware application,you should buy a small icon package from a artist or reputable source. The packages are usually cheap (10-15 usd) and you know what the terms of use are.
Many people rip random images from the web and submit it as free icons. I would rather pay a artist a few dollars then deal with stolen images. It not alot of money for peace of mind.
Mark A
|
|
|
|
|
http://www.yxhome.com/softplus/index.htm
|
|
|
|
|
Does anyone know how to setup/add/change/etc. additional directory rights (e.g. to add IUSR_xxx with rights to read and execute) at runtime in VC++ ?
|
|
|
|
|
I cannot figure out a way to get the WndProc as a member function of my window class I am building. Any Suggestions?
QMuffs
|
|
|
|
|
Do you mean you're designing your own C++ framework for encapsulation of Win32 windows?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Yes, I'm designing my own. It has to do with the hidden 'this' argument that is passed to member functions of a class. It gives me this error.
Compiling...
cWindow.cpp
c:\projects\cwindow\cwindow.h(86) : error C2440: 'type cast' : cannot convert from '' to 'long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
cWindow.exe - 1 error(s), 0 warning(s)
QMuffs
|
|
|
|
|
Use static member functions
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Would that make the call to it unique to that instance? If not, how could I make it unique.
QMuffs
|
|
|
|
|
Thank you for your help.
QMuffs
|
|
|
|