Click here to Skip to main content
12,826,142 members (30,409 online)
Rate this:
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 9:12am

1 solution

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

Solution 1

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 can remove that.the purpose-using[^]
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.
saad_lah 2-Feb-13 15:13pm
So, my question is, it is a CLR project or Win32 :P
Abhishek Pant 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.
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
Web02 | 2.8.170326.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2017
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