CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: dullboy

Page 1 of 5 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    8
    Views
    499

    Re: A strange problem related to def file.

    Actually I did rebuild the dll but it failed. My class is defined in a MFC extension dll and is exported by using AFX_EXT_CLASS. Thanks.
  2. Replies
    8
    Views
    499

    Re: A strange problem related to def file.

    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...
  3. Replies
    8
    Views
    499

    A strange problem related to def file.

    I got a linker error "error LNK2001: unresolved external symbol "public: virtual int __thiscall XXXClass::XXXXFunction(class CWnd *,struct IMyStruct * const)"...
  4. OnClick for list control doesn't work first time

    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. ,


    ON_NOTIFY_REFLECT_EX(NM_CLICK,...
  5. IEShowSaveFileDialog doesn't work under win7?

    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...
  6. Replies
    0
    Views
    934

    Regarding NSIS scripting

    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...
  7. A question regarding HKEY_LOCAL_MACHINE and HEKY_CLASSES_ROOT?

    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...
  8. Re: Any guru here can explain algorithm for Sudoku?

    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...
  9. Re: Any guru here can explain algorithm for Sudoku?

    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...
  10. How to find out why a program is running so slow?

    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....
  11. Re: Is it possible to catch VK_DELETE when procsessing WM_CHAR?

    I know WM_KEYDOWN will catch VK_DELETE for sure but I am just curious if it is possible to catch in WM_CHAR. Thanks for your inputs.
  12. Re: Is it possible to catch VK_DELETE when procsessing WM_CHAR?

    What do you mean? Could you explain it more? Thanks for your inputs.
  13. Is it possible to catch VK_DELETE when procsessing WM_CHAR?

    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.
  14. Re: Any guru here can explain algorithm for Sudoku?

    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...
  15. Replies
    8
    Views
    750

    Re: Help with generating random number

    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...
  16. Replies
    8
    Views
    750

    Re: Help with generating random number

    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...
  17. Replies
    8
    Views
    750

    Help with generating random number

    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...
  18. Re: Any guru here can explain algorithm for Sudoku?

    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.
  19. Re: Any guru here can explain algorithm for Sudoku?

    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...
  20. Re: Any guru here can explain algorithm for Sudoku?

    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.
  21. Any guru here can explain algorithm for Sudoku?

    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...
  22. Any guru here can explain algorithm for Sudoku?

    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...
  23. Replies
    1
    Views
    338

    Display a cursor in a child window

    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...
  24. Replies
    6
    Views
    835

    Help with Semaphore

    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...
  25. Replies
    10
    Views
    1,179

    Re: Help with overloading operator delete

    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...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width