|
I’m trying to figure out what the best way is to learn C++. Book, on-line course etc. Has anybody here had any good or bad experiences with anything? I’m leaning towards some sort of self paced book.
I have some VB.NET background and one beginner level C++ class years ago. I remember nothing about the C++.
I need to learn enough to be able to take (and pass) a required upper level C++ class so that I can finish a degree that I’ve been working on for 10 years. Plus some C++ knowledge would be nice for my job.
Any help and or suggestions would be appreciated.
Thanks
Brad
|
|
|
|
|
This is the C++/CLI forum. C++/CLI would be easier for you, seeing as it contains the .NET framework that you already know. But, if you want to learn C++, I recommend a book, and if you have any questions about c++, I recommend the Visual c++ forum.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Alright. Thanks Christian.
|
|
|
|
|
Hello,
I try to compile exe at VS2005 and get this error:
uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___wargv
uafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
Do you know what to look for?
Thanks!
|
|
|
|
|
Is it VS 2005 Express Edition?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727
|
|
|
|
|
hmmm I'm not sure - those variables should be in the C runtime (CRT) library.
I'm wondering if you're trying to make an MFC app with Visual Studio Express Edition.
That won't work.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
As making Libcmtd.lib - ignored (at linker) coused this problem...
|
|
|
|
|
Possibly. Try removing it. Also maybe make sure Ignore default libraries options are set to no.
You can also create a similar project from the wizard and look at its settings to give you a
starting point.
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
hi all
topic says it how can i do something like :
this ist NOT working but what ever i try i ending always by this problem -->
class1.h<br />
<br />
#pragma once<br />
<br />
ref class class1<br />
<br />
{<br />
<br />
public:<br />
<br />
class1(void);<br />
<br />
class2^ c2;<br />
<br />
};<br />
<br />
.cpp<br />
<br />
#include "StdAfx.h"<br />
<br />
#include "class1.h"<br />
<br />
#include "class2.h"<br />
<br />
class1::class1(void)<br />
<br />
{<br />
<br />
}<br />
<br />
<br />
<br />
class2.h<br />
<br />
#pragma once<br />
<br />
ref class class2<br />
<br />
{<br />
<br />
public:<br />
<br />
class2(void);<br />
<br />
class1^ c1;<br />
<br />
};<br />
<br />
.cpp<br />
<br />
#include "StdAfx.h"<br />
<br />
#include "class2.h"<br />
<br />
#include "class1.h"<br />
<br />
class2::class2(void)<br />
<br />
{<br />
<br />
}
|
|
|
|
|
Add forward declarations to the header files:
class1.h
#pragma once
ref class class2;
ref class class1
{
public:
class1(void);
class2^ c2;
};
.cpp
#include "StdAfx.h"
#include "class1.h"
#include "class2.h"
class1::class1(void)
{
}
class2.h
#pragma once
ref class class1;
ref class class2
{
public:
class2(void);
class1^ c1;
};
.cpp
#include "StdAfx.h"
#include "class2.h"
#include "class1.h"
class2::class2(void)
{
}
-- modified at 11:57 Thursday 7th June, 2007
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Cool
thx a lot !
|
|
|
|
|
How to copy data from one listview to another?
cheers
|
|
|
|
|
The last time you asked this, I told you and you didn't reply. The post is still visible on the board !!!
I assume asking here again means you ARE using C++/CLI and not just C++. OK, not many people are, but as the .NET framework is always the same, I recommend one way to find out about WinForms stuff is to look for C# help and apply it.
Like I said before, WinForms list boxes have an Items collection, you can't just copy items between them ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I need a sample code of "file system " project , can you help me my friend ?
excusme , i cant speak english very good!!!!
|
|
|
|
|
A Managed C++/CLI project? If not, you're posting on the wrong message board.
What is a ""file system " project"?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Even if you are in the right forum, this is a place to ask for help with your code. People who ask for full projects rarely have any luck, unless that project already exists on this site.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I'm struggling with a problem. I want to catch a 'WM_COPYDATA' event that occurs in a C# application.
I send a data from a C++ application. The bridge is correctly done I think.
So, sometimes it works, usually when my C# application is active.
But most of the time, it doesn't work, because when trying to catch the appropriate WM_COPYDATA message in WndProc overrided method of my C# application, the program stays catching a couple of other messages like: WM_WINDOWPOSCHANGED, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_ACTIVATE and so on.
Doing so, it almost never catch the WM_COPYDATA message that I sent from my C++ application.
Can you help me please ?
Thanks.
P.S.: I catch messages in my C# application like this:
protected override void WndProc(ref Message m)
{
string g = m.ToString();
if (m.Msg == WM_COPYDATA)
{
// instructions.
}
}
p.f. Goudjo-Ako
Bringing our energy together !
|
|
|
|
|
Hi,
I'm struggling with a problem. I want to catch a 'WM_COPYDATA' event that occurs in a C# application.
I send a data from a C++ application. The bridge is correctly done I think.
So, sometimes it works, usually when my C# application is active.
But most of the time, it doesn't work, because when trying to catch the appropriate WM_COPYDATA message in WndProc overrided method of my C# application, the program stays catching a couple of other messages like: WM_WINDOWPOSCHANGED, WM_ACTIVATEAPP, WM_NCACTIVATE, WM_ACTIVATE and so on.
Doing so, it almost never catch the WM_COPYDATA message that I sent from my C++ application.
Can you help me please ?
Thanks.
P.S.: I catch messages in my C# application like this:
protected override void WndProc(ref Message m)
{
string g = m.ToString();
if (m.Msg == WM_COPYDATA)
{
// instructions.
}
}
p.f. Goudjo-Ako
Bringing our energy together !
|
|
|
|
|
You should ask this on the C# board[^]
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Thanks Mark, I dit it.
p.f. Goudjo-Ako
Bringing our energy together !
|
|
|
|
|
Ok Im not exacly a newbie I have read a book alomst front to back on C++ (C++ With Out Fear, Brian Overland) and I do not know what to do next. I really wanna make something, I have had a intrest in C++ since I was like 11 (17 now) I was never really good in math or real problom sovling but it helps if its something I can actually interact with like a lab book or something. I am self-teaching myself and I am really tired of reading. I took a break for like a month an here I am I REALLY want to learn this and Im willing to do really about anything, and I know it will take time but Im hoping to be able talk make real programs soon. Well Im a senior in hight school to graduate in like 3 weeks so I have time to dedicate...I know alot about computers so if someone that knows some stuff about C++ help me like point me what to do next, or good interactive stuff or something I would really like that, you can ether reply here or AIM\e-mail at cgsarebeast@drivehq.com.
Thanks a ton,
JD
(Srry if not the right bored I don't know were else to put it)
|
|
|
|
|
Start with some programs that use cout/cin to take input, display output to the console. Something easy would be a math program that asks you for a few numbers, asks you for the operation, and then performs the operation on all the numbers.
If you're just starting out, then you probably won't be looking at any Managed C++, unless you want to work with a GUI (but I wouldn't advise getting to that until you have a better handle on the basics).
|
|
|
|
|
I pretty much have a handle on the basics. An I kinda do wanna do somesort of GUI but Idk were to start on that.....
Thanks,
JD
|
|
|
|
|
He was telling you that you're in the wrong forum. C++/CLI is not plain C++. You want the Visual c++ forum. If you want to write GUI code in C++, you need to learn MFC, probably. You can use C++/CLI and Winforms, but it's not pretty, and not many people use it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|