Click here to Skip to main content
12,304,822 members (66,246 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++
Hey,
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
saad_lah1.5K

1 solution

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

Solution 1

  Permalink  
v2
Comments
saad_lah 2-Feb-13 14:46pm
   
:( I tried a lot but it is not not including "stdAfx.h" lib in visual studio
Abhishek Pant 2-Feb-13 15:01pm
   
Its not necessary to use that.you can remove that.the purpose-using[^]
it[^].
saad_lah 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 2-Feb-13 15:31pm
   
it was in class file.read the article carefully.

Vote and accept answer if it helps you so that it can help others when they search here.
saad_lah 2-Feb-13 15:13pm
   
So, my question is, it is a CLR project or Win32 :P
merano 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160530.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2016
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