|
Hi Chris,
the fault was by settings of vc6.0.
I had set Just-In-Time debugging and someone was happy... ....
despite thanx
|
|
|
|
|
I'm making a data logger using a CListCtrl. my problem is when the List are populated with new data (take note that the vertical scroll will now appear because the display screen is maximized and new data is coming).the user needs to scroll down to see the newly inserted item at the bottom of the list
what I want to happen is to make the vertical scroll, to scroll-downwards automatically so that the LATEST data received can be easily seen during actual logging of data.
Therefore, the user will no longer have to scroll down to see the latest data logged or the newly inserted item.
-- modified at 8:32 Friday 13th January, 2006
|
|
|
|
|
What's wrong with the answers you already have got?
|
|
|
|
|
You had posted this yesterday I believe. I had given the solution too, Did that not work or is that you did not know how to do it? If so please let us know. We can explain you in steps how to do that.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
EnsureWindow() worked!.Thanks!It was a great help!
|
|
|
|
|
It is EnsureVisible()
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Hi!
I have a strange problem: I want to pop-up a (modal) dialog from an ActiveX control which is a MDI child. I created the dialog and it pops up as regularly using DoModal . I can click around and use the dialog until I don't click the title bar e.g. in order to drag the dialog around. If I do so the dialog freezes the mouse input and I can only navigate through the dialog via keyboard.
Using Spy++ I checked the message queue. When I click on the title bar a WM_SYSCOMMAND (WPARAM: SC_MOVE) is sent and that's it. Message queue hangs. All I can do is navigating by keyboard or Alt+Tab away from and back to the dialog. Then I can use the mouse again. Surely without clicking on the title bar.
I googled for the problem and saw that some people have the same problem but there is no real solution for it. Somebody proposed to surround DoModal with PreModalDialog/PostModalDialog which didn't change anything.
Is it possible that some ActiveX events are missing that need to be routed to the control? I'm out of ideas anyway...
Thanks for your help.
Regards, mykel
If they give you lined paper, write the other way!
|
|
|
|
|
alright, found a solution:
problem was that MSDN Q187988[^] was applied sometime before which swallowed all my precious messages using a Windows WH_GETMESSAGE hook.
my quick and dirty solution is to disable the windows hook directly before opening the popup dialog and enable the hook again directly after the popup dialog is closed. everything works fine then and I can finally drag the dialog around... yipeeh! what a pain in the ...!
perhaps there is a smarter solution. if you know one I would be glad for a short post.
regards, mykel
If they give you lined paper, write the other way!
|
|
|
|
|
i am trying to insert an item in zero'th index.But it dosen't get inserted in the specified position but get appended in the last. My program workes fine in Report view.But i want to do it in ICON view.Can anyone help me?
Thank You
nav
|
|
|
|
|
Check the properties of your CListCtrl if Auto arrange, Sort, etc is on. Uncheck whichever is unnecessary and see if that helps. I cannot think of any other reason which could cause this problem.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
-- modified at 0:59 Saturday 14th January, 2006
|
|
|
|
|
i have unchecked auto arrange ,made sort order none.But still the problem persist. I found this problem with ICON view and small icon view.When style change to report view or list view its ok.
nav
|
|
|
|
|
I am trying to update a program written in C++ using VS6 to VS.NET 2003. One of the errors I can´t solve is the following:
the code:
template <class t="">
class _NoAddRefReleaseOnCComPtr : public T
{
private:
STDMETHOD_(ULONG, AddRef)()=0;
STDMETHOD_(ULONG, Release)()=0;
};
the errors:
(to the first line)
C2332: 'class' : missing tag name
C2011: '__unnamed' : 'enum' type redefinition
C2059: syntax error : 'constant'
C2143: syntax error : missing ')' before '>'
(to the second line)
C2059: syntax error : '('
I tried to solve all these errors, but with no luck. Can anyone help me?
Thank you!
Patrícia Gonçalves
|
|
|
|
|
please edit your post, and uncheck the little "Ignore HTML tags in this message (good for code snippets)" at the bottom of the emoticons...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
toxcct wrote: uncheck the little
lol
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
You're right. Sorry!
Here's the message again:
I am trying to update a program written in C++ using VS6 to VS.NET 2003. One of the errors I can´t solve is the following:
the code:
template <class T>
class _NoAddRefReleaseOnCComPtr : public T
{
private:
STDMETHOD_(ULONG, AddRef)()=0;
STDMETHOD_(ULONG, Release)()=0;
};
the errors:
(to the first line)
C2332: 'class' : missing tag name
C2011: '__unnamed' : 'enum' type redefinition
C2059: syntax error : 'constant'
C2143: syntax error : missing ')' before '>'
(to the second line)
C2059: syntax error : '('
I tried to solve all these errors, but with no luck. Can anyone help me?
Thank you!
Patrícia Gonçalves
|
|
|
|
|
Can't see anything wrong here. What I normally do in these cases is dump the pre-processor output and see if any macros are messing stuff up (see what the compiler sees). To do this you add the "/P" option to the compiler setting and rebuild. When you do this the build will appear to succeed with no errors - Don't get excited, it's just the preprocessing that has succeeded. For every .CPP file there will be a matching ".i" file with all macros fully expanded. Find a .CPP file that includes the problematic definitions and open the corresponding ".i" file. Look for your problem class - Perhaps by searching for "_NoAddRefReleaseOnCComPtr". Look for anything weird.
Steve
-- modified at 4:44 Monday 16th January, 2006
NOTE: Changed the "/P" above from "/O" (/O is wrong).
|
|
|
|
|
Thank you for your answer, Steve. I just need one more thing: where do I change the compiler settings?
Patrícia
|
|
|
|
|
I use MSVC6. This is how I setup the compiler to dump the preprocessor output:
1. Select "Project->Settings..." from file menu.
2. Select "C/C++" tab.
3. Click in the "Project Options" edit control and scroll to the end.
4. Add the "/P".
Remeber to remove the "/P" when you're done.
Steve
|
|
|
|
|
Any module to encode and decode from bufferarray with a short time?
Now, i want to encode buffer array of bmp type to another type with smaller size of buffer array, but take a little time.
With Jpeg type, it take 30 - 40 ms for encoding and decoding, i am finding another module to take about 10 ms
Thanks.
--------------------------
ERP VN: www.erpvn.net
|
|
|
|
|
I'm making a data logger using a CListCtrl. my problem is when a new row of data is inserted at the bottom of the list, the scroll does not scroll-down and the list display remain at the top.
what I want to happen is to make the vertical scroll, to scroll-downwards automatically so that the latest data received can be easily seen during actual logging of data.
Hope you can help me with my problem!
-- modified at 6:28 Friday 13th January, 2006
|
|
|
|
|
When you add a new item to the CListCtrl, use the EnsureVisible() function to make sure that the new item is visible.
romuzu wrote: Hope you can help me with my problem!
Let me know if this helped.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
I think you could send it a scroll-down message like:
m_List.SendMessage(WM_VSCROLL,MAKEWPARAM(SB_BOTTOM,0),0);
this is this.
|
|
|
|
|
MSDN says when EnsureVisible is used, the item is shown at any cost, atleast partially. If needed, it is scrolled automatically too.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Is it safe to pass MFC objects inbetween threads .
I dont fell any issue but ...
is there any special case were i should not pass
an MFC object inbetween thread.
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
vikas amin wrote: is there any special case were i should not pass
Yeah CDC objects.
Instead use HDC.
Jesus Loves <marquee direction="up" height="40" scrolldelay="1" step="1" scrollamount="1" style="background:#aabbcc;border-bottom:thin solid 1px #6699cc">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|