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

array

make and run a program that will accept a user inut not more than 80 chracters and find the total number of inputted character..

View Article


Variable Pointer Names

Hello, I am trying to create a lot of pointers at once and I need them to have all unique names.  In other words, I need to be able to do something like for(int X = 0;X<10;X++)  { QToolButton...

View Article


CDateTimeCtrl DTS_UPDOWN display issue

Hii am displaying a CDateTimeCtrl.  i create it with the following styleDTS_RIGHTALIGN|WS_TABSTOP|DTS_UPDOWN|DTS_APPCANPARSEsometimes when the control displays, its up/down buttons are not shown and...

View Article

separate elements of a list using some of the elements as delimiters

Hi, I have the following scenario and I wonder whats the best way to do it:/*I have a vector 'a' and a list 'b' that 'a' contains some of the elements in 'b'*/ vector<type> a; list<type> b;...

View Article

ANSI C - WriteFile Not working?

Can anyone see why the following code does nothing?There are no errors reported but nothing is written to the drive.#include <stdio.h> #include <Windows.h> HANDLE creatFile(void); long...

View Article


Adding External Dependncies

I am running Visual Studio 2012 and am trying to get someone else's code working.  Somehow, about half of my include files are throwing the "Error: cannot open source file" and "fatal error C1083"...

View Article

Issue related to shortcut key assigned to menu item in C++

Hi All, I am assigning Ctrl+T for menu  item Test. When I am clicking on menu item Test .... the handler  onFileTest() {} is invoked but when I am pressing Ctrl+T .... thenthe handler onFileTest() {}...

View Article

calling console application from MFC application

Dear all,    I want to run a win32 console application from MFC application using a button click.   Please suggest answers,if you know.Thanks all,Poona.

View Article


Empty password from credread() function

I wanted to read credentials from Windows Credential Manager. When I used credread() it finds the entry and gives me the username but for password (CredentialBlob) is says bad pointer and...

View Article


CEdit::GetSel - I have an MBCS application that seems to be reporting...

How does CEdit determine its internal behavior from the containing application? Is it at creation time, in which case IsWindowUnicode returning false would suggest it should return position in BYTES...

View Article

Writing to a csv file in c

Hi,I know the basics of how to write data into a csv file usinf fprintf() with "," separated values.My problem is when i do that in the result file the data is coming properly in different colums but...

View Article

Ordering values in Resource.h file

Hi,We had a resource file which was ordered well when the resources are added dynamically. But after some code merge from a different stream, new resource macro definition are added to the resource...

View Article

I am in need of code for the following instance (Vc++ Lab Programs)

Dear Sir/MadamI searching following programs in vc++ i did not got perfect samples any one solve this or ask to vc++ forums 1. to display tool bar ans status bar 2.To add, delete string in a list box...

View Article


What Will Happen If Combined The dllexport And '= default' In VC++ 2013?

Can any employee working at the Microsoft tell me about the question of the title asked?Since our company haven't received the final version of the VisualStudio 2013 (RTM) yet. The MSDN blog said that...

View Article

CString::Find(ch, start)

Hi All,I'm using VS2008 that's upgraded to 2009.  Using the CString::Find( character, start ) form of the function.  If I am reading the documentation correctly, there's no way to skip past a character...

View Article


zoom event in cdhtmldialog

Hi ,    i want to get the optical zoom event in my dialog class derived from cdhtmldialog ....i came across IZoomEvents class which has that method....but not able to implement it..how do i implement...

View Article

Cannot open 'MSCOREE.lib' using Windows7.1SDK

I'm using VS2010. I tried to change the target .NET framework from v.40 to v2.0 and according to this site:http://msdn.microsoft.com/en-us/library/vstudio/ff770576.aspxI should be usign the...

View Article


VS2010 CArray access violation on .Add - why?

We have a program that crashes about once per week on adding a CString variable to a CArray<CString, CString> variable.The call in "Microsoft Visual Studio 10.0\VC\atlmfc\include\atlsimpstr.h"...

View Article

cin >> and cin.ignore()

I read that the extraction operator stops extracting bytes from the buffer when it encounters '\n','\t',blanks and white spaces. When this happens, does it simply leave the '\n' in the buffer or does...

View Article

hi all, big problem with menus

hi, i created a popup menu (not connected to main menu bar)and i append items by idnow the problem isif i change an item caption by id (with SenMenuItemInfo function)and then i try to get its caption,...

View Article
Browsing all 15302 articles
Browse latest View live


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