On Fri, Jul 14, 2006 at 04:41:23PM +0200, Philippe Valembois - Phil wrote:
> Le Friday 14 July 2006 06:50, Youness Alaoui a ?crit?:
> > Very well done!
> > the system include was done because webcamsn was using the libmimic
> > library which was in a totally different directory, then we grouped
> > it...
> I understand
>
> > good job on the .dsw/.dsp files, I forgot about it, thx for following up
> > on it.
> Hehe, as I am the one who compiles Win binaries, I don't forget ;)
>
:)
> > about the launcher, great job!!! so much better than
> > 'system("bin/wish.exe scripts/amsn")'
> > btw, now, can't we change the 'scripts' into 'amsn' so it will be easier
> > for the user who wants to update from svn, and because scripts/ is not
> > only scripts, it contains a lot of binaries too... ? anyways, it's a
> > minor issue.
> > also, the code looks great, but I still have two comments :
> > 1 - the amsn.ascii.exe is wrongly named, it should be ANSI, not ASCII..
> > two totally different things (AFAIK)
> Well I hesitated and as it uses the range 0-255 for the characters I called
> it
> ASCII (ANSI only uses 0-127 chars)
>
Humm.. I don't know exactly, you might be right, but for me, ASCII means
'printable characters' and ANSI means
"not unicode" maybe wikipedia will enlighten us a little about those
nominations...
but I still think it should be called ansi (standard is to name ansi vs.
unicode, not ascii vs. unicode)
> > 2 - we don't NEED an ansi + unicode bins, nor code, it should ALL be
> > unicode and that's it!
> No because on Win 95/98/Me some functions are implemented in A version only
no, they are implemented in A and W versions but the include files provided
with VS6 don't have them defined..
anyways, if you say support for unicode is partial in win95/98/me, then we got
a problem, don't tell me we'll
have to provide two windows installers, one for 95/98/me and one for 2000/xp..
> > also, you should use GetModuleFilenameW to make sure the code works even
> > if compiled non-ascii...
> Why ? GetModuleFileName depends on the UNICODE define too... so it will be
> GetModuleFileNameA if UNICODE isn't defined and GetModuleFileNameW if UNICODE
> is defined...
>
yes, I was just saying to make sure that we don't screw up things if it gets
compiled in ANSI mode and all
other code depends on unicode..
> > also, you created a _T() define, no need, the T"blabla" already exists
> > (T is for generic, which is unicode/ansi, depending)...
> Didn't manage to make it work... It seems you must include the tchar.h file
> but as I don't want to compile against libc I only defined this thing I had
> to use... I checked in assembly to see if all is good with char comparisions
> and it's perfect (comparing two shorts instead of two chars).
>
you're sure ? shouldn't it work natively like the L"" ? maybe you're just doing
a #define UNICODE while in
fact you should set unicode in the project settings window in VS...
> > and finally, you have a #if UNICODE for _T define, but you use wsprintf
> > and you use lstrlen, etc... it should have been #if UNICODE
> > sprintf/wsprintf strlen/lstrlen... the functions you called are only
> > unicode...
> FALSE ! (The biggest mistake I heard from you ;) ) wsprintf and lstrlen are
> called like that because they are defined in kernel32.dll and not in the
> libc... so there is a lstrlenA a wsprintfA a lstrlenW and a wsprintfW
> And don't worry as the code is done it can't suffer a such error... It would
> have hang... (I controlled under debugger that I didn't overflow the buffer I
> allocate)
>
oups, sorry, I thought the 'wsprintf' meant 'wide-char version of sprintf'...
anyways.. oh and btw, isn't it supposed to be %S for unicode and %s for ansi
characters ?
> > but that's IF you want to keep support for ANSI, which I
> > think is not necessary...
> It is necessary and I think we should provide the two versions and install
> the
> best one when we will use NSIS...
>
well, we could but it's not necessary, I mean it will only be used by people
with the installer, since it
depends on ./bin/wish.exe and if we hav eonly one installer, it's useless.. but
anyways, it makes no harm to
keep it there...
> > keep it up!
> Thx
>
> > KKRT
> Phil
>
> P.S. I would like to precise that I don't use any libc code to make the
> program smaller... It's huge only because the icon I put in it has a very
> good quality ;) 48x48 for 24bits and 32x32 for 24bits, 256 colors and 16
> colors all with a colour-set adapted to the image
> Look at all icons with IrfanView...
>
NP!
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Amsn-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amsn-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel