It works! Thank you very much! But I had to remove the entry for XXXXFunction in def file first in order to build the project successfully. I couldn't figure out why removing this entry make build...
I got a linker error "error LNK2001: unresolved external symbol "public: virtual int __thiscall XXXClass::XXXXFunction(class CWnd *,struct IMyStruct * const)"...
When I click within a list control, suppose there is an event OnClick fired. In my program, I catch OnClick event by processing the message NM_Click, i.e. ,
This is from MSDN ---- "The IEShowSaveFileDialog function works within these restructions by using a medium integrity broker process (IEUser.exe) to call the Windows Common Dialog library". But under...
I am not sure whether this is right forum for installer scripting. I am new to NSIS scripting. I wonder if anybody here can recommend an online resource or a book about NSIS scripting? Thanks for...
A class id of a COM dll may be created under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID or may be created under HKEY_CLASSES_ROOT\CLSID in registry. Is there any difference between them? In order to...
Thanks for your response. Actually I almost finished the program. I have a question here. Suppose I try to fill in a completely empty board. First of all, I pick up 9 numbers randomly for the first...
Thanks for your great response. I have several questions regarding your generator. When you have a fully filled sudoku, you hide all the fields and then re-open some of them. How many fields are you...
I have a program running really slow. I found that actually a function takes long time. But by debugging I don't know how to identify which piece of code within this function causes such slowness....
As we know, usually VK_DELETE will be caught when processing WM_KEYDOWN. Is there any way to catch VK_DELETE when processing WM_CHAR? Thanks for your inputs.
I have created a Sudoku generator. But my generator can at least leave 30 numbers on board. So I guess I need to strength my algorithm in order to improve its difficulty level. Can we discuss how to...
That is a good example. How does p_myrandom work in the example? It looks like p_myrandom is a function pointer applied to each element of the vector. But how'd I understand i in the definition of...
Thanks for your inputs. I guess you meant random_shuffle. But random_shuffle generates the same result every time. I wonder if it is possible to generate different result every time by using...
If I want to generate 10 random numbers ranging from 0 to 9, is it possible to have 10 different numbers every time? For example, every time they should be like this, 1,3,4,9,0,2,8,7,5,6 without...
Can you explain the algorithm for sudoku generator based on a solved sudoku? I know we can also use back track but don't know how? Thanks for your inputs.
Thanks for your response. I like to start from Solver algorithm first, which means the board is totally empty when I start. I tried brute force by hand and I think it would be very slow. For...
Thanks for your response. I like to start from the easy one: brute force. Can you explain more how to backtrack once the placed number can't solve the sudoku? Thanks for your inputs.
I posted it in algorithm forum but it is too quiet there so I decide to post it here. After all I am planning to implment it using C++. The algorithm includes sudoku solver, sudoku generator and...
The algorithm includes sudoku solver, sudoku generator and difficulty analysis. I searched online but still couldn't figure out how. Please help me by explaining the algorithm step by step. Thanks...
There is a child window located somewhere in a parent window. Now if I click the child window, I want the child window to display the cursor showing it is getting focus. How'd I do that? Thanks for...
Usually semaphore is used to allow a certain number of threads to access the resources at the same time. So it is possible for two or more than two threads to access the same resource at the same...
If what you claimed is true, how can you explain I can add an "int" as a second parameter to operator new? In the reference I don't see an "int" as a second parameter to operator new either. Thanks...