How can I attach a process by myself. Just like VC++'s attach to process does?
Hi,Is there any way that I can attach a process by myself, just like the VC++'s attach to a process?I found the VC++ can detect the process crash and dump the message. I want to simulate the behavior...
View ArticleDetecting user of a network connection
Hi AllHow can we detect the windows user from whom a network connection(web request) is originated if there are multiple users logged on at same time. I want to get the user information in user level...
View ArticleC# to VC++ - Toolstrip
This C# code is generated by a Toolstrip Customizer ToolI don't know C#, so I want someone who knows to convert the code to VC++.Just one exampleof one color and the rest I will do.class XPR_TS_RENDER...
View ArticleRun time Compiling
How do I compile VC++ code at run-time into a DLL along with the windows libraries??And I want to give a feature in my SDK where a programmer can create his own tab and my tab control accepts tabs as...
View ArticleWhy doesn't it show all zeros?
if i have a float x = 0.70 why doesn't cout output it as 0.70 ? it outputs it as 0.7? how can i make it show 0.70 instead of 0.7?
View ArticleDll with functions in a class. How do I get access these functions for my c++...
To describe my scenario, I have a dll that contains the class CLS_WMApp which includes all of the functions that I need to use. I also do not have the source code so many resources that have said to...
View ArticleHeader Files Not Functioning
So, I was designing a program for a Computer Science class of mine, and suddenly the header files decided they weren't going to work anymore. They are the standard ones (iostream, iomanip, cmath, etc),...
View ArticleHow to load image in picture control from another function?
How would I load a bmp in a picture control from one of my own functions? All I know is the ID.
View Articlehow to use CopyHere
I have a c++ MFC Windows application that uses IShellDispatch to create a NameSpace. I first create a .zip file on disk using _wfopen_s, write the 16 bytes of magic numbers into the file and call...
View Articledrive a dialog MFC application with command line
Windows 7, 64 bit, Visual Studio 2008, Visual C++, MFC, dialogI am creating a utility to validate a definition file called TMATS. This is a telemetry application. There is a need to be able to run...
View ArticleCasting CString to LPCWSTR,when I use the pointer,CString no longer exists.
I write code like this,CString GetName() { return L"MyName";}// The code using CString.LPCWSTR myname = GetName();MessageBoxW(0,myname,0,0); //here myname is invalid because the returned CString got...
View ArticleDoes COM work under windows NT
Has anyone tried running COM under windows NT? I will have to compile my COM stuffs under Visual Studio 2012. I then have Excel VB accessing the COM, but I will have to do some hardware testing under...
View ArticleVisual C++ Console application fails to output to cout or with printf
Background: I was creating sample program to statically link and call a static library (OpenSSL), and I followed a lot of instructions found online for solution and project properties to eliminate...
View ArticleUnclear example in doc
http://msdn.microsoft.com/EN-US/library/84eaw35x.aspxI don't understand the part starting with Pointers and references to derived classes can be implicitly converted to... to the end, especially the...
View ArticleFolderBrowser Control like in Visual Studio 2010
The usual FolderBrowserDialog gives me a TreeView of files.I want to have a folder browser like the one in Visual Studio which is actually more user-friendly.Is there any special component for that or...
View ArticleCannot Compile Defualt Console Application on Fresh Installs of VS2012 or VS2010
I am trying to help my friend set up Visual Studio 2012 on his computer (Windows 7). He is not a developer. He installed VS2012 with no problems but when he makes a new console application and runs...
View ArticleScroll Bar Paint Remix with button :P
http://i.imgur.com/TnJGTLC.png - What I am trying...I have my custom script editing control, it uses the Scroll Bar drawn by UserControl.How do I place such a button in my control??Without...
View ArticleBatch File
Hello Everybody, I tried running a program using a batch file.When I type the command arguement the line: "generator.exe 8 100 1 0.9 > run1.txt", I get a text file named "run1.txt" which contains...
View ArticleHow to create typed array member of c++ typedef struct in ASP.NET
Hello,I am working on an ASP.NET application and have set it up so I can pass a struct from C++ to C#. I would like this struct to have a typed array that gets correctly converted to an array on the C#...
View ArticleUI fonts
Hello, how do I get a handle to the default UI font of windows 7 or 8? GetStockObject () is not advisable according to msdn.
View Article