|
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
|
|
|
|
|
As you pointed out, the problem lies in the hidden this parameter. One usual workaround to this goes as follows. Store the this parameter into the internal data kept by HWND s with SetWindowLong(hwnd,GWL_USERDATA,reinterpret_cast<LONG>(this)) and set as your window proc a static function that merely recovers the this parameter and forwards the call to the real, per-object window proc:
class cwindow
{
cwindow(HWND hwnd)
{
SetWindowLong(hwnd,GWL_USERDATA,reinterpret_cast<LONG>(this));
}
static LRESULT CALLBACK stub_WindowProc(
HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
cwindow object=reinterpret_cast<object*>(GetWindowLong(hwnd,GWL_USERDATA));
return object->WindowProc(hwnd,uMsg,wParam,lParam);
}
LRESULT CALLBACK stub_WindowProc(
HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
...
}
}; Get the idea?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thank you for your help
QMuffs
|
|
|
|
|
All documented SC_ values (wParam of WM_SYSCOMMAND) have zeros in the lowest 4 bits. But I sometimes receive this message with lowest four bits of wParam set to 0x2. For example when I doubleclick the caption of an MDI child window, I SOMETIMES receive 0xf122 instead of 0xf120 (SC_RESTORE). May I consider these values valid system commands ?
Is that behavior ever platform independent ?
|
|
|
|
|
Windows sends data internally in the fields that you are not supposed to use. So I would consider it valid.
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!
|
|
|
|
|
|
Hi Guys,
I want to write text to a text file in a specific format ast follows:
Exchange Result
-------- ---------
FOREX 1
NASDAQ 0
LSE 1
Basically I want to write text in 2 columns the setting the width of each column
Any ideas appreciated
|
|
|
|
|
printf("%s\t%d\n", string, value); ???
Is there an environment variable about the TAB so that you can set it, to make sure the second column start at a specifed place?
|
|
|
|
|
Interpretation of the TAB character depends on the program used to view the output. Using spaces is better, but even then the file must be viewed using a constant-width font (e.g. Courier) to see the columns correctly.
|
|
|
|