|
Is your Log() function called from its own thread or from multiple threads ?
One chance for the err can be :
In your code each time you concat CString the heap has to be locked/unlocked multiple times.If this is hapenning from multiple threads it again induces context switching.
Note:
CString is not supposed to be shared between threads.
It's not a bug, it's an undocumented feature. suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
Hi all,
My application needs to know if it's running through remote desktop, to optimize graphics and stuff for low bandwitdh connections.
Question:
How do i automatically detect that the user is running my app through remote desktop?
Thanks in advance!!
|
|
|
|
|
Maybe this function works:
GetSystemMetrics( SM_REMOTESESSION );
which returns a bool indicating wherever the user is using RD... havent been able to test it yet...
|
|
|
|
|
works, but the compiler refused to accept the SM_REMOTESESSION value, even including "winuser.h", where it is defined. So, i just passed the value 0x1000
I know its a bad policy, but im not going to waste a lot of time with compiler sh$t.
|
|
|
|
|
Define WINVER to be 0x0500 before including any headers (typically in StdAfx.h), and ensure you're using a relatively recent Platform SDK (the headers included with VC6 don't have this definition).
You can consider this a 'safety guard' to stop you accidentally using a feature not supported on older systems.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I think you have the right idea, but be careful, it just means it probably isn't supported on older verions (e.g., Windows Nt 4.0.) You could follow the suggestion to change your platform version and recompile, but I'm not sure if that means your app will fail to work on older platforms. I haven't risked it.
"Fish and guests stink in three days." - Benjamin Franlkin
|
|
|
|
|
No problem! My app is only supposed to work on win2000+.
I know that in previous versions that might not work...
|
|
|
|
|
|
The URL and text do not match.
Have you considered the possibility that no one here knows of a solution for you? It's just a thought to consider.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
toxcct wrote:
ahahah, yes it does
No, the text was http://www.codeproject.com/script/comments/forums.asp?forumid=1647&fr=351&select=816840&msg=816840#xx813863xx while the URL was simply http://www.codeproject.com/script/comments/. Click on it and you'll see the problem. Your browser should open to an about:blank window.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
ok, but if you read my post to the end, you might understand (i hope) where vietdelphi was wrong :p
TOXCCT >>> GEII power
|
|
|
|
|
Connection.Execute has a known memory leak problem. However this is corrected with new MDAC. Download latest MDAC from microsoft and check whether it disappears
It's not a bug, it's an undocumented feature. suhredayan@omniquad.com
messenger :suhredayan@hotmail.com
|
|
|
|
|
Thanx you for all. And Sorry!
I´ll try with MDAC 2.8
|
|
|
|
|
ElitePCGaming is the best pc gaming site you will ever lays your eyes on... and they have no idea who i am, just call me an anonymous spammer! for 2 dollars ill spam your site too!
ElitePCGamer rocks your socks off
|
|
|
|
|
Sad thing is...this technique just worked on me
I can't help it...it's like a car accident...I just had to look...
To be honest it was a nice site, but i'm not a gamer so it's ultimately pointless for me...
Quick question though...if no one knows who you are how am I suppoesed to give you 2 bux??? Why don't you send me your details like address, fname, lname, CC number, etc...
Cheers
How do I print my voice mail?
|
|
|
|
|
Hope I don't thing any Intresting there!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I wrote A COM Server Dll using the ATL Wizard, but i have one problem - it works only on my computer. When i try to register this dll with regsvr32 on another computer it shows me an error message. I can't remember now what was the message .
|
|
|
|
|
It is very difficult to answer that question if you can not remember the error message. But I think you should check again the following:
1. ALT.DLL is require if you build at MinSize mode. In this case, you can switch to MinDependency mode, so that ATL.DLL is independent.
2. If your DLL used MFC, you must ensure that in the computer where you get problem has installed MFCxx.DLL correctly. Ofcouse, in case DLL build with DEBUG mode, the MFCxx.DLL can be different.
Hope useful.
|
|
|
|
|
When adding new text at the botton how can you arrange for the scroll bar (vertical) to be set such that the last section of text is always displayed.
Currently when I move the scroll bar, it is reset when the program addeds the next bit of data.
|
|
|
|
|
After laying out multiple CToolbars in a CMDIFrame I have the following layout;
(1) Top of client area, 1st row, contains 5 toolbars (side by side)
(2) Underneath the above I have a 2nd row with two toolbars (side by side)
(3) At the bottom of the client area I have two more toolbars on a single row (side by side)
Unfortunately, when the user resizes the parent frame so that a toolbar to the right edge of window falls outside it, MFC decides to move the toolbar in question down one row. Even worse, it does not move it back afterwards!
This looks awful, and is very annoying.
Anyone have any suggestions on how to prevent MFC doing this?
I'm using the Visual C++ 6.0 IDE and that is able to keep its individual toolbars on the same row when I resize the main window (even when the toolbars go off screen) so how does it do it?
Many thanks,
Glidz
|
|
|
|
|
I am wondering how can I copy/backup a locked file.
Seems that almost all backup programs can do it so it's sound simple, but I can not find anything on this
Can you help me and give me some guide lines ?
what and where to search for ?
Thank you in advanced .
Vini
|
|
|
|
|
CoolVini wrote:
Seems that almost all backup programs can do it...
All the ones I've ever used will skip files open by other processes.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
If the process opening the file did not specify any sharing options, you cannot access it.
You should specify GENERIC_READ and FILE_SHARE_READ | FILE_SHARE_WRITE when openign the file.
Flirt harder, I'm a Coder
mlog || Agile Programming | doxygen
|
|
|
|
|
Anyone here knows how to do a program to calculate loan using MFC?I need some help.thanks
felix joe
|
|
|
|