Quantcast
Channel: Visual C forum
Browsing all 15302 articles
Browse latest View live

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 Article


Detecting 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 Article


C# 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 Article

Run 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 Article

Why 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 Article


Dll 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 Article

Header 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 Article

How 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 Article


how 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 Article


drive 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 Article

Casting 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 Article

Does 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 Article

Visual 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 Article


Unclear 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 Article

FolderBrowser 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 Article


Cannot 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 Article

Scroll 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 Article


Batch 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 Article

How 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 Article

UI 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
Browsing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>