Search:
Type: Posts; User: GCDEF
Search:
Search took 1.59 seconds; generated 19 minute(s) ago.
-
December 27th, 2022, 10:58 AM
If the code in the OP is still current, board[choice] is never getting set in your loop.
-
November 3rd, 2022, 12:57 PM
You could start here
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa
-
July 27th, 2022, 02:58 PM
Your question isn't clear. Both languages have build in datatypes. Neither is a really good choice for small projects.
-
March 28th, 2022, 09:38 AM
In addition to what 2kaud said, you should learn to write readable code. Single character variable names, and multiple statements on the same line make for code that's both hard to read and debug.
-
March 28th, 2022, 09:32 AM
That's what databases are for
-
March 28th, 2022, 09:28 AM
How about if it's a WM_LBUTTONDBLCLK return 0 instead of calling the base WindowProc, or set up a message handler in your class that ignores the WM_LBUTTONDBLCLK?
The problem is likely that you're...
-
March 28th, 2022, 09:13 AM
I've never heard of double clicking copying text to the clipboard either, but could you just turn off the SS_NOTIFY style?
-
March 14th, 2022, 10:32 AM
If it's an MFC dialog, UpdateData should do it
-
December 9th, 2021, 08:53 AM
Turns out because I'm reading into a char array, the debugger isn't showing anything after the null. The data is there though
-
December 9th, 2021, 08:19 AM
That's a letter l, not a 1. It works for files without a null, but stops where there's a null.
-
December 8th, 2021, 04:27 PM
Sorry, this is probably a basic question but I've always used MFC for I/O. I'm using an ifstream and it stops reading as soon as it hits a null. I'm trying to read the end of a file. How do I get...
-
August 18th, 2021, 08:03 AM
Hobson hasn't been seen here since 2013
-
July 29th, 2021, 08:36 AM
Use the resource editor. Click on the drop arrow and resize
-
Not just in the solution, but in the directory where it says it is? That's a pretty specific error. If you try to open it by clicking on it in Solution Explorer, does it open?
-
And does it actually exist?
-
Neither of those would work. You've coded a message pump. Ideally, you'd be using different threads, but typically you'd call your message pump from inside a tight loop elsewhere in the program...
-
March 17th, 2021, 08:50 AM
-
March 12th, 2021, 08:49 AM
max_price returns a Car. Shouldn't it return an amount?
-
February 18th, 2021, 04:33 PM
What are you trying to accomplish by doing that? What's wrong with logical or?
-
January 14th, 2021, 11:33 AM
You're making it way harder than it needs to be. The solution Victor proposed does what you ask. He hardcoded values for .8, .9, etc. You'll need to use your computed probabilities sorted high to...
-
December 25th, 2020, 05:01 PM
I don't think you did understand. SetItemData should be an item number, not a hard coded value.
As to the virtual list control, it's been a while for me, but I remember that as being a way to...
-
December 22nd, 2020, 04:41 PM
Have you read what SetItemData does? It stores an associated DWORD value with a list control item. If you see an item that has text in the second column store that row number somewhere and use it...
-
December 22nd, 2020, 02:42 PM
That would be way less code in MFC. I didn't read what you're doing, but if you're using SetItemData to set the item number of the appropriate second column value, that would be a more elegant...
-
December 22nd, 2020, 12:55 PM
You find an empty second column, then read the previous second column until you find one that's not empty any more.
-
December 22nd, 2020, 10:31 AM
I'm not sure what that means
|
Click Here to Expand Forum to Full Width
|