Hi All,
I am trying to make a simple application using CAsyncSocket derived class.However, I seem to get stuck at the following points:
1.The Connect function always returns FALSE in SOCK_STREAM mode.The GetLastError() function shows the error as WSAEWOULDBLOCK.I also have a OnConnect handler in...
Hello,
I am new to ATL - COM programming.
Can anyone help me in understanding basics of ATL like
1.Dual Interface
2.DispInterface and so on
Thanks in advance ( I do not have access to any books )
ss2905
Hi Walter,
Probably, what is happening is that the threads cannot see each other.
A safe way is to pass messages from one thread to another.Else you will always end up getting ASSERT failures like this.
You should use your own messages and write handlers for the same.Inside the handler , call...
Hi Vincent,
For Toolbar or any ControlBar,you have to write explicit code to disable the close button.
Basically, try to get the CMenu pointer and then use the EnableMenuItem function.
It goes something like this:
if(m_dwStyle & CBRS_FLOATING){
CMenu* pSysMenu;
CWnd* pWnd;
CWnd* pWndOwn...
Hello,
I am using a dialogbar in one of my projects.The DialogBar has a push button ( CButton ) in it.However, the button is always disabled when the dialogbar comes on screen.Even after forcibly using EnableWindow(TRUE) , the button remains disabled.The remaining resources entries like Edit...
Hello ,
I am using SHBrowseForFolder to generate a Browse window to allow the user to select a folder.Next time when the user clicks on the "Browse" button , the previosly selected folder should appear highlighted.Now the problem is, the previously selected folder is highlighted and...
I am writing an application using win32, I want to display JPEG or GIF format files in a dialogue box. Is there any Activex controls for that, if so how to use it.
sir,
I am writing a application using Win32. In this I want to disply a JEPEG or GIF picture in a dialogue box. Is there any Ready made control for that other wise how can I disply it in a specified region of the dialogue box.
2. Is there is any libraries available for converting JEPEG and...
Hi,
I have a VB app that needs to call a function written in VC++.The VB app passes an int and the function returns a LPSTR.
e.g VB passes 1 to the function which returns "st".Similarly, for 2, "nd" is returned,etc..that The function works fine but problem is it returns junk...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.