I've always found the best way to learn a new program is to just dig in and fix a few bugs.
My first bug is fixed, the server needs some code to find the MAC address for the network card in Windows. Now I'm reviewing my code to see if I've followed their coding style, etc.
It was supposed to be an easy bug from the report. The bug wasn't quite as simple as implied. First there are three methods in the public domain and on the internet that are really just hacks and were bad choices. I finally picked apart ipconfig and found the API it uses to list all network hardware.
Next problem, if I just linked in the function used to find the MAC address it would cause MySQL to crash when running on the oldest versions of Windows.
So I dynamically loaded the iphlpapi.dll. A benefit to dynamic loading is that it won't add to the exe loading time.
Now to submit the fix.....
Sunday, March 9, 2008
Subscribe to:
Post Comments (Atom)
chris' shared items
Twitter Updates
Official blog of Chris Lee Runyan
Fastest C++ in the west.
No comments:
Post a Comment