Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums


Type: Posts; User: zerver

Page 1 of 66 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: CHtmlView class. Select text functionality works slowness in big file.

    Try visual studio 2015, maybe it comes with an updated CHtmlView.

    If that does not help, I would forget about the CHtmlView and try to find a third party replacement.
  2. Re: Prevent kill my software though Task Manager.

    I suggest make a driver/system service if it is task manager specifically that you are afraid about. Don't try to make an application that behaves like a virus.
  3. Re: The linker cannot find the file I didn't specify in my project?

    Then I think you will have to investigate why they claim static linking is not suitable. I've seen this type of statement before and there are valid reasons for it, but could also be nonsense or...
  4. Re: The linker cannot find the file I didn't specify in my project?

    You download the static libs for the 3p project if you want to link statically, otherwise the dynamic libs :)

    No proper libs available? If you have the source of the 3p project compile the lib...
  5. Re: Possible Loss of Data during Double to Unsigned Char Conversion?


    I suspect you already know that "unsigned char" can hold an integer value in the range 0 to 255.

    It is possible that your "double" values for some reason are slightly off, e.g....
  6. Re: Restore RGB values back into BITMAP image file

    for(int i = 0; i <height; i++)
    m_pOutFileRGB->write(reinterpret_cast<char*>(array_1D), width*bytesPerPixel);


    Also, this looks fishy. You are writing the same data to file many...
  7. Re: Problem with COleDateTime in some of the 64-bit PCs

    Hard to say, but maybe you are corrupting the memory with that CopyMemory stuff. After doing so, anything can happen.

    The "8" last in CopyMemory also means you assume a specific size of the...
  8. Re: Problem with COleDateTime in some of the 64-bit PCs

    How do you assign the current date/time?

    I'm thinking that your problem might be caused by language settings on the PC, or different versions of the MFC dll files.

    Try static link your app with...
  9. Replies

    Re: quadruple pointer problem

    Correct, but if we are going down the optimization route, more importantly you wouldn't call "new" so many times.
    Instead make one allocation for each dimension, and the elements would then index...
  10. Replies

    Re: quadruple pointer problem

    Did not test, but something like this:

    double **** Allocate4(double **** mat, int k, int l, int m, int n)
    mat = new double *** [k];

    for(int i = 0; i < k; i++) {
    mat[i] = new double...
  11. Re: WinInet callback not called when the main thread sleeps

    Just a guess, maybe it is IOCP-based or something underneath, and your object is already being waited on by those internals....
  12. Re: Active Directory - What is the meaning of "protecting with RMS"?

    Digital Rights Management typically uses encryption techniques to protect the content so that it can only be used by a specific set of users. So, your files would probably end up being encrypted. I...
  13. Re: [RESOLVED] HELP : converting a decimal number given by the user to binary using C

    Helping you would be a very bad idea, because it appears you did not try on your own to devise a plan how to tackle the problem.

    I can provide some links though:...
  14. Re: How to use Visual Studio 2010 to compile dos programs?

    You can't even compile binaries for windows 2000 with VS2010.
  15. Replies

    Re: How long is your build?

    13 hours... whoa. An operating system?

    I really hope you guys enable the the /MP compiler option.
    It used to have a lot of bugs, but multithreaded compilation is pure win with later versions of...
  16. Re: Using one thread at a time with CSemaphore problem

    If the amount of items that you plan to add isn't huge, also consider this as an alternative:
  17. Re: Using one thread at a time with CSemaphore problem

    I'm glad it helped.

    However, for the special case when you need to protect against concurrent access (i.e. exactly one thread is allowed), consider using a critical section instead of semaphore....
  18. Re: Using one thread at a time with CSemaphore problem

    WaitForSingleObject(ghSemaphore, 0L);

    This will not wait, it returns immediately. If your intention is to wait, use INFINITE as a parameter instead of 0.

    If your intention is to do something...
  19. Replies

    Re: C++ Beginner Help

    Hi there.

    In most programming languages repeated actions are accomplished using loops. The loops are possible to exit based on a condition. I suggest you Google for "C++ loops"...

  20. Replies

    Re: MFC- receiving Button-Click-Message failed

    The PreTranslateMessage function is a strong suspect. Try removing it and see what happens.

    Another source of problems could be the splitter window.
  21. Replies

    Re: C++ Beginner Help

    +1 to what Kaud said. When we say "cheating", we mostly refer to that you would be fooling yourself into believing that you actually learnt something, when you in fact did not.
  22. Re: How to raise priority of MIDI input callbacks? Thread pools etc.

    According to my observations, the OS allocates a minimum of 1 time slice per second to a thread even if it is a low priority thread and other high prio threads want to fully load all cores.

  23. Replies

    Re: More CopyFile Problems

    The typical way to deal with a problem like this is to write an app that only performs the CopyFile stuff in question and nothing else, and check whether it works.

    If it does work, strip out parts...
  24. Replies

    Re: Installing FLTK on VS 2013

    If you download a library such as FLTK, you should not put those files in the visual studio folder.

    Instead you change your project settings to add an include path that contains the files you...
  25. Replies

    Re: My binary tree class

    I don't have time to comment on the algorithm, but some generic tips before submitting any code:

    * Check for repeated code and repeated calculations that you can optimize to make it more readable....
Results 1 to 25 of 1637
Page 1 of 66 1 2 3 4

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center