Description:
Microsoft Visual C newsgroup.
|
|
|
RegOpenKeyEx failure
|
| |
Hi Experts: I'm writing a console app which accesses and changes some values under Windows registry: HKLM\System\CurrentControlSet\ Enum and I'm the admin on the machine (XP). I have done the following steps but failed at step #4 with access denied error. 1. Get the process handle with PROCESS_ALL_ACCESS; success.... more »
|
|
How to detect active Ethernet link
|
| |
Hi, I am using embedded Visual C++ on WinCE with Winsock API calls and want to detect if my Ethernet card is connected to a switch or not without actually making a connection to another socket. A bit like how your computer 'knows' when connected to a switch, without actually requiring DHCP, etc. (just plug in an RJ45 and the on-board link light... more »
|
|
Using GUID as the key for std::map
|
| |
I've a map which uses GUID as the key. ...void main() { std::map<GUID, std::string> map; GUID d1; std::string szName = "test"; map[d1] = szName; ...But when compiling this code in VS2008 shows following errors c:\program files\microsoft visual studio 9.0\vc\include\functional (143) : error C2784: 'bool std::operator <(const... more »
|
|
Not finding help for standard C functions
|
| |
This may not be the appropriate place to ask this but I'll give it a try. I have Visual Studio 2008 installed and when I try to look up a standard C function I do not find help for this. It seems to me that on earlier versions of Visual Studio I was able to find such help. Does anyone have a clue as to what my problem is?... more »
|
|
How to debug a dll?
|
| |
...This suggests strongly that the code in fact never gets run. Debug it to figure out why.
|
|
Generic String Conversion Question
|
| |
Hi vc gurus, template<typename ValueType> std::string ConvertToString(ValueType value) { std::stringstream ss; ss << value; return ss.str(); ...With the above code snippet, I am able to use str = ConvertToString<DWORD>(temp1); to obtain a decent string for DWORD numbers. But it did not succeed with floats... more »
|
|
C++ Exception and Copy Constructor requirement
|
| |
Hi, I know the C++ standard demands that when one throws an exception by value a temporary copy of the exception object is being made and this temporary object is passed to the catch site. The copy is made by the static type's copy constructor. I am fine with that. However, the following experiments with VC2003, VC2005 and VC2008 produces... more »
|
|
|