Even for me this is the first time AfxMessageBox fails. MSDN tells that AfxMessageBox on failure returns 0 and that it is due to no enough memory. I forgot to mention the scenario. This messagebox I call from within a thread function(via CreateThread) which takes as its parameter the string to be displayed and I am sure there is no problem with string passing.This I made sure by hard-coding the string just to check whether it works fine with hard-coded string value.But even in that case I got the same problem. But now I tried using MessageBox API instead of AfxMessageBox.Its working fine.But couldn't get the reason behind the problem. Thank You. Yamuna.E. Yamuna.E.
Yamuna
Posts
-
Message Box problem -
Message Box problemHi, I am using AfxMessageBox() API in my application.Sometimes the message box doesn't come up and when I debugged and saw found that the return value is 0 which means that there is no enough memory to display the message box.What do I do to solve this problem? Thank You. Yamuna.E. Yamuna.E.
-
Connection with a remote machineHi, I have already connected through windows explorer to a remote machine with some user account of the remote machine. Now I would like to programmatically find out whether I have connected to that machine already(but I don't know the account by which I have connected). Is that possible and if yes how? Thank You. Yamuna.E. Yamuna.E.
-
Computer name & DNS nameThank You.
-
Computer name & DNS nameHi, I have set a DNS name to my computer which is different from my computer name.APIs like GetHostName, GetHostByName only give the DNS names.Is there anyway of programmatically finding out my computer name? Thank You. Yamuna.E.
-
Problem in RegQueryValueExHi , I try to query a value from a remote registry using RegQueryValueEx.But I get an error code which says RPC_S_INVALID_BOUNDS.I tried changins my buffersize from small to large values but to no use.Can anyone please tell me the solution? Thank You, Yamuna.E. Yamuna.E.
-
API for obtaining Subnet MaskHi, Is there any API (windows API) which will return the subnet mask of the local machine? Thank You. Yamuna.E.
-
Error generating type libraryHi, I have a problem in defining a structure inside a type library in COM.Compiler is not able to generate UUID for the structure.Could anyone please help me? Thank You. Yamuna.E.
-
Regarding notification through events to remote machinesHi, We use CreateEvent() API to create event object. This Event Object is recognized in the local system. When it comes to Remote Systems is there any API similar to CreateEvent() for notification? Thanks. Yamuna.E.