Click here to Skip to main content
Sign Up to vote bad
good
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:12


1 solution

  Permalink  
Comments
saad_lah - 2 Feb '13 - 14:46
:( I tried a lot but it is not not including "stdAfx.h" lib in visual studio
Abhishek Pant - 2 Feb '13 - 15:01
Its not necessary to use that.you can remove that.the purpose-using[^] it[^].
saad_lah - 2 Feb '13 - 15:13
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:31
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:13
So, my question is, it is a CLR project or Win32 :P
merano - 2 Feb '13 - 16:34
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
Your Filters
Interested
Ignored
     
0 OriginalGriff 216
1 Richard MacCutchan 145
2 Sergey Alexandrovich Kryukov 129
3 Tadit Dash 129
4 Santhosh G_ 115
0 Sergey Alexandrovich Kryukov 10,338
1 OriginalGriff 7,965
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid