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

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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....
  6. 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...
  7. 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:...
  8. Re: How to use Visual Studio 2010 to compile dos programs?

    You can't even compile binaries for windows 2000 with VS2010.
  9. 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...
  10. 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:
  11. 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....
  12. 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...
  13. 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"...

  14. 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.
  15. 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.
  16. 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.

  17. 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...
  18. 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...
  19. 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....
  20. Re: How to make a shape outside of the main() function

    So you don't get this error if you move it into the main()?
    The only reason I can think of is that win.attach() does not copy the object, but rather stores a reference or pointer to it.

    Does the...
  21. Replies

    Re: How do I step into SDK source?

    At least in theory, you take the source files and add them to your project, and you also remove the lib file.

    In practice however, you may find that it is not so easy to get everything working...
  22. Replies

    Re: The simplest way to print...

    I suggest you make a system service.

  23. Replies

    Re: Problem with initializing auto variables

    Sorry to hear that. If there is a new compile error you need to post it, otherwise it will be difficult to help.

    Based on this page:...
  24. Re: C++ fill color in shapes using FLTK doesn't work for circles

    If it is the exact same IDE/compiler (please note that you may have the same IDE but a different compiler version), and the exact same FLTK version, then all I can think of is that your graphics...
  25. Re: How to make a shape outside of the main() function

    Send a reference to the window to your function.

    void cir(Simple_window &win) { Circle c(Point(100,100),50); win.attach(c); }

    int main()
    Simple_window win(Point(100,100),600,400,...
Results 1 to 25 of 1631
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