hello
I'm trying to recompile older code in latest Visual Studio (2008) and code that worked previously now fails to compile. One of the problems is due to overloaded operators for my class. below there is simplified class to demonstrate the problem. If I remove casting operators for int and char* then it works fine. So one of the ways t...
How can I programatically detect any changes that occur to Microsoft's Active Directory?
...
I have prepared C++ code snippet. How to use it in VS2008 Pro?
...
class Board
{
public:
enum Player {X = -1, O, E};
bool win(Player P); // A function that returns true if Player P has won the game, and
// false otherwise.
}; // end class board
The above is part of my header file for a Tic-Tac-Toe game. I am trying test the win function and confused on how to test i...
Hello Friends,
I've done my C++ classes and practices after which i started learning Visual c++ using book Ivor horton's visual c++ . The problem is that i am unable to understand the language of this book and badly trying to understand the codes . I want to learn visual c++ for windows application development and making my future in th...
Hello,
I'm trying to debug some C++ code but I can't see the values in a multi-dimensional array while debugging
I have a dynamically allocated pointer (double **A).
When I try to watch the value of this array I just get the first value, I can't see the remaining values.
Any ideas?
TIA
...
I'm having a problem with the CMFCToolbar class where the positions of the toolbars are not being restored properly between sessions.
Here is a screen shot of how the toolbars are arranged before the app is closed:
Here is a screen shot of how the toolbars are restored when the app is launched again:
Notice the large gap that appe...
Dear All,
I want to add some text on a dialog in VS 2005. I have installed Microsoft SDK on my system.
The text which I want to add is very big, it runs upto 4 pages.
So I decided to add edit control with scrollbar, which I am not able to do.
I tried adding through string table, but formatting was not maintained.
Plz let me know, ho...
am doing a dll in vc++ for blocking ports(like tcp sniffer).while blocking udp port in local machine its works fine.while am taking remote computer from my my system its raises on exception
"system.NullReferenceException'occurred in system.windows.forms.dll"
i incorporated the dll in c# application.please give your suggestion
...
(I'm new to CMake and I am not so familiar with Visual Studio.)
I need to implement a relatively big library the solution/project files will be generated by CMake, and my problem is that I would like the organization of the files in VC GUI to reflect the directory structure on the disk.
Basically, the library is split into different pa...
I'm debugging an application in visual C++ 2008 express. An exception occurs so the debugger breaks and waits for my instructions.
How do I view the details of that exception, as an object, just like other stack level objects in the auto and local windows.
For instance, in my immediate case its a std:exception. So chances are it has so...
I'm considering using the /EHa compiler switch when building in Debug and Release. I'm using a bunch of 3rd party static libraries and DLLs, which I'm assuming didn't get compiled with /EHa. Will I be running into any problems?
...
When I include winsock2.h, I get about 60 redefinition errors. I hunted around a bit a found some advice to include winsock2.h b4 including windows.h. I did that and that cleared up the errors. My problem and question concerns exactly how I should go about doing this. I did not explicitly include windows.h, it was done for me in stda...
I'm porting 3rd party software from Linux to Windows using Visual C 2008 Express.
I have trouble only with function `wctype'. It's declared in %VCDIR%/include/wctype.h file as follow:
_MRTIMP2 wctype_t __cdecl wctype (const char *);
But, when trying to link a have the following error:
C:\test>cl test.c
Microsoft (R) 32-bit C/C++ Op...
How should I implement these 64-bit interlocked functions on WinXP? Of course I can use full mutex, but I think it's needlessly heavyweight for this task. There must be some better way.
...
Hi, I couldn't find a simple tutorial on how to make a dialog box with decrementing timer. I don't need the timer to be accurate or actually reflect my program's inner timer.
...
In C++ (specifically on Visual C++), sometimes you cannot open a file because another executable has it opened and is not sharing it for reads. If I try to open such a file, how can I programatically find out who's locking the file?
...
Hi All,
I have included file "rpcdce.h" for ::UuidToString() function.
Still i am getting link error .
Can anyone help me ?
...
When I move to a CEdit control on my dialog using the tab key or the arrow keys all the text in the control is selected. This behaviour is causing me problems and I would prefer it if the control just put the cursor at the start (or end) of the text and didn't select anything.
Is there a simple way to do this (e.g. a property of the cont...
I download Neoncube downloader and tried to compile. After I resolved some linking issues, there's still three that I can't solve.
1>main.obj : error LNK2019: unresolved
external symbol _UnEmbedBrowserObject
referenced in function "long stdcall
NoticeWindowProcedure(struct HWND
*,unsigned int,unsigned int,long)" (?NoticeWindo...