|
Randor wrote: Do you have a WindowProc function? No.
Randor wrote: I assume that you called EnableToolTips.
Yes, otherwise the tooltip would not be displayed at all.
Randor wrote: Is this an ActiveX control?
No, just a plain ol' dialog box with an edit control.
Randor wrote: Absolutely. I have VC6, 2005,2008,2010 installed on my workstation.
Can you reproduce this?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Hi David,
DavidCrow wrote: Can you reproduce this?
No, the tooltip code you posted looks perfect and there is absolutely nothing wrong with it.
There is something fundamentaly wrong... but I have to keep guessing because I cannot see your project and debugger output. At this point the only other thing I can think of would be an invalid AFX_MODULE_STATE. Are you mixing static linked MFC based libraries with dynamic?
Best Wishes,
-David Delaune
|
|
|
|
|
Randor wrote: Are you mixing static linked MFC based libraries with dynamic?
Linking with MFC libraries dynamically.
When I get back to the office on Friday, I can zip the project up and email it to you if you'd like.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
David,
DavidCrow wrote: When I get back to the office on Friday, I can zip the project up and email it to you if you'd like.
That would probably be the best way to avoid a half dozen more questions.
As you probably already know... you can click 'Email' at the bottom of this post and I will recieve the message.
Best Wishes,
-David Delaune
|
|
|
|
|
I know that need send 25 frames per second, but how to keep time span between two frames as 40 ms?
modified 2-Apr-12 12:43pm.
|
|
|
|
|
Well, you can always have a transfer thread that sleeps between transfers.
while(1){
transfer();
Sleep(40);
}
Or, you can always make the packets bigger and transfer at a slower rate, the slower rate should give you more flex room for accuracy.
while(1){
transfer(25_frames);
Sleep(1000);
}
Or... why not transfer data as fast as possible, and throttle it on the receiving end? This has the benefit of building a buffer so that the processing flow is not interrupted.
|
|
|
|
|
Not completely sure i understand what you are trying to do, but -as far as i know- what DirectShow[^] does is to give each frame a (kind of) time stamp and the renderer will use the time stamp to display a frame when it is time to display it and until that time comes, it buffers the frames.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> If it doesn't matter, it's antimatter.<
|
|
|
|
|
You could use a multimedia timer. Check out the following API calls:
timeGetDevCaps()
timeBeginPeriod()
timeSetEvent()
You can set up an accurate timer using these.
|
|
|
|
|
Thanks.
Now, the solution is that the low level return a struct that includes the start time of current frame and the duration of current frame.
The Application uses these two value to control time span.
|
|
|
|
|
I need to execute some code on pressing ctrl+c together without accel table, how can I do that?
|
|
|
|
|
|
|
I want to add tags to existing PDF files with C++ or VC++.
This can be done with Acrobat.(click the "add tags to document" menu which locates in Advanced->Accessibility).
I was stucked in the problem.
Any help will be appreciated!
|
|
|
|
|
You need a library for that (see, for instance, List of PDF software[^] at Wikipedia).
Or (the hard route) you should implement yourself the editing functions, starting from the PDF specifications (see, for instance here[^]).
You may also find many articles[^] about PDF here at CodeProject .
Veni, vidi, vici.
|
|
|
|
|
my application consists of structure with 200 member variable.
For Example:
<perv>
Struct sample
{
char xyz[200];
int x1[400];
char y2[100][10];
float z2[200];
...................
.................
..................
................
}
Now user will just passes the value like xyz[100], x1[201] and my application need to fetch the corresponding value from memory and display to them
kindly help me friends..
modified 27-Mar-12 0:07am.
|
|
|
|
|
200 members in a structure? ...sounds like bad design already. It's not clear what you mean when you say user will "pass a value and application will fetch the corresponding value". Fetch from where?
|
|
|
|
|
For example:
1. x1[100] is the Struct variable which hold the value of 10
2. Now User gives the input as x1[100] in the given textbox.
3. My application need to fetch the value 10(for x1[100]) from the memory location and display value 10 to user.
|
|
|
|
|
there are multiple steps... which one do you need help with? ...for a user to point out a variable in an array, all you need to do is ask for the name of the array and the index... then look up the name or label against a set of valid labels, and use the index specified to grab the value.
|
|
|
|
|
whether it is possible to calculate offset value? and Using offset, the struct variable value is fetched from the memory loaction.
|
|
|
|
|
Calculate Offset Value?? why?? Albert has given a very good suggestion. why not try that?
Every new day is another chance to change your life.
|
|
|
|
|
My senior engineer Implemented offset table procedure concept. Using offset table particular structure variable value is fetched from memory location and whenever structure get updated or modified then obviously offset table get modified or changed.Now days it became big problem for us. my question is whether albert idea is effect than this offset table procedure or any other suggestion is there to implement.
|
|
|
|
|
Using an offset value for this is just silly. There's no practical purpose and adds complexity with no benefit.
|
|
|
|
|
shanmugarajaa wrote: my application consists of structure with 200 member variable.
Uhm...
Is that really needed?
Veni, vidi, vici.
|
|
|
|
|
Long year ago my senior engineers designed like that and i can't change those things. now my aim is to findout new way to get value for those structure variable without using offset table... any other choice is there?
|
|
|
|
|
200 member variables!
Holy crap! Are they all named as badly as these? Just how is a user supposed to know the relevance of what IS stored at x1[100]?
Apart from that, quite simply your app, which contains the struct instance, lets say it is called strinst, when asked for the value x1[100] just returns strint.x1[100], probably printfed into a string, for display.
==============================
Nothing to say.
|
|
|
|