|
Hello everybody,
Just one question.
- Does it works at all. I want have my application VC++(MFC, ATL, STL, OpenGL) on LINUX platform.
I'll appreciate any comments and suggestions about Visual MainWin.
Thanks.
Oleg
|
|
|
|
|
Go visit www.sourceforge.net and look for cross platform libraries.
Trust in the code Luke. Yea right!
|
|
|
|
|
Hello,
I have to dynamically create and remove columns in my project.
Creating them is relatively easy but what is the correct way to delete all columns?
I currently have this code:
while(1)
{
if(m_clMainView.DeleteColumn(0) == FALSE) break;
} But is this a valid method to delete all columns? It never failed but perhaps an OS doesn't assign column number 1 to column number 0 when column number 0 gets deleted?
How would you do it?
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
That'll work. You'll always have a column 0, unless there are no columns.
|
|
|
|
|
Ok, thank you
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
The while(1) is dangerous.
I would do it so :
int i=MAX_COL;
LVCOLUMN *pLVCol;
while (i>0)
{
if (m_clMainView.GetColumn(0,&pLVCol)==FALSE) break;
if(m_clMainView.DeleteColumn(0) == FALSE) break;
i--;
}
and give MAX_COL the current number of columns if you have it, or any value which will never be exceeded. That way, you will always come out of your loop, whatever happens.
~RaGE();
|
|
|
|
|
Good idea! I'll do it so.
Thank you
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Yes, you should always write 8 lines of code when one will do. That way people will think you are earning your salary.
while(m_clMainView.DeleteColumn(0));
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
There are 10 types of people in this world. Those who know binary and those who don't.
Trust in the code Luke. Yea right!
|
|
|
|
|
I have this error during build:
LomalkaBrowser error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CPageSearch::GetRuntimeClass(void)const " (?GetRuntimeClass@CPageSearch@@UBEPAUCRuntimeClass@@XZ)
Generally I know what is a linking and what it does.
In this case I can gues that I need to link some lib, but which one?
|
|
|
|
|
did you DECLARE_DYNCREATE(CPageSearch) without IMPLEMENT_DYNCREATE(CPageSearch, CObject)?
|
|
|
|
|
Yes I did.
Thank you for good pointing!
I read docs about MFC macroses and then remove DECLARE_DYNCREATE(CPageSearch).
|
|
|
|
|
I am trying to format a string for a multiline edit box, but I cannot make a line break using \n . Instead of breaking the line it outputs a box and prints the next line on the same line. Anyone have any ideas?
Matt
|
|
|
|
|
Try \r\n or \x0D\x0A rather than just a line feed.
|
|
|
|
|
basementman wrote:
Try \r\n
Thanks, that worked
Matt
|
|
|
|
|
Have you specified the ES_MULTILINE style?
|
|
|
|
|
Yeah, thats the first thing I checked.
Matt
|
|
|
|
|
|
Hi,
when i use the "Dependency Walker" to see list of exported function in a .DLL file,i find some functions that have "W" and "A" letters at the end of their name.what is the meaning of these leters?
for example in Shell32.dll we have
GetModuleFileNameExA
GetModuleFileNameExW
Regards.
|
|
|
|
|
A = Multibyte
W = Widechar (UNICODE)
|
|
|
|
|
Is it possible to change colors of system brushes (COLOR_WINDOW,COLOR_3DFACE and so on) for current task only? SetSysColors() makes it for whole system.
|
|
|
|
|
i don't think you can do that. If you are coding a project and you want to isolate the colors that i would suggest you use a global function that does something like.
COLORREF MyGetSysColor( int nIndex )
{
COLORREF clr = 0;
switch( nIndex )
{
case COLOR_WINDOW:
clr = RGB( 255,0,255 );
break;
case COLOR_3DFACE:
clr = RGB( 239, 130, 0 );
break;
default:
clr = ::GetSysColor( nIndex );
break;
};
return clr;
}
Thats probably the best you're going to get away with, that is without changing the entire system's color scheme.
Joseph Dempsey
joseph_r_dempsey@yahoo.com
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."
--anonymous
|
|
|
|
|
I have a dialog based application and when I click a button a modeless dialog appears (Well, it just doesn't appear, I create it). The parent of the modeless dialog is the main dialog. Let's call this modeless dialog Child1. Then I create another modeless dialog Child2 and its parent is Child1. If I close Child2 and then Child1 and if I have other windows on the desktop (other applications running) the main dialog window looses focus and hides behind the other applications' windows. However, if I don't create Child2 and I close Child1 the main Dialog remains on top of the other windows. Yes I could try to use BringWindowToTop or set the z order, but I would like to understand this behaviour.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Toni78 wrote:
If I close Child2 and then Child1 and if I have other windows on the desktop (other applications running) the main dialog window looses focus and hides behind the other applications' windows.
Does this happen even if no other windows are open?
|
|
|
|
|
DavidCrow wrote:
Toni78 wrote:
If I close Child2 and then Child1 and if I have other windows on the desktop (other applications running) the main dialog window looses focus and hides behind the other applications' windows.
Does this happen even if no other windows are open?
Yes it does. I mean it just looses focus but it can't hide anywhere.
// Afterall I realized that even my comment lines have bugs
|
|
|
|