|
problem is with your code only, seems it works in debug and not in release!!! watch your code closely for any chance in loosely handled memory. or just share your code, it is a debugging challenge...!!!!
Loka Samastha Sukhino Bhavanthu..!!!
( May all beings be happy and free )
|
|
|
|
|
I set the style of my list
m_list.SetExtendedStyle(m_list.GetExtendedStyle()|LVS_EX_HEADERDRAGDROP);
But everytime after I drag and drop a header, for example drag column 1 to column 2. The data area moved as well and it starts from column 2, column 1 area becomes empty, all data moved to column 2 & 3, some of them mixed together. Is there any other style I should set or any additional code I should wrote?
Thanks!
|
|
|
|
|
R u owner drawing the list control?
nave
|
|
|
|
|
For example, using the example project WTL for MFC part 1 (http://www.codeproject.com/wtl/wtl4mfc1.asp[^])
Smallest Release EXE I could get for VC++ 2005 was about 55KB compared to 28KB for VC++ 2003 and 34.5KB for VC++ 6.0.
What's the reason for it ?
|
|
|
|
|
My guess is extra security features build into the CRT library. That requires more code, so you get larger binaries.
If VC8 still supports the linker switch /opt:nowin98 don't forget to add that, as it will usually reduce the binary's size a bit.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Is there any way to remove these extra security features since it does seem to add a hefty chunk extra onto each compiled app ?
Or would it be OK to use the CRT library from VC++ 2003 ?
If so, which file(s) should I replace ?
|
|
|
|
|
Hi,
I tried to search for this in MSDN, but was unsuccessful after 30 minutes of trying....
Does anyone know how to access a file's Properties - like when you Right Click a .TXT file, and then click the Summary tab....
I want to programmatically put my own info in the Summary fields for:
1) Title
2) Author
3) Comments
... and do it all from my VC++ (MFC) code.
Thanks,
Johnny
|
|
|
|
|
|
john john mackey
I saw your answer in codeproject but i'm sorry i dont know address
|
|
|
|
|
That's "compound document" information. See here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
Thanks! I want to stuff info into these fields that I would otherwise have to extract in the "data" files I create. With these props set, I can just "mouse-over" a file listing in (File) Explorer and get a quick summary.
Johnny
|
|
|
|
|
I saw such c codes:
struct A {
...
}
int fun(long x)
{
...
A z=(struct A *)&fun;
...
}
How to explain that? can anybody help?
Thanks!
|
|
|
|
|
Declare a variable z of type A which takes the value of the address of the function fun .
The tigress is here
-- modified at 18:36 Thursday 27th April, 2006
|
|
|
|
|
It could be code which accesses the machine code of the function fun at runtime. What was the contents of the structure?
Steve
|
|
|
|
|
The struct is just as following:
Struct Node {
int x;
Struct *Node;
}
|
|
|
|
|
|
|
Not digestible with my Visual C++ 2003.
error C2440: 'type cast' : cannot convert from 'int (*)(long)' to 'A *'
Maxwell Chen
|
|
|
|
|
Hi all,
I have an array of pixeles:
UINT * ptPixels;
I want to send the values in this array using CSocket.
Then use StretchDIBits API.
How can I do that?(Converting values correctly)
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
Correct. socket remotely
Kuphryn
|
|
|
|
|
What does it mean?
Every new thing you learn,Gives you a new personality.
|
|
|
|
|
hi to all
1.what is purpose of a member function
that is in the protected in the class defenion
what his abilities ,and what is the difrence if it is in the public ?
2.what is the difrence between protected and privete ?
thanks in advance :->
mayer
|
|
|
|
|
|
im developing an application where i have to use the volume down and up keys. but i cant handle these keys in my code. I mean i want to change their defautl action. Im using NO MFC c++.
Can somebody help me with this?
thnks a lot
Galvanoski
|
|
|
|
|
Not sure about Win CE (I'm guessing PPC means pocket PC) but in regular Win32 you can handle the WM_APPCOMMAND message. The OS sends that to the active app when the user presses one of the additional keyboard keys or mouse buttons.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|