Re: Linux/UNIX/ISO VARARGS to MSVC++ ???
On Tuesday 18 November 2003 18:10, Noam Rathaus wrote: > I am not interested in a discussion on whether to use MFC or not Your application, your decision. -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron There's nothing wrong with Windows 2000... ...that Linux can't fix = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
RE: Linux/UNIX/ISO VARARGS to MSVC++ ???
Hi, I am not interested in a discussion on whether to use MFC or not, I just wanted to know whether MSVC++ supports VARARGS. If I can't see any other way, I will go and try another GUI creation environment, though I must say, I haven't been impressed with any of them, especially QT, in the aspects of easy development (Kdevelop and QTDeveloper are not so good as far as I can see). Thanks Noam Rathaus CTO Beyond Security Ltd. http://www.securiteam.com -Original Message- From: Oron Peled [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 17:00 To: Noam Rathaus; [EMAIL PROTECTED] Subject: Re: Linux/UNIX/ISO VARARGS to MSVC++ ??? On Tuesday 18 November 2003 13:41, Noam Rathaus wrote: > (BTW, this code is taken from the OpenVPN project, which I am trying > to build a MFC based GUI for, open sourced of course) Why bother with MFC? There are enough alternatives that build portably and would be easier to integrate with OpenVPN code. Just few examples from the top of my head: GTK+ QT WxWindows Fltk Note: QT on Windows would cost you (AFAIK it's per developer and not royalty based -- Just like MFC). It would be easier to maintain (you may want to have a Linux version of the product some day) and besides, MFC design is pretty outdated compared to some of these toolkits (no-names, no-flames :-) -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron "In theory, there is no difference between theory and practice. In practice, there is." -- Yogi Berra To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Re: Linux/UNIX/ISO VARARGS to MSVC++ ???
On Tuesday 18 November 2003 13:41, Noam Rathaus wrote: > (BTW, this code is taken from the OpenVPN project, which I am trying to build a MFC based GUI for, open sourced of course) Why bother with MFC? There are enough alternatives that build portably and would be easier to integrate with OpenVPN code. Just few examples from the top of my head: GTK+ QT WxWindows Fltk Note: QT on Windows would cost you (AFAIK it's per developer and not royalty based -- Just like MFC). It would be easier to maintain (you may want to have a Linux version of the product some day) and besides, MFC design is pretty outdated compared to some of these toolkits (no-names, no-flames :-) -- Oron Peled Voice/Fax: +972-4-8228492 [EMAIL PROTECTED] http://www.actcom.co.il/~oron "In theory, there is no difference between theory and practice. In practice, there is." -- Yogi Berra = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
RE: Linux/UNIX/ISO VARARGS to MSVC++ ???
Hi, Thank you for the answer, the problem with that solution or this that I found prior to posting this message: http://www.codeproject.com/debug/location_trace.asp Doesn't take into consideration the fact that MACROs are compile-time things, consuming no CPU in run-time. So that solution becomes tricky as CPU time is consumed while the original MACRO: MSG_TEST(flags) Consumes no CPU... This is due to the fact that I cannot pre-evaluate the MSG_TEST(flags) part :( I hope I made myself clear... BTW: #define MSG_TEST(flags) unsigned int)flags) & M_DEBUG_LEVEL) < x_debug_level || ((flags) & M_FATAL)) Thanks Noam Rathaus CTO Beyond Security Ltd. http://www.securiteam.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tal, Shachar Sent: Tuesday, November 18, 2003 14:09 To: 'Noam Rathaus'; [EMAIL PROTECTED] Subject: RE: Linux/UNIX/ISO VARARGS to MSVC++ ??? Google is your friend... Fourth from the top, searching for : variable arguments "#define" "visual C++" http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/ Q_20281300.html HTH, Shachar Tal Verint Systems > -Original Message- > From: Noam Rathaus [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18, 2003 1:42 PM > To: [EMAIL PROTECTED] > Subject: Linux/UNIX/ISO VARARGS to MSVC++ ??? > > > Hi, > > I am trying to find a solution to converting this macro: #define > msg(flags, ...) do { if (MSG_TEST(flags)) x_msg((flags), __VA_ARGS__); > } while (false) Or this one: > #define msg(flags, args...) do { if (MSG_TEST(flags)) > x_msg((flags), args); } while (false) > > To something that MSVC++ will allow to compile, currently it > appears that cannot. I will be happy to see someone with a > solution to this... > > (BTW, this code is taken from the OpenVPN project, which I am > trying to build a MFC based GUI for, open sourced of course) > > Thanks > Noam Rathaus > CTO > Beyond Security Ltd. > http://www.securiteam.com > > > == > ==To unsubscribe, send mail to [EMAIL PROTECTED] with the > word "unsubscribe" in the message body, e.g., run the command echo > unsubscribe | mail [EMAIL PROTECTED] > This electronic message contains information from Verint Systems, which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by replying to this email. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED] To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
RE: Linux/UNIX/ISO VARARGS to MSVC++ ???
Google is your friend... Fourth from the top, searching for : variable arguments "#define" "visual C++" http://www.experts-exchange.com/Programming/Programming_Languages/Cplusplus/ Q_20281300.html HTH, Shachar Tal Verint Systems > -Original Message- > From: Noam Rathaus [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 18, 2003 1:42 PM > To: [EMAIL PROTECTED] > Subject: Linux/UNIX/ISO VARARGS to MSVC++ ??? > > > Hi, > > I am trying to find a solution to converting this macro: > #define msg(flags, ...) do { if (MSG_TEST(flags)) > x_msg((flags), __VA_ARGS__); } while (false) > Or this one: > #define msg(flags, args...) do { if (MSG_TEST(flags)) > x_msg((flags), args); } while (false) > > To something that MSVC++ will allow to compile, currently it > appears that cannot. I will be happy to see someone with a > solution to this... > > (BTW, this code is taken from the OpenVPN project, which I am > trying to build a MFC based GUI for, open sourced of course) > > Thanks > Noam Rathaus > CTO > Beyond Security Ltd. > http://www.securiteam.com > > > == > ==To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > This electronic message contains information from Verint Systems, which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by replying to this email. = To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
Linux/UNIX/ISO VARARGS to MSVC++ ???
Hi, I am trying to find a solution to converting this macro: #define msg(flags, ...) do { if (MSG_TEST(flags)) x_msg((flags), __VA_ARGS__); } while (false) Or this one: #define msg(flags, args...) do { if (MSG_TEST(flags)) x_msg((flags), args); } while (false) To something that MSVC++ will allow to compile, currently it appears that cannot. I will be happy to see someone with a solution to this... (BTW, this code is taken from the OpenVPN project, which I am trying to build a MFC based GUI for, open sourced of course) Thanks Noam Rathaus CTO Beyond Security Ltd. http://www.securiteam.com To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]