Click here to Skip to main content
11,635,123 members (76,621 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++
I need a very simple program, which I can use to send a .txt file to some mail account?
I have no idea about C++ Networking although worked alot in Win32 API.
Posted 2-Feb-13 8:12am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

saad_lah at 2-Feb-13 14:46pm
:( I tried a lot but it is not not including "stdAfx.h" lib in visual studio
Abhishek Pant at 2-Feb-13 15:01pm
Its not necessary to use can remove that.the purpose-using[^]
saad_lah at 2-Feb-13 15:13pm
Look at the step I did,

1-> Made a CLR Win32 Project in Visual Studio 2012
2->Move the file to project directory and include the files "SendMail.h" and "SendMail.cpp"
3-> _gc class SendMail // _gc is giving syntax error

And stdafx is now working fine as it includes just standard libraries.
Abhishek Pant at 2-Feb-13 15:31pm
it was in class the article carefully.

Vote and accept answer if it helps you so that it can help others when they search here.
saad_lah at 2-Feb-13 15:13pm
So, my question is, it is a CLR project or Win32 :P
merano at 2-Feb-13 16:34pm
Managed C++ says that it should be CLR

The first Ref is Win32 or MFC. Code is not UNICODE - see also comments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 8,736
1 Sergey Alexandrovich Kryukov 8,419
2 Mika Wendelius 6,845
3 F-ES Sitecore 2,354
4 Suvendu Shekhar Giri 2,205

Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100