|
I have to SMTP server that receive mails from the local area network.
How to program at the SMTP server side, so that it can save the mails to a database, and resend them to other email addresses? Is it easy to do?
PS: I do it for other people.
-- modified at 0:29 Wednesday 21st November, 2007
|
|
|
|
|
I have 2 computers, the app is suppose to run on both coms, the server com will be in listening mode, and have a client status box. once the client com is connected to the the server com, the client will ping the server, and the server will receive the client IP address, and the client status box will be updated and show the client is online and show the IP.(actually this part is not the main part)
what kind of programming is required in this app? and how to do this thing...?
please help, thanks a lot!
|
|
|
|
|
Keyword : Socket.
Try to used the example in MSDN for MFC style.
Or try to search in codeproject, I used one of the class that was writen in this site.
|
|
|
|
|
|
Hello. I'm trying to find the quickest way to load a web page directly into my application. I'm using VC++ 6.0 and Visual Studio 2005 on an XP platform. Could someone please steer me in the right direction? Thank you.
|
|
|
|
|
Please refer here[^].
Also look here[^].
Regards,
Paresh.
|
|
|
|
|
Thanks. Once again Code Project bails me out.
|
|
|
|
|
You can use of CHtmlView or CDHtmlDialog.
|
|
|
|
|
Thanks. I'll look at those as well. Whatever is easiest is also most appealing.
|
|
|
|
|
I'm trying to finish up a project for school. I will be the first to admit that my knowledge of C++ coding isn't the greatest, so if you can spare the time to answer me, try to keep it as simple as possible. That having been said, I am coding a program that cleans html source codes. My professor wants it to process multiple files without input from the user. My thought was to put multiple files in one directory, input from that directory and output to another separate directory. The "clean" files would be saved with the same name as the original files just in the new directory. I have looked through my books and all over the internet, and have yet to find something that I understand and that fits my problem. Can anyone point me in the right direction? Thanks in advance.
S. Reynolds
|
|
|
|
|
So you need something that will tell you the name of each file in a directory?
|
|
|
|
|
I suppose that would help. Could I then use those names to open i/o streams? I seem to recall being able to do that, but having to use cstrings?
S. Reynolds
|
|
|
|
|
You need to processes the files one at a time. So a function that takes a file path as a string and an output dir as a string (char*, cstring, std::string etc etc) would seem appropriate. Process the file and write to the destination by combining the file name portion of the input file parameter and the output dir parameter. Get that working then on top of that make something that will enumerate the file names from a folder and call that function for each file. See http://msdn2.microsoft.com/en-gb/library/aa364418.aspx
|
|
|
|
|
You can start with the folder and the FindNextFile () to go through the files names.
Then open one at a time, read the content to a buffer or a programm variable, close it, take the next one and so on.
Then you can process the contents of the buffers/variables, clean them and so on...
And at the end you should pass the contents of the buffers to the next files.
To hold the datas I would use a class with a string to the name of the file, and the buffer to the data as member variables. Then initialize the buffer in the constructor or in a methode with the needed large using the new command. And deleting allocated memory at the dstructor of the class.
I hope it helps you
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Thanks for the help guys!! I was able to get it based on your suggestions.
S. Reynolds
|
|
|
|
|
Hello,
Is there an easy way to convert from ASCII code to Unicode?
assumes:
i have some text written in other encoding like cyrillic, i want to convert it to UNICODE? i am using visual c++ 6.0.
could somebody give any advice?
thanks
|
|
|
|
|
Gofur Halmurat wrote: Is there an easy way to convert from ASCII code to Unicode?
You mean like the A2W() macro?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i dont know what A2W macro is?
how can i use it?
thanks
|
|
|
|
|
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The first 127 code points of the Unicode character set equal the ASCII character set, so you can simply assign each ASCII character to a wide Unicode character.
Gofur Halmurat wrote: i have some text written in other encoding like cyrillic, i want to convert it to UNICODE?
"cyrillic" isn't an encoding. You must know the actual character set used to encode the cyrilic text, is it ISO-8859-5, Windows CP1251, KOI-8, or something else? Once you know that you can use for example iconv[^] to do the conversion.
|
|
|
|
|
You are right, it is Windows CP1251, i want to change it to UTF-8, but how?
i read some about iconv , i think that is only under linux os,
even if it is under windows, could you give me an example of how to use it? i am really lost of c++ type casting. there are alot of types in c++
thanks
|
|
|
|
|
|
I'm calling the API function "Netbios", and can do most of the function calls. However, I'm stumpted, how do you clear the NBT Cache table
example of a struct i have setup:
ADAPTER_STATUS adapt;
NAME_BUFFER namebuffer [xxxx];
I originally thought it was in the nameBuffer, but that is the local NetBios names, not the cache of remote names.
NBTSTAT -R is the call in DOS to clear the remote name list.
Any help would be apprecated.
bulldogAMD
|
|
|
|
|
Hi,
An MFC program that uses the .h and .cpp files created from the type library msword8.olb. The program works correctly in versions of Word from Word97 to Word 2003 but does nothing in Word2007. This type library was used rather than msword.olb because some of the function signatures had changed & the newer ones would break in older versions of Word. Does anyone know how I can use the program with Word2007 as well.
|
|
|
|
|
Hello everyone,
I am using Visual Studio 2005. I am confused when creating a new smart device project. We can select Windows CE 5.0 or Pocket PC 2003.
My question is, are they compatible? (I am developing native unmanaged C++ application)
1. If I build Windows CE 5.0 project, could it run on Pocket PC 2003 device or emulator?
2. If I build Pocket PC 2003 project, could it run on Windows CE 5.0 device or emulator?
3. What are the differences?
thanks in advance,
George
|
|
|
|