|
Yeah, specifically/directly/technical . Ok. I will maintain that. Thank you a lot. . Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
I was trying to get the ip of host name using getaddrinfo. The linked list updated by this function (addrinfo structure)has sockaddr type which has only to types. How to find ip from hostname using getaddrinfo?
MSDN has stated that it is better to use getaddrinfo instead of gethostbyname.Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Of course you can; I wonder where my brain was the other day? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Yes. i am experimenting all. thank you. Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Your question prompted me to revisit the use of the various network functions, which I have had no occasion to use for about four years. I spent all evening working on some associated code and think I now understand them as well as I did then (obviously not completely), so thanks for telling me what can be done, and pushing me to relearn what I had almost forgotten. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Then how it is working?
Actually, i update my win32 program with the latest ip address of my shared hosting.
Instead of this i want to resolve the ip in my program.
The address what i dot from ip-adress.com is the same as the one which i got through the snippets provided here. Then what would be the variation in resolving a local address and resolving using DNS...
Only if our ISP updates the addresses we will get a copy of those... How to fetch from DNS...?
There are lots of questions in a whirl #@*& Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
I think David has explained this, and also pointed out my mistake. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hello,
In C++ Windows programming , I need to make CheckBox(IDC_CHECK1)control transparent on dialog..I have applied a background image to this dialog using pic control and on top of it added auto checkbox. I want to make checkbox's text transparent on the dialog window so that background image is visible even after (checkbox's)text is written on it. I have made checkbox's 'transparent' property true but it's not helping me out. Tried to use getlongwindow() and setlongwindow() API's too...
can anybody help ?
Best Regards,
Supriya Tonape
|
|
|
|
|
|
|
Hi,
Strange issue a colleague and I have been having intermittently since last week.
Basically, after debugging a C++ console app in Visual Studio 2008 (usually via F7 to rebuild after making a code change), sometimes the command window stays open and cannot be closed by any method we can think of. Running the application in debug again opens a new command window. Windows will not reboot once one of these zombie window is there, the machine has to be powered-off. This has occurred with 3 different applications so far.
Process Explorer tells me "Unable to find the window's owning process in the current process list" when I "target" the window with "Find window's process".
I found this thread after a bit of Googling:
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/e6d4a4f5-7002-401a-90e1-6174d7f9e3ca[^]
Anyone else experiencing similar? Tempting to blame last week's Patch Tuesday...
|
|
|
|
|
At least two of my colleagues started to experience the same annoying problem recently. Looks like this is caused by one of recent MS security updates.
|
|
|
|
|
I've also noticed this, but in VS2005 instead. I've got 4 orphaned consoles now. Was about to simply power off my machine. Got the same "Unable to find" message with Process Explorer.
|
|
|
|
|
I'm having the same problem and I believe it started to happen after MS Windows update last week or so.
|
|
|
|
|
The solution seems to be to uninstall KB978037.
If anyone knows how to escalate this issue with MS, please let me know. We have a minimal code sample that allows the zombie window problem to be readily reproduced. See the MSDN forum link in my original post for more info.
|
|
|
|
|
Thanks. Uninstalling KB978037 update fixed the problem for me.
|
|
|
|
|
I have the same problem. while debugging some jni code. i have to power down the machine. won't restart. won't let me log off!!
way to go microsoft!!!!
|
|
|
|
|
I've been having this issue as well for the last two months or so, and found it very annoying (I work remotely and sometimes need to reboot the machine - the presence of orphan windows makes it impossible). Guess I'm not adding anything useful to this discussion, but maybe if enough voices of protest are raised, Redmond would do something about it.
|
|
|
|
|
I'm currently working on a rewrite of my most recent article Monitoring and Controlling a Recursing Function in a Worker Thread. I was as happy as someone could be when they've managed to get something that they've been very baffled by to actually do what they wanted it to do when I submitted the original article. Luckily for me, though, someone who is a better programmer than I kindly pointed out the short cuts in it which I was too ignorant to even know I'd made.
So - sixteen months after posting the original article I am currently preparing an update which includes new code employing exclusion techniques which, I hope, satisfies thread safety requirements thereby making the article more useful to people who want to base more complex threaded software on it.
Beyond the thread safety issue, I also looking in to the issue of making the thread function a global (non static) function. This was suggested as a possibility to me. I am not sure why this might be a benefit. The process of re-implementing the function is helping me to attend to the threadsafe issues, though.
I would be very glad to hear of any ideas you have of the benefits of moving the function to a global scope - or possibly keeping it as a member function.
Thanks,
Ben.
|
|
|
|
|
IMO, it's just a matter of style. if your thread func needs to access something that's defined inside the class (typedefs, enums, child classes, etc.) then it makes sense to use a static member function. but if the thread func doesn't need anything like that, i'd use a global static.
|
|
|
|
|
Thanks! That's the impression I've been getting.
|
|
|
|
|
Hi everyone, can anybody help me by answering this question please:
write a program that implements a Phone Number Encrypter. This entity should be capable of reading a telephone number as a string in the form (555) 555-5555. Reading should include validating the format i.e. while (555) 555-5555 would be correct, 5555555555 would be incorrect as also (555) abc-3128, (3m5) 523+3289. It should then extract the area code, the first three digits of the phone number and the last four digits of the phone number. The seven digits of the phone number should then be concatenated into one string. The next step would be to convert the area code and the seven digit phone number strings into ints. Finally, you want to encrypt the number as follows:
• The area code should be converted to the binary notation using the complete number e.g. 555 would be 1000101011. Note that you would need 10 bits to accommodate all possible combinations
• The seven digit phone number should be converted into binary notation where all digits should first be added and the sum be converted into binary notation. In the given example the sum of the digits in 5555555 is 35 and hence the binary notation will be 100011. Six bits should suffice to hold the results
Finally the two encrypted binary representations should be concatenated. This would be a 16 digit binary number.
Implement a class to represent a Phone Number Encrypter. Following good object oriented programming practices, keep the data members private. Accessor functions should be declared to set and get the private data if needed, your overloaded input operator should take care of reading the phone number initially. You are free to use c-strings or objects of string class to store the ISBN as a string, although, the object-oriented string class is recommended. Write a test program to illustrate the use of your class.
I know it a long question but I really need your help...
|
|
|
|
|
I see that you have posted the text of your homework assignment. Unfortunately, you seem to have forgotten to include your actual question about it, or indicate what you have done on it. For more information, please see here[^].
Once you post your question, someone maybe able to help you.Please do not read this signature.
|
|
|
|
|
What have you done so far ? Watched code never compiles.
|
|
|
|
|
zakria81 wrote: I know it a long question
I can't see any question.
|
|
|
|