- Viewing Profile: Topics: JonBMN
Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics
Community Stats
- Group Members
- Active Posts 68
- Profile Views 1,819
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
612
Excellent
User Tools
Latest Visitors
Topics I've Started
Fullsail Job market
08 October 2012 - 10:45 AM
Just wondering if anyone has been through a fullsail degree program and would like to share their experiences with everyone. It would be very helpful for people trying to decide between colleges.
Serial C++ help!
28 August 2012 - 08:49 AM
I am having trouble with my program to simply open the serial port COM4. any help would be appreciated.
along with the error code..
1>------ Build started: Project: SerialComm, Configuration: Debug Win32 ------
1> stdafx.cpp
1> SerialWnd.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialwnd.cpp(23): warning C4603: 'STRICT' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialwnd.cpp(24) : use of precompiled header
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialwnd.h(25): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
1> SerialEx.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialex.cpp(23): warning C4603: 'STRICT' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialex.cpp(24) : use of precompiled header
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialex.h(26): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
1> Serial.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serial.h(22): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
1> SerialComm.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(2): warning C4603: 'STRICT' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(5) : use of precompiled header
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(3): warning C4603: '_AFXDLL' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(5) : use of precompiled header
1>c:\program files\microsoft visual studio 11.0\vc\atlmfc\include\afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
1> Serial.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\Serial\Serial\Serial.cpp': No such file or directory
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#define STRICT
#define _AFXDLL
#include "stdafx.h"
#include <tchar.h>
#include <AFXWIN.H>
#include <windows.h>
#include "Serial\Serial\Serial.h"
#include "Serial\Serial\SerialEx.h"
#include "Serial\Serial\SerialMFC.h"
#include "Serial\Serial\SerialWnd.h"
int WINAPI_tWinMain
(
HINSTANCE //hInst
HINSTANCE //hInstPrev
int
)
{
CSerial serial;
serial.Open(_T("COM4"));
serial.Setup (CSerial::EBaud9600, CSerial::EData8, CSerial::EParNone, CSerial::EStop1);
CSerial::SetupHandshaking;
serial.Write("Hello World");
serial.Close();
return 0;
}
along with the error code..
1>------ Build started: Project: SerialComm, Configuration: Debug Win32 ------
1> stdafx.cpp
1> SerialWnd.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialwnd.cpp(23): warning C4603: 'STRICT' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialwnd.cpp(24) : use of precompiled header
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialwnd.h(25): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
1> SerialEx.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialex.cpp(23): warning C4603: 'STRICT' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialex.cpp(24) : use of precompiled header
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serialex.h(26): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
1> Serial.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serial\serial\serial.h(22): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
1> SerialComm.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(2): warning C4603: 'STRICT' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(5) : use of precompiled header
1>c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(3): warning C4603: '_AFXDLL' : macro is not defined or definition is different after precompiled header use
1> Add macro to precompiled header instead of defining here
1> c:\users\jonbecher\documents\visual studio 2012\projects\serialcomm\serialcomm\serialcomm.cpp(5) : use of precompiled header
1>c:\program files\microsoft visual studio 11.0\vc\atlmfc\include\afx.h(24): fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
1> Serial.cpp
1>c1xx : fatal error C1083: Cannot open source file: '..\Serial\Serial\Serial.cpp': No such file or directory
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Linking Help
27 August 2012 - 10:22 AM
I'm trying to include a serial library in Visual studio 2012 and it seems to not be pointing to the correct place when I try to include these libraries.
Any help would be appreciated and if code is needed let me know I'll be more than happy to post it. Thank you!
Any help would be appreciated and if code is needed let me know I'll be more than happy to post it. Thank you!
What was your path?
17 August 2012 - 01:24 PM
What was your journey to becoming proficient in the languages you know? I know myself I love hearing how people got to be who they are today and the steps they took. Feel free to share here, if not that's fine! I know beginners love to here others' success stories.
Embedded Help!
17 August 2012 - 11:19 AM
I'm creating a class for a later program called EthicalCompetition. I'm stuck on an error code and don't truely understand the meaning of it, if anyone could help me out I would be very appreciated.
error code
1>------ Build started: Project: Tracing, Configuration: Debug Win32 ------
1> Tracing.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects racing racing racing.cpp(26): error C2533: 'EthicalCompetition::Connection::{ctor}' : constructors not allowed a return type
1>c:\users\jonbecher\documents\visual studio 2012\projects racing racing racing.cpp(26): error C2084: function 'EthicalCompetition::Connection::Connection(void)' already has a body
1> c:\users\jonbecher\documents\visual studio 2012\projects racing racing racing.cpp(16) : see previous definition of '{ctor}'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#include "stdafx.h"
#include <iostream>
using namespace std;
class EthicalCompetition
{
private:
class Connection;
public:
void HardWork();
};
class EthicalCompetition::Connection{
protected:
friend class EthicalCompetition;
void Connect();
Connection() {}
~Connection() {}
};
void EthicalCompetition::HardWork()
{
Connection c;
c.Connect();
cout << "Connected" << endl;
}
void EthicalCompetition::Connection::Connection()
{
cout << "Connecting..." << endl;
}
int main(int argc, char *argv[])
{
//EthicalCompetition::Connection myconnect;
EthicalCompetition comp;
comp.HardWork();
system("pause");
return 0;
}
error code
1>------ Build started: Project: Tracing, Configuration: Debug Win32 ------
1> Tracing.cpp
1>c:\users\jonbecher\documents\visual studio 2012\projects racing racing racing.cpp(26): error C2533: 'EthicalCompetition::Connection::{ctor}' : constructors not allowed a return type
1>c:\users\jonbecher\documents\visual studio 2012\projects racing racing racing.cpp(26): error C2084: function 'EthicalCompetition::Connection::Connection(void)' already has a body
1> c:\users\jonbecher\documents\visual studio 2012\projects racing racing racing.cpp(16) : see previous definition of '{ctor}'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
- Home
- » Viewing Profile: Topics: JonBMN

Find content
