Search found 29 matches

by ciammarica
Sun Apr 13, 2008 11:10 am
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

Hi! I've put a Win32 executable here: http://www.stefanopace.net/downloads.php,
(compiled with Dev-C++ under Windows XP).
but source code is not available yet to download.
by ciammarica
Sun Jul 09, 2006 6:35 am
Forum: C++ Development
Topic: DNS lookup
Replies: 3
Views: 1029

I just wanted to know if in wxWidgets there are useful methods to do dns queries... with windows API i'd write this code: char domain[] = "google.com"; DNS_RECORD* result = NULL; char* smtp; // DNS Query if (DnsQuery( domain, DNS_TYPE_MX, DNS_QUERY_STANDARD, NULL, &result, NULL)) { smt...
by ciammarica
Fri Jul 07, 2006 9:14 am
Forum: C++ Development
Topic: OpenGL canvas and frames
Replies: 9
Views: 2453

I've used DevC++ 4.9.9.2, wxWindows 2.4.2, GLUT libraries for 3D objects and tinyXML to manage saving/restoring of project.
But the code is cross-platform, so it should work everywhere.
by ciammarica
Thu Jul 06, 2006 10:19 am
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

This is the final 1.0 version of the program. In version 2 i'll try to implement attachments and a tool for dns query, to find the SMTP server address automatically. #include "wx/wxprec.h" #include <math.h> #include <wx/notebook.h> #include <wx/textfile.h> #include <wx/textctrl.h> #include...
by ciammarica
Thu Jul 06, 2006 6:15 am
Forum: C++ Development
Topic: Exit wxApp?
Replies: 16
Views: 9281

I haven't understood so much what you want to do... you want to exit the program, but not completely... :shock:
by ciammarica
Wed Jul 05, 2006 9:04 pm
Forum: C++ Development
Topic: DNS lookup
Replies: 3
Views: 1029

DNS lookup

Hi!
I need to create a little utility that makes a DNS lookup (on record MX) to find the SMTP server addres of a given domain (domain is given by user in a wxTextCtrl field).
Any idea about how to do this?
I've searched the forum, but I've found nothing useful...
by ciammarica
Wed Jul 05, 2006 8:46 pm
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

Problem solved!!! :) Now the program sends correctly the e-mail :) The problem was that as second parameter of the "Write" method I didn't have to put "sizeof(toSend)", but the length of the string sent to the server ("toSend.Length()"). It was so simple, how couldn't I...
by ciammarica
Wed Jul 05, 2006 7:50 pm
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

Still not working... I don't think the problem depends by the type of variables, I think instead there's something wrong on the last two chars for the Carriage Return and Line Feed, there's no other explaination!
by ciammarica
Wed Jul 05, 2006 7:34 pm
Forum: C++ Development
Topic: OpenGL fullscreen mode and controls
Replies: 4
Views: 1896

Do you want to put on fullscreen mode just the OpenGL canvas or the frame where ther's the canvas?
by ciammarica
Wed Jul 05, 2006 6:46 pm
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

I've already checked, the inputContent isn't too long for the buffer, because the simple echo server i've implemented to test the SMTP client sends back correctly all the strings, from the beginning to the end. It's a 50 elements array, while the inputContent is never longer than 40. However I'll tr...
by ciammarica
Wed Jul 05, 2006 10:05 am
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

Another little step is done! Now the server anwers good to the command "MAIL FROM:" :) I've just added \r before \n at the end of the string sent to the server. That's because in RFC821 I've read that CRLF must be typed after each command, but \n is just LF (Line Feed), Carriage Return was...
by ciammarica
Wed Jul 05, 2006 9:27 am
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

I've downloaded and installed on my PC a free SMTP server, to try if on localhost my program worked, but nothing to do :( Always the same errors: 421 or 500 unrecognized command :( Maybe i must code the strings that i send to the server in some way? is there a function to do this? Or the SMTP server...
by ciammarica
Wed Jul 05, 2006 8:48 am
Forum: C++ Development
Topic: OpenGL canvas and frames
Replies: 9
Views: 2453

Here you can find the portion of my program's source code where i use wxGLCanvas for my OpenGL Editor. In the zip file you'll find the executable for Windows XP too. To use it you must copy and paste "glut32.dll" in your Windows/System folder. http://mio.discoremoto.alice.it/piumina Hope t...
by ciammarica
Wed Jul 05, 2006 8:44 am
Forum: C++ Development
Topic: using wxSocket for a simple SMTP e-mail client
Replies: 23
Views: 7942

So what's the change to be made in my code?
by ciammarica
Wed Jul 05, 2006 8:42 am
Forum: C++ Development
Topic: DLL, OpenGL
Replies: 5
Views: 1217

Hi! I don't know how to help you for the first question, but for the second I can send you the OpenGL Editor program I've implemented. In the zip file you'll find the executable program (to use it you must copy and paste "glut32.dll" in your ...Windows/System folder), and some source file ...