Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Nosferatu

    Deadlock On Same Mutex

    Hello... I am using a mutex synch mechanism in an multi-threaded environmnet (apache). When I got several of the threads working - note that Apache choses the threads to be runned from a thread pool - the system gets into a deadlock and all the threads are waiting on the same mutex, without...
  2. Nosferatu

    FTPing .cpp files from a Unix box to Windows

    Did that solved your problem? You have to beware of such source-file transfers between Unix-like platforms and Windows because the windows compilers use the \r\n as a line delimiter, whereas in any unixes, the terminator is only \r. Most Windows C/C++ compilers will burp errors because of that...
  3. Nosferatu

    Identifying a mathematical function

    What you need to do is dig around for the "Reverse Polish Notation". This is a binary-tree representation of a mathematical function and this is what you need to use to compute values for your expressions. Once you built that tree, it's relatively easy to compute the value of a function and...
  4. Nosferatu

    parsing error?

    what exactly are you talking about? Do you have a schema validating your XML? You have to be more specific. What parsers do you use? MSXML? SAX? ~~Razvan Nosferatu We are what we eat... There's no such thing as free meal... once stated: methane@personal.ro
  5. Nosferatu

    Using Mutex's

    Zyrenthian~~ You should be careful about that code... You use CreateMutex with bInitialOwner set to FALSE (second parameter). That means that the thread/process that created the mutex does not own it, you should be calling for WaitForSingleObject to actually own it. Otherwise, if you...
  6. Nosferatu

    What is the meaning of -1.#IND00 and -1.#QNAN0?

    Well, I found related articles by looking for IND00. The most interesting is called "FIX: Calling a Function Returning double May Not Pop FPU Stack", which was just what was happening to my code (I was still in the debug version - /Od). --Razvan Nosferatu We are what we eat...
  7. Nosferatu

    What is the meaning of -1.#IND00 and -1.#QNAN0?

    Right about Rome. You would obtain such results by trying, let's say, sqrt(-1). NAN means Not A Number. Same result will be obtained when doing 10/0, for instance. These strings are just cookies to be seen in the standard err; probably the best way to check for a faulty outcome of such an...
  8. Nosferatu

    Dissapearing bitmaps from CImageList

    Duh... indeed. That sort of confusion is happening when you are using one part of the brain to work on projects and the other part to judge current events implications on international scene... This darn TV! I just can't turn it off. But I did in the end. But again... CNN's main page seems to...
  9. Nosferatu

    Dissapearing bitmaps from CImageList

    Well... I found the problem under your d) subject, Pete. The control that was causing the problems was a list control. The LVS_SHAREIMAGELISTS style should have been used. Strangely, when using other lists, I did not get this problem, even if the flag was not set in those cases neither...
  10. Nosferatu

    Dissapearing bitmaps from CImageList

    Hello... I am having a bit of trouble with some dissapearing bitmaps in my GUI. Most of the controls in the application share the same image list, loaded from the resources as the application starts. At some point, when I do some stuff with a Database in a dialog, the icons start to dissapear...
  11. Nosferatu

    Polling timer problem!!!

    Hey Pete, do you have a reference for the platform SDK download? I looked for "platform sdk download" on the MS site and found nothing... Thanks, --Razvan Nosferatu We are what we eat... There's no such thing as free meal... once stated: methane@personal.ro
  12. Nosferatu

    Polling timer problem!!!

    Err... I hope that writing createtimerqueue is just out of commodity. (CreateTimerQueue). What VC are you using? Since the method is supported on win2000, I guess it is not present on the MSVC 6.0 distribution, released in '97. If you have vc7, adding kernel32.lib should be enough, no...
  13. Nosferatu

    Dynamic Controls In Doc/View App

    Yes, you have to create them on the fly (a new CButton, for instance) having as parent the dialog you want to put them in. Then be sure to assign a new ID to your control, an ID that your parent dialog is aware of, for example:IDC_NEW_BUTTON. In the dialog's wnd proc watch then for messages...
  14. Nosferatu

    Shared memory using plain C in Windows

    Thanks Xwb. Actually, as I am working mostly on Windows, I am sure I'll find huge pain when going to port the system library on Unix. This thread shared memory with its locks needed seems to be easy, comparing to shared memory on Unix. But doing the full-shared memory with file maps will help...
  15. Nosferatu

    Combo Box !!

    I don't know if I got this right, but is the code you posted in the initialization function? If so, that'll get called on initialization only! You should handle the CBN_CLOSEUP event of your comboboxes and check the items there. That will certainly work. Nosferatu We are what we eat... There's...
  16. Nosferatu

    VARIANT

    well... are you sure that you are getting anything in that variant? Can't you debug it step by step? How is the object (structure) filled in in the first place (on the server side)? Nosferatu We are what we eat... There's no such thing as free meal... once stated: methane@personal.ro
  17. Nosferatu

    VARIANT

    OK. So it is a little more complicated that I thought. You were initially talking about structures and then about objects. It it was a structure, then the server chould have just filled up a BLOB or something and send it to you (that's what my understanding). If you want an instance of an...
  18. Nosferatu

    VARIANT

    Look at the VARIANT datatype in MSDN. It is a structure containing a huge union of members that represent pointers to different things. parray is of type VT_ARRAY, which means a sequence of bytes; I'd take these bytes and convert them to what I need (myClass, for instance). Nosferatu We are...
  19. Nosferatu

    VARIANT

    how are you getting the result? Have you tried casting the result.parray to a pointer to a structure of your type? Nosferatu We are what we eat... There's no such thing as free meal... once stated: methane@personal.ro
  20. Nosferatu

    Shared memory using plain C in Windows

    Hey marsd, thanks for the link. It's very helpful as I already got on the way with what Pete proposed. Indeed, I was looking for POSIX functions for shared memory but MS seems to be stubborn enough not to make any accountance of them, so in the end I might be needed to write my own wrappers for...

Part and Inventory Search

Back
Top