|
I'm using this control to show animation on statusbar. Maybe you can find some inspiration with it.
Pavel
Sonork 100.15206
|
|
|
|
|
Hi,
I'm using the method Module32Next in my application.Upon running the application an error pops up saying "The Procedure entry point Module32Next could not be located in the dynamic link library KERNEL32.dll".
I'm unable to resolve the problem.
Can anybody help me please.
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
Are you runninig on NT4?
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
Yes I'm using NT 4.Could this problem be due to an obsolete Kernel32.dll file.I checked the dll with the dependency Viewer and found out that the method Module32Next was not in the list.If yes then how do I change my existing Kernel32.dll to the latest version.Since Windows NT uses the Kernel32.dll it won't allow to overwrite the old file with the new file straight away.How do I go about this?
Need guidance,
Thanks
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
Module32Next isn't available on NT4. AFAIK, there's no redistributable providing ToolHelp32 functions you could install on NT4. You'll have to use PSAPI instead.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
Hi,
I need an advice from experienced programmer. CAsyncSocket is not too good documented for use in multithreading enviroment. I wrote some testing programs, so i found out that all callback functions are called in the same thread, throught message map (correct me if i'm wrong).
Here's what i need :
Implement communication functions with CAsyncSocket in separate working - non GUI thread.
1. Should I create message map for this thread ? (an how ?)
2. i need sometimes to wait for incoming data. How to implement waiting ? Is it possible to make GetMessage() loop to wait ?? how ?
I don;t understand how and where does CAsyncSocket dispatch socket notification messages and translates them to callback. How does this work ? MFC source is too big for studying.
Thank you
rrrado
|
|
|
|
|
I wouldn't use any of the socket classes that MFC has if I were you!
I would code it from scratch!
But... if you do want to use it, it's up to you!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Well, an asynchronous socket concept is thought to run in one thread context by purpose! It has some advantages (for some kind of tasks).
If you are sure that a multithreading concept fits better to your task, use a different socket class! For example our loved codeproject provides some kind of (IO completition port?) network classes... check it out: http://www.codeproject.com/internet/
btw Anderson... CAsyncSocket is not perfect implemented (missing asynchronous DNS, no reference buffering), but it's not *that* bad...
|
|
|
|
|
I don't like casyncsocket too, but it is some casyncsocket here with support SOCKS4 and 5, i wanted to use it.
rrrado
|
|
|
|
|
Hi,
I need tips/example of building a graph with code using DES. I don't want directshow to auto connect using the ConnectFrontEnd method. I am able to do this using a normal filtergraph but can't with DES.
Any ideas?
|
|
|
|
|
Doeas anybody know how I can check an user password whether valid or unvalid?
BOOL checkPassword(CString strUserName, CString strPassword)
thank you very much
|
|
|
|
|
You'll have to use LogonUser for that.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
In vc++6, we can add an item on the toolbar then go to the class wizard to add message or event handler for that ID, it is very convenient, but when I use vc++.net, I can't find how to add event handler for a toolbar item? why?
victorswan
|
|
|
|
|
The easiest thing to do is to add a menu item with the same ID as the toolbar button, then add a message handler for the menu item.. that way both the toolbar button and the matching menu item call the same thing..
if you want to setup a message handler for the toolbar manually you can just add the following into your message map in your mainfrm.h (or whatever class you want)
ON_COMMAND(ID_MYBTN, OnMyBtn)
then make a class named OnMyBtn() to correspond with the messagemap..
-dz
|
|
|
|
|
What you have said I know, I just want to know why vc++.net lose the simple and perfect function in vc++6?Is there any other ways?
victorswan
|
|
|
|
|
i think the reason is that every toolbar button is supposed to have a menu item associated with it.. everything on every toolbar in every program should have a way of doing the same thing in the menu..
i was origionally frustrated at the same thing.. ah well.
-dz
|
|
|
|
|
Hello!
My problem is this...
I have created a view that has tabs like a property sheet.
My View class is derived from TabbedView a class derived from CCtrlView.
TabbedView class uses dialog resources to define the contents of a page.
Inside a page I create a CRichEditCtrl using the Create member function.
The applications scrollbars are created manually in the
CMainFrame::OnCreate() member function (without using the ES_CENTER or ES_RIGHT styles) and are positioned using the RecalcLayout() member function.
In the CMyView::OnVScroll() handler the contents of the RichEditCtrl are scrolled vertically using the LineScroll member function.
The problem is that when trying to use the LineScroll member function to scroll the contents of the RichEditCtrl horizontally in the
CMyView::OnHScroll() handler nothing happens.
If anybody has a suggestion on what might me wrong he/she is most welcome!
Thanks...
|
|
|
|
|
You need to handle scrolling events in the rich edit's parent - probably it's the page window. The parent gets EN_HSCROLL/EN_VSCROLL notifications. Just don't forget about ENM_SCROLL in SetEventMask call.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
Thank you for your reply.
However, I want to scroll the contents of the RichEditCtrl through the scrollbars in the FrameWindow and not the scrollbars in the RichEditCtrl
(when for example it is created with the WM_HSCROLL style).
I tried handling the EN_HSCROLL notification but they are issued when a user
tries to scroll using the scrollbar in the RIchEditCtrl and not the Frame window.
Is this what you had in mind????
(I like the six pack moto but right now I could use a bottle of whiskey...)
|
|
|
|
|
Why on Earth do you want to have scrollbars in edit control --and-- in frame window doing the same thing?
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
I don't have scrollbars in the edit control, only in the frame window.
When handling the EN_HSCROLL message nothing happens when a user tries to scroll through the scrollbars in the frame window.
(After that I added scrollbars in the edit control and the EN_HSCROLL handler
worked, but that is not what I want.)
|
|
|
|
|
jabbaj wrote:
(After that I added scrollbars in the edit control and the EN_HSCROLL handler
worked, but that is not what I want.)
It's classic chicken and egg problem. LineScroll will not work, unless you have scrollbars in edit control. And you don't want scrollbars in edit control.
Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
|
|
|
|
|
In my view class I have a OnVScroll handler.A part of this function is the following...
<br />
<br />
case SB_LINEUP: <br />
{<br />
if (CurPos <= 2*(total_height[pgnm] / lines_edit) - 1 )<br />
{ <br />
re->LineScroll(-1,0);<br />
CurPos =0 ;<br />
EnableScrollBar(SB_VERT, ESB_DISABLE_LTUP);<br />
}<br />
else<br />
{ <br />
re->LineScroll(-1,0);<br />
CurPos -= total_height[pgnm] / lines_edit ;<br />
}<br />
SetScrollPos(SB_VERT, CurPos);<br />
PrevPos = CurPos;<br />
}<br />
break;
This works fine when scrolling vertically!
All the LineScroll function does is scroll the contents of the edit control
1 line up when the user clicks the top arrow of the vertical scrollbar in the Frame window.
When I try to do the same in the OnHScroll handler (respectively e.g. (SB_LINERIGHT)) and try to use the LineScroll function (e.g. re->LineScroll(0,-1)) then nothing happens.
This is my problem.
I do not scrollbars in the edit control because the buttons of the Tab are
on the bottom of the page and the horizontal edit scrollbar appear on top of them (as it should in the first place).
Hope this clears things a bit.
|
|
|
|
|
I am saving a file.On click the save button ,the file starts saving.So i have to show the busy cursor.How can i find out that the file is saved,so that again i change my busy cursorto normal cursor
|
|
|
|
|
Use BeginWaitCursor() and EndWaitCursor()
Best regards,
Eugene Pustovoyt
|
|
|
|