|
Oh wow. I've never heard of that before ).
What are they for though? Or is it just some legacy thing?
Thanks very much!
|
|
|
|
|
swifty666_2000 wrote: What are they for though?
Trigraphs, sequences of three characters (introduced by two consecutive question marks), allow C programs to be written using only the ISO Invariant Code Set. You can use them in C source files with a character set that does not contain convenient graphic representations for some punctuation characters.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
I've got a problem with sinhronisation of a function which is called from several threads. The function do no use static variables. And there is no connection variables between threads. In debuger the aplication crashes on new or delete operators inside the function. In internet I've read that these operators are already synhronized. Please help me to find solution of the problem.
|
|
|
|
|
Are you using a multi-threaded variant of the C runtime?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I am not realy know what you mean with "multi-threaded variant of the C runtime"? If this is project settings in VC6.0 on page "Code generation", I have for "Use run-time library" defined "Debug Multithreaded DLL" and "Multithreaded DLL" for realize. If I am wrong please tell me in detail what did you mean.
|
|
|
|
|
That's what I meant - so it's obviously not that that's your problem...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I found the problem, there was "static" variables inside functions.
|
|
|
|
|
Hi,
I have built 2 MSI with same configuration. Just rebuilded. When I am comparing those 2 MSIs using MSIPackageDiff, I am getting some of the error in Binary Table.
Can someone explain me what are these changes?
Thanks & Regards,
Swapnil D. Lokhande
|
|
|
|
|
Can someone please direct me to a source of information on how to trace / debug standard MFC commands. For example File.. Save.. I am using "MFC Internals" for a guide but cannot see how to debug the command message flow.
Thanks for reading
Cheers Vaclav
Update
I have overridden OnCommand in main and MDI frame and can trace the command flow from the main menu to the MDI OnCommand. Now how do I get / step into base class? F11 does not respond.
modified on Tuesday, July 21, 2009 4:07 PM
|
|
|
|
|
|
Thanks Mike,
The article does confirm what I got from the book. What I am still missing is how to get to the base class using debug steps.
I must be missing some options in my VC 6.0 because F11 just does not do anything visible and the program is stuck in last debug point. I will try just source code of the MFC base class next.
Vaclav
|
|
|
|
|
Up to a point, I think at the Win32 level, there is no more visible "code" to step into.
This signature was proudly tested on animals.
|
|
|
|
|
After raking a short brake from coding I came to the same conclusion.
It always amazes me how taking breaks from many “problems” gives person a different outlook on things. Was that covered in some famous book?
Thanks for your help.
Vaclav
|
|
|
|
|
I would like to use the CMFCtoolBars to replace CToolBars, so I am guessing I need to integrate the Feature Pack to my MFC application. Do I have to change all the base classes(CStatusBar, CWinApp...etc) to those from the feature pack if I only wanted to change the CToolbar, or can I change CToolBar only and still get it to work?
Thanks
|
|
|
|
|
I think you can just "plug'n'play".
This signature was proudly tested on animals.
|
|
|
|
|
I created a test application using LsaEnumerateLogonSessions and LsaGetLogonSessionData, which displays the number of interactive logged on users. It works fine on Windows XP, but it displays 2 interactive logged on users on Windows Vista, even though I have only one user: the Administrator.
Can anyone tell me why this happens?
Thanks!
|
|
|
|
|
Eikthrynir wrote: ...but it displays 2 interactive logged on users on Windows Vista, even though I have only one user: the Administrator.
Is the other a legitimate user, just not logged on?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I modified the application so that it displays also the user name. It's the same user...
|
|
|
|
|
The LogonId data members are different, even though the UserName data member are the same...
|
|
|
|
|
So it's showing Administrator twice? When I use that function on XP, it returns 6 sessions, even though I am the only one logged on to my machine. I don't have access to a Vista machine to see how it behaves.
What do NetWkstaUserEnum() and WTSEnumerateSessions() return?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
No need to check. I think I known what's happening. I modified the application to display other information too. The SessionId for each occurence of MyAdminUser is different: it runs both in Session 0 and Session 1 and that's why it is shown twice. On Vista (I guess Window 7 too) I only have to skip counting the user running in Session 0. Thus, I get the correct number of interactive logged on users. As I have seen, on Windows XP there is no need for this trick.
I consider this problem solved now.
But there is something strange that happened while I was testing on my Vista machine: I had MyAdminUser and MyLimitedUser both logged on; my application showed 3 users (Session 0 (MyAdminUser), Session 1 (MyAdminUser), and Session 2 (MyLimitedUser)); I logged off from MyLimitedUser and immediately ran the application; it still showed 3 users; after almost minute, when I re-ran the application, it correctly showed 2 users: MyAdminUser (Session 0) and MyAdminUser (Session 1). What I am trying to say is that it showed 3 users for almost a minute...
The strange thing is that I could not reproduce the problem. I tried to make it happen again, but I couldn't. I wonder why Windows needed so much time to update the number of interactive logged on users...
|
|
|
|
|
Eikthrynir wrote: I wonder why Windows needed so much time to update the number of interactive logged on users...
Caching?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All,
I am having COLORREF variable and i need to apply 60% alpha value to this color.
COLORREF clrSelection = RGB(255,65,67);
My requirement is to apply alpha value as 64 to the 'clrSelection' variable. How to do this in C++,MFC?
Thanks in advance,
Mutpan.
|
|
|
|
|
AFAIK, you need to use GDI+ inorder to use alpha.
But you can keep the alpha value in COLORREF as
COLORREF clr = RGB( 1, 2, 3 );
BYTE alpha = 4;
clr |= ( alpha << 24 );
- ns ami -
|
|
|
|