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

Detect the port to which a GPS device is connected

Hello Everyone,I am working on Geo-Tracking based on GPS.Is there a way to find out the port on which GPS device connected?I tried the way to do this is to open each port, and listen a bit for NMEA...

View Article


VS2010: compiled the program, but windows is unable to start the program.

I just recently downloaded VS2010 and I tried building a simple program to test it to make sure that it works. It says that the program compiled successfully, but windows gave me a new window that...

View Article


Can't access VSS under Windows 8.1

Hello,i am trying to develop a simple backup solution by using the VSS service.Right now i found this code:#include <vss.h> #include <vswriter.h> #include <vsbackup.h> typedef...

View Article

0xc000007b on Visual C++ 2013 Relase Binary

Hello.I'm having a hard time figuring out how to build a Windows 7 valid exe with Visual Studio 2013. The solution consists on the following items:c++/cli application containing some forms.c# class...

View Article

Initializing System::String with a managed array of char

I'm trying out my first project with visual C++, and I'm having a hard time figuring out a way to initialize a String from an array of char. I am taking an unsigned 32 bit integer as an IP address and...

View Article


How to get the message owner of CMenu window?

    For CMenu of MFC, normally we will use member function "BOOL TrackPopupMenu( UINT nFlags, int x, int y, CWnd* pWnd, LPCRECT lpRect = NULL )" to pop up menu, here the parameter "CWnd* pWnd"...

View Article

Image may be NSFW.
Clik here to view.

How to add tooltip for column header of CListCtrl ?

     As you see in following picture, the column header of case 1 show the whole text, but for case 2, the column header only show part of the text because we made the width small, so how to add...

View Article

Need confirmation about the note below in the Standard.

Paragraph §3.10/2 in the Standard:Whenever a glvalue appears in a context where a prvalue is expected, the glvalue is converted to a prvalue; see 4.1, 4.2, and 4.3. [ Note: An attempt to bind an rvalue...

View Article


autoexp.dat Visualizers in VS11 Developer Preview broken?

It seems that if I add visualizer definitions to the autoexp.dat file in the Visual Studio 11 preview, they do not work. Is this a known issue, or is there some other way to define custom visualizers...

View Article


Registration of Visual C++ 2005 -- link within the app does not work

The link "Register Now" from C++ 2005  is to go.microsoft.com/fwlink/?linkid=51341&lcid=1033&h=4c795cc9e64a90f5&c=&pid=76542-000-0000011-00125&bn=050727.867but it gives a 404 error....

View Article

Microsoft Visual C++ Runtime Library Error

 I am tryging to download pictures from my camera card through my printer which is an HP Photosmart 6520 and everytime that I I try and transfer the pictures to my computer, I get the error message...

View Article

Image may be NSFW.
Clik here to view.

GetGPOList API returns error 0x534 (ERROR_NONE_MAPPED)

GetGPOList API returns error 0x534 (1332, ERROR_NONE_MAPPED)I tried this code :HANDLE hToken = NULL; bool success = true; if (OpenProcessToken (GetCurrentProcess(), TOKEN_IMPERSONATE | TOKEN_READ |...

View Article

Cannot find interface "IMsRdpDrive" when using VS2008 (MFC class form...

Recently, I'm going to do a remote desktop software with C++.And I found its introduction in msdn,here is the address.http://msdn.microsoft.com/en-us/library/aa383022(v=vs.85).aspxSo I use the...

View Article


how to give privilege to C drive for windows8 using VC++ in VS2008

Dear Friends,Application demanding Admin rights, when I install application in client PC. All supporting files pasted under "C:" driver. Due to insufficient privilege (read and Write) the application...

View Article

COleDataSource clipboard method is crashing in Widows XP after closing the...

Our project(MFC Active X project) is developed using VC++ 2010.We are using COleDataSource methods to copy data to clipboard. We are using the below code snippet to copy data on...

View Article


how to enum a domain with LDAP?

bool CGetInfor::GetActiveUser(TCHAR * lpCommand[MAX_PATH],int ArgCount) { TCHAR tcServerAddr[MAX_PATH]={0}; TCHAR tcUserName[MAX_PATH]={0}; TCHAR tcPassWord[MAX_PATH]={0}; TCHAR...

View Article

how to use graphics in visual studio 2013

how to use graphics to davelope game in c++ visual studio 2013.?

View Article


Visual Studio 2013: wmiatlprov.h missing

Hi,we are currently upgrading our VC++ projects so that they use the v120 toolset (Visual Studio 2013). Before we used the v100 toolset (VS 2010).One of our project is including the file wmiatlprov.h...

View Article

ActiveX bitmap push button built in VS 2013

I migrated an ActiveX project from VS 2008 to VS 2013 that has various controls including bitmap push button. When I build under C++ VS 2013, the control works in dialogs but is disabled in CDialogBar...

View Article

CreateDesktop with custom background or custom wallpaper

I want to set a custom wallpaper for  desktop created with CreateDesktop(). Note the the wallpaper should only set for newly created desktop, the wallpaper of default desktop should not be...

View Article
Browsing all 15302 articles
Browse latest View live


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