|
Hi all,
I am experiencing a very strange problem with windows XP, and I believe that it is related to the themes, but I am not certain.
I have a topmost style window, that contains an IE control. When I display a context (popup) menu, it appears, then the parent window is forced to repaint, and it repaints on top of the context menu. This happens for the dropdown list box portion of a select control in the embedded HTML of the IE control.
The funny thing is that I can click a few times, and finally get the menu to appear on top of the window. Also if I right click on the desktop to bring up that context menu, the problem occurs, so I think that I have eliminated the possibility of me displaying the popup menu incorrectly.
This problem does not happen on any other OS. I am about to try to disable XP desktop themse and display using the classic UI.
If anybody else has experienced this problem, or knows how to solve it, I would really apprecieate hearing from you.
Thank you
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!
|
|
|
|
|
using the classic windows UI does not change anything regarding this problem on Windows XP.
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!
|
|
|
|
|
I have not tested this, but : could problem be that parent is set to topmost window style and you having a z-order shoot-out?
Just trying to keep the forces of entropy at bay
|
|
|
|
|
I used SPy++ and found the cause.
I am using Jeffrey Richters Appbar class that appeared in an MSDN article a while back. This class handles a notification when a full screen app is shown, and moves the topmost appbar to the bottom of the zorder to prevent it from covering up the full screen window.
In windows XP for some reason, I get about 7 of these notification messages right in a row (I am unsure of the origin of these messages) and this is what is causing the appbar to repaint.
Now I am looking for this cause to hopefully handle this problem in XP gracefully.
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!
|
|
|
|
|
Dear all,
This would be a major easy question to most people here but
How do I launch another program from my program, and to just show the other program window if the program is already launched? Just out of interest, how do I launch a seperate instance of the program instead of just showing it?
Many many Thanks,
Chun Te
|
|
|
|
|
Chun Te, Ewe wrote:
How do I launch another program from my program
Many ways.....a couple of which are:
the std library call: system
thw Win32 call: CreateProcess
the Win32 call: ShellExecute
Chun Te, Ewe wrote:
how do I launch a seperate instance of the program instead of just showing it
This may not be up to you....It depends on if the "other program" will allow itself to run simultaneous multiple instances
Just trying to keep the forces of entropy at bay
|
|
|
|
|
Dear all,
I was told by my professor to make a program in Perl and that is done. I now would like to intergrate it into a GUI program that will execute the Perl program. If this is possible, how do I do so? Does the user have to have a copy of Perl on his/her computer?
Many thanks.
Chun Te
|
|
|
|
|
Yes, they'll need to have perl installed, unless you package the perl program up into an exe using perlapp from activestate or perl2exe from I forgot who. Neither are free, but you can get a 7 day trial license of perlapp, that may do the trick.
-Lunchy
|
|
|
|
|
I love Perl. It's so great that I like with
my C++ too. Here's info on embedding a Perl
interpreter into your C/C++ projects.
No need for the user to install Perl, just
build in your own interpreter into your projects.
|
|
|
|
|
COOL! It's funny, TMTOWTDI is almost getting cliche.
-Lunchy
|
|
|
|
|
At the moment i am having trouble adding tree items using separate functions in Visual C++.
Basically I need a series of buttons to add tree items in the order they are pressed. However at the moment I am finding that all items have to be added in the same function (ie. the same button) since I do not know how to set up the code so that variables created in one function can be referenced by calls in another function. For example when one item is created by a function, the other function is not aware of it's existance and hence any instructions to place a new item after it cannot be understood.
Can anyone help? I apologise for my poor command of the technical terminology - I am very new to programming.
|
|
|
|
|
Hello, from time to time i play a game, and sometimes when the game is too hard i download one of those trainer programs that alter certain memory locations so that you may have more health or experience or whatever. Now my question is how do they determine where the values are in memory and how are they changed?? i mean, dont the memory addresses change when the game is written in C or any higher level language when a variable is declared? How does a trainer spot the locations and alter them??
Thanks for any help
Kuniva
--------------------------------------------
|
|
|
|
|
This could be done many ways, depending on how the game/program was designed. They could be storing information in the registry, an XML file, their own file type....etc, I think you get the point.
If you have a *trainer* program, typically I would assume that the program knows where the *user data* is stored and then simply modifies it for you, that's all.
Nick Parker
The goal of Computer Science is to build something that will last at least until we've finished building it. - Unknown
|
|
|
|
|
Ok, I finnaly worked out what I want to manipulate from a dll plugin. Now I want a quick rundown of how to use LoadLibrary and GetProcAddres. If you could help me by using the function names I have so I know where to put them I would apreciate that. They are CString getDLLInfo(), and void ALSTGPlug(). Thanks in advance.
Darroll
Not one person lives in the present. Only the past. I can prove it.
|
|
|
|
|
|
Sorry it didn't come up. Could you send me the title of the discussion so that I can take a look at it? Thank you.
Darroll
|
|
|
|
|
"Calling convention in a DLL"
original post by Paul Riley
Just trying to keep the forces of entropy at bay
|
|
|
|
|
Hey guyz, I'm new here. I'm working on rewriting our company's password procedures. Dictionary base and such. All of the actual code for word lookup and such is done. It's now time for me to figure out a way to implement it in a DLL.
I've decide to go the way of this example[^]. I've created the dll in VC but I get a massive list of errors which are the following:
Compiling...
StdAfx.cpp
Compiling...
beta.cpp
H:\code_project\beta\beta.cpp(39) : error C2143: syntax error : missing ';' before '__stdcall'
H:\code_project\beta\beta.cpp(39) : error C2501: 'NTSTATUS' : missing storage-class or type specifiers
H:\code_project\beta\beta.cpp(41) : error C2065: 'PUNICODE_STRING' : undeclared identifier
H:\code_project\beta\beta.cpp(41) : error C2146: syntax error : missing ')' before identifier 'UserName'
H:\code_project\beta\beta.cpp(41) : warning C4229: anachronism used : modifiers on data are ignored
H:\code_project\beta\beta.cpp(41) : error C2501: 'PasswordChangeNotify' : missing storage-class or type specifiers
H:\code_project\beta\beta.cpp(44) : error C2059: syntax error : ')'
H:\code_project\beta\beta.cpp(64) : error C2143: syntax error : missing ';' before '{'
H:\code_project\beta\beta.cpp(64) : error C2447: missing function header (old-style formal list?)
H:\code_project\beta\beta.cpp(96) : error C2146: syntax error : missing ')' before identifier 'UserName'
H:\code_project\beta\beta.cpp(96) : warning C4229: anachronism used : modifiers on data are ignored
H:\code_project\beta\beta.cpp(100) : error C2059: syntax error : ')'
H:\code_project\beta\beta.cpp(127) : error C2143: syntax error : missing ';' before '{'
H:\code_project\beta\beta.cpp(127) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
beta.dll - 12 error(s), 2 warning(s)
What's up with NTSTATUS giving me errors? Ne ideas?
---------------------------------
I'm new here, pardon the n00bing
---------------------------------
|
|
|
|
|
Just a wild guess, but it looks to me like a missing semicolon ( possibly in a header file ). Hard to tell for sure without seeing the code.
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
Sometimes the compiler issues C2143 (the 1st error in your output) in lieu of saying it couldn't recognize the preceding identifier. If that's the case, you're missing an #include file somewhere. "NTSTATUS " and "PUNICODE_STRING " look like items from windows.h , so I would check that you've included it, and properly defined things like WINVER to get the definitions you need.
Gary R. Wheeler
|
|
|
|
|
How can I convert CTime to DATE or COleDateTime?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
donno does this help??
COleDateTime::SetTime( int nHour, int nMin, int nSec );
CTime::GetYear
CTime::GetMonth
CTime::GetDay
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Be careful converting these two.
They are really apples and oranges.
CTime encapsulates an interval from
some known time (placement on a time
time line whose origin is attached to
a specific event) whereas COleDateTime
merely encapsulates a time representation
such as 5JUL1998 7:23AM. (placement on a
timeline whose origin is not attached to
any specific event)
So when converting, you need to provide
the origin value by which the COleDateTime
can be interpreted.
I prefer to convert as explicitly as possible
and not use methods which implicitly specify
the origin value for the COleDateTime conversion.
(that way lies madness.)
|
|
|
|
|
Oh yeah, code:
// ASSUMES COleDateTime represents UTC times
// COleDateTime --> CTime
COleDateTime Origin(1970,1,1,0,0,0); // corresponds to time_t(0) in UTC
CTime T(time_t((U-Origin).GetTotalSeconds()));
// CTime --> COleDateTime
double SecInDay=86400.0;
COleDateTime U=Origin+COleDateTimeSpan(T.GetTime()/SecInDay);
|
|
|
|
|
Hi,
I have an application that uses the list view to show some data. I want to be able to highlight some of the lines, let's say in red background. Is there a way to change the color of a specific line in the list view?
I tried to use the selection option but as soon as I click with the mouse on one of the items, all the selections are gone,
Any help is appreciated
Thank you
Shay Harel
|
|
|
|