Is there something you can do to unblock a blockked function?
For example:
Thread1
allocate dynamic memory
blocking function();
free dynamic memory
End
Thread2
Type: Posts; User: KonArtis
Is there something you can do to unblock a blockked function?
For example:
Thread1
allocate dynamic memory
blocking function();
free dynamic memory
End
Thread2
For anybody that is interested, the Request wouldn't be sent because I had "https://" at the beginning of the URL.
-Joe
I'm trying to authenticate with the passport server for an MSN Messenger client (The connection has to be SSL), but the request is never goes through :confused: . Does anybody see what I'm doing...
Thanks for the help! :)
I know there are functions that make common dialog boxes that let you have "Save", "Open", "Choose Font", "Choose Color", etc. But is there one that allows the user to choose a directory (something...
The error in the code has nothing to do with the WndProc, but the message loop. My GetMessage look liks this:
GetMessage(&msg, hwnd, 0, 0)
but when I changed it to:
GetMessage(&msg, NULL, 0,...
It could be causing the problem.
To define the deconstructor it ~YourClassName();. If you're going to be using the class in inheritance you should use virtual ~YourClassName(); so that the...
I don't see anything wrong with your code, but you are missing a deconstructor.
You don't need this code here
tmp->data=el;
tmp->next=0;
because you've already initilized it with
...
The combobox is the only child window on the main window. And what happens is to it when I use CBS_DROPDOWN style is the text in list that drops down doesn't show up and it freezes the whole...
I have checked if EndDialog() is getting the handle of the main window and it is not. I even tried forcing the handle of the main window in EndDialog() and it didn't do anything
For the complete...
I'm making a DialogBox using DialogBoxIndirect() and when I close the dialog window the entire application closes.
Is there a reason why EndDialog() would close the entire application? If there is...
Thanks bithub! That worked :)
Joe
The code in red is where I think the problem lies.
This is how I create the ListBox (I would specifiy "LISTBOX" in the pszType field):
void cCHILDWINDOW::Create(const char *pszType, HWND hwnd,...
Here is one way of making a button:
HWND CreateButton(HWND hParent, int cx, int cy, int x, int y, DWORD dwStyle, DWORD dwExStyle)
{
return CreateWindowEx(dwExStyle, "BUTTON", NULL, dwStyle |...
Theres a problem with how the leap year is checked.
This will return 1 if the year is a leap year.
int LeapYear(int iYear)
{
int iReturn=0;
if ( !(iYear % 4) )
HWND CreateProgress(HWND hParent, int cx, int cy, int x, int y, DWORD dwStyle, DWORD dwExStyle)
{
INITCOMMONCONTROLSEX icex;
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC =...
I figured it out...finially :)
void SetItemChecked(HWND hwnd, int index)
{
LVITEM lvItem;
lvItem.stateMask=LVIS_STATEIMAGEMASK;
lvItem.state=INDEXTOSTATEIMAGEMASK(2);
I would use ListView_SetCheck but when I do, the compiler says that it doesn't exist. So I went to commctrl.h so search for it, but it didn't find it. Thats why I wanted another way of setting the...
How do you I set the check mark checked with the SendMessage? I saw on a previous board that there is ListView_SetCheckState, but I searched the <commctrl.h> and it didn't find that macro.
I got...
If I use ListView_SetItemState, I'm not sure what to set with the LVITEM object. Can you help?
Thanks.
The error for ListView_SetCheckState is that is doesn't exist.
I tried the ListView_SetCheckState macro but it gives me an error. And for the LVM_SETITEMSTATE message, I'm not sure how to set the check state in the LVITEM struct. Could be a little more detailed?...
I was using ListView_GetCheckState to see if an item is checked, but there isn't a ListView_SetCheckState and I can't seem to find any other message to do it. Do anyone know if there is a message to...
If you want to display text on the window, the easiest way is with the TextOut() function.
PAINTSTRUCT ps;
int x=0, y=0;
char szBuffer[]="Hello world";
HDC hdc=BeginPaint(hwnd, &ps);
...
I included <commctrl.h> and linked with comctl32.lib
The problem is it doesn't add the *pszItem to the listview. All I get is a blank item. I can't find where I'm goning wrong. If you need the...