How to receive a serial signal through a usb port
The company I work for has an older model flight simulator which outputs the aircrafts position to a Roland DXY-1100 plotter through a built-in serial port. The plotter does not always work correctly,...
View ArticleWhere should a breakpoint be placed to stop at the earliest possible...
Sigh... This was a lot easier when all C/C++ applications began at main()...In a WPF application, the first code is in App.xaml.cs, but MFC is too darn confusing.TIA
View Articleinstalling gcc 4.8.2 for eclipse juno on windows 7
ive written the infamouse hello world tutorial to simply go through the paces of knowing what happens when a program is compiled. however i have a problem. program g++ can not be found in PATH. SO to...
View ArticleHow to set CFileDialog default file path at dlg.DoModal?
I use MFC Visual C++ 4.2.I want to set CFileDialog default path so when user click a button that will do the dialog, the default path will be the one I set. I have read the MSDN Library and there was...
View ArticleThis question is about N3797 §12.1/4 or N3337 12.1/5
The quoted paragraphs in the two versions of the Draft (N3797 and N3337) are the same:A default constructor for a class X is a constructor of class X that can be called without an argument. If there is...
View ArticleWhy the row height of CListCtrl are different when case1 create it on...
That is a problem that, the row height and font of CListCtrl are different in following 2 cases: Case 1: Create a CListCtrl in CDockablePane Case 2: Create a CListCtrl on CDialogFor...
View ArticleVisual styles and CTLCOLOR messages
I have enabled Visual Styles for my application. I like the better look but also like to control the color by myself. Unfortunately the behaviour of the CRLCOLOR messages is different. When I return a...
View ArticlePointer-to function issue
In moving from VS2008 to VS2013 I'm experiencing an issue with pointers. This type of declaration and function calls worked on the older version of VS:double sigma;double lysq;int nl;(this is a class...
View ArticleProblems with ShellExecute()
I am trying to open a PDF file when a button is pressed using the ShellExecute() command and am having problems. I first said:#include "Windows.h" #include <shellapi.h> and then added later...
View ArticleLooking for a Mentor
Hi there. I'm currently a student in a CS degree and I'm looking for someone to mentor/tutor me. I'm looking for someone that can help me with challenging assignments/topics, have in-depth...
View Articletips from jk
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BookList { class Book { public string Author { get; set; } public string...
View ArticleFile Upload(Web Based Internet Explorer) need Code
Hi I want to select a file using fileupload through code (with out human invervention). when i run the code fileupload control should automatically pick the file from specific path. advance thanks.hi
View Articleerror C2664: '_com_ptr_t::_com_ptr_t(LPCSTR,IUnknown *,DWORD)' : cannot...
HiiI am migrating my application from vc++ 0.6 to vc++2013, one of the error i am facing is given above,I am sending th epart of my code with the error line...
View ArticleWinHttp x64 crash
Hi everyone,I run into issue when application is crashing if inaccessible host/IP is specified.steps:1) open asynchronous session/connection to inaccessible host/IP2) send GET request3) before request...
View ArticleConverting code from visual c++ 6.0 to visual c++ 2010
I have been tasked by my employer to convert an old code written in Visual C++6.0 to Visual C++ 2010.How can I convert the function below to Visual C++ 2010? All my previous Attempts lead to memory...
View ArticleMicrosoft visual studio 2013 express keeps telling me to...
Microsoft visual studio 2013 express keeps telling me to repair or uninstall it how do I stop this? I've repaired and uninstalled visual studio multiple times.
View ArticleCopy data from file.txt to an array
Hello everyone ! I have to make a program where I have to take data from a .txt file and put that information into an INT.array.When I open the file , it looks like this : 125 George 59 Samantha 88...
View Articlesplit into word from a text line
i want coding for split the word by word from a text document or line.it store in different string in vc++2012ex:this is the textoutput:string1=thisstring2=is string3=thestring4=textKarthikn.s
View Articlemidl : error MIDL2019: error accessing type info : Error Returned -2147312566
Hii I am migrating my application from vc++0.6 to vc++ 2013I am facing these error MIDL2019Can anyone help me through thisThanks Ankush
View Article