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.05 seconds.

  1. Re: How to create a Excel File(.XLSX) And(.XSL) through code in MFC

    It is called "OLE Automation" and there are plenty of examples available on the web. C++ examples are a little more scarce than VB and C#.
  2. Replies

    Re: Prevent screen saver from activating

    This worked in win 7 and earlier, and I see no reason why it should not work in Win 10:

    int timeout;
    if(SystemParametersInfo(SPI_GETSCREENSAVETIMEOUT, 0, &timeout, 0))...
  3. 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.
  4. 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.
  5. 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...
  6. 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...
  7. 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....
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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....
  14. 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...
  15. 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:...
  16. Re: How to use Visual Studio 2010 to compile dos programs?

    You can't even compile binaries for windows 2000 with VS2010.
  17. 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...
  18. 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:
  19. 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....
  20. 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...
  21. 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"...

  22. 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.
  23. 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.
  24. 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.

  25. 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...
Results 1 to 25 of 1639
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