|
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 )
|
|
|
|
|
Ok.........that doesnt really help, an I chose this 1 I dont want Visual C++ ether I guess this site isnt a good place 4 what Im lookin 4...Reg C++....thats all I wanted.......If ur gunna say this post is n the wrong spot or flame me n any way leave it......but if there is any 1 here that can answer my question......I would like that......well thats all I have to say :\
|
|
|
|
|
Frogboy181 wrote: an I chose this 1
This forum is for C++/CLI questions. Lots of people make the mistake, despite the notices on the subject in the header of the forum. I guess they gloss over what they don't know
Frogboy181 wrote: I dont want Visual C++ ether
Why not ? It's the forum for 'standard' C++ questions, although the focus is on the Microsoft compiler, and GUI related questions tend to be MFC. The C++ standard has no provisions for any sort of GUI. So, you need to choose a vendor specific library if you want a GUI. MFC is the most popular/common one, if you're coding for windows. If you're coding for Linux then yes, there are probably better places to ask. MFC is sort of on it's last legs, however, C++/CLI/Winforms development is pretty rare, and not a good path to go down.
Frogboy181 wrote: If ur gunna say this post is n the wrong spot or flame me n any way leave it..
Why do you think I'm telling you it's in the wrong spot ? It's because you're in the wrong place. Look around you. 50% or more of replies in this forum say 'you're in the wrong place'. Look at the dates, then look at the Visual C++ forum. This forum is a bit of a ghost town. I am trying to tell you that if you ask in the right forum, you'll get more help.
Although your question is super vague. I'd recommend considering C# if you are hoping to write GUI apps for windows, it's just easier to find resources, and easier to use/more powerful.
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 )
|
|
|
|