ODBC problem updating from Visual Studio 2005 to 2012
I've go a set of large applications that were developed in Visual Studio 2005 and were working fine until I tried to do maintenance in VS 2012. At the heart of the problem is the open code:: Code:...
View ArticleCan CWinApp::SetRegistryKey() setup application registry under...
By default CWinApp::SetRegistryKey() set the application registry under HKEY_CURRENT_USER so each user (windows login account) has their private settings stored for them. However I would like my...
View Articleplease help with c++ program question over arrays!
I am trying to write a program that keeps track of social security numbers (SSN) of customers of a bank. I have to assume that SSN is a four-digit number (e.g., 1234. 0123 is not allowed.). When the...
View Article__declspec(dllexport)
While browsing through somebody's code the other day I came across this C++ class (it's not the full code - just enough for illustration purposes) Code: class GLIBMM_API Object : virtual public...
View ArticleRoman Numeral Converter to Decimal Using an Array of Strings
:confused:This program compiles, but has a bunch of logical errors. I know my problem is somewhere in the while loop that I have, but I can't figure out where. Here are some of the issues I am...
View Articlehelp me with my c++ programe
A program with menu system and program should ask for student surname, forename and their date of birth.the program should not accept the student bellow 16 years and older than 60 years. the user...
View ArticlePrinter left margin
I have code that prints. PrintDlg. StartDoc StartPage TextOut EndPage EndDoc I am trying to calculate left margin from (inchis * 100) to pixels. So the left input for TextOut will be correct. How do I...
View ArticleMS compiler's text-processing
I have a source file (.cpp) that I save into my HD using a different encoding scheme than its original code page. Later I open it again with MSVS and clearly nothing looks different (no odd characters...
View ArticleFtp Client Files
Here is the code that gets the list of files with WININET functions Code: void CSimpleftpclientDlg::OnButton3() { HANDLE hFind; WIN32_FIND_DATA findData; strcat(data,""); hFind =...
View Article[RESOLVED] *char user input
gragh! this should be simple! >.< I thought I had a good understanding of this by now.. guess I don't basicly I want to do this: Code: char * name = "bob"; only have the user input it. something...
View ArticleReplace particular line in a file
Hi, I want to read a file and replace a particular line in a file. Ex: temp.txt file contains below FilePath1: xxxxxxxxxxxxxxxxxxxxxxxxx FilePath2: xxxxxxxxxxxxxxxxxxxxxxxxx FilePath3:...
View ArticleProject structure problem
I've come across 2 different projects with the same issue for example, the path of the sources is set to ../../../../src While the actual source is located at ../../../../src/synth So there are errors...
View Articlefie info
Somewhere in the code below is causing this error(ACCESS TO $RECYCLE.BIN$ WAS DENIED), not letting me get file info TO populate a list control. Code: pFILEINFO fiInfo = new( FILEINFO ); HANDLE...
View ArticleCString + CString
How can I join two cstring C:\USERS\****\Desktop and \ TO MAKE IT C:\USERS\****\Desktop\
View Articlecan't link in 2008 after installing 2012
I get errors that the 2008 linker can't find libs, such as Wininet and Kernel. Any idea what's happening here?
View Articleifstream error
Running: ifstream fin1; results in the following error message: error C2371: 'fin1' : redefinition; different basic types Your help please.
View ArticleWindows 64 bit or 32 bit preprocessor directives
Hi, I want to connect to an SQL Server database using ADO with VC++. In order to do that you need to import an external dll, like so: #import "C:\\Program Files (x86)\\Common...
View ArticleWinInet progress bar
Will anyone help me out with a progress bar for a wininet ftp client? here is my code that I have so far but is not working. Code: int row = m_listcontrol.GetSelectionMark(); CString s2 =...
View Articletemplate and Visual : unable to match function definition to an existing...
Hi, Here's a piece of code that compiled with GCC, but not with Visual 2010: Code: template < class TPRIORITY, class T > class cf_list : public std::list< std::pair<TPRIORITY, T>...
View Articlevector to matrix MATLAB
hi I am a newbie to programming. i have 12 vectors of size 1*150 (1 row 150 columns) i want to merge all these 12 vectors to a matrix of size 12 *150 (12 row 150 columns) how should i do it? all...
View Article