Re: MFC-DLL with CString as parameter?




"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> ha scritto nel messaggio
news:hq6624509f4gl8951orr38hrkkfi3scnkr@xxxxxxxxxx

pFunc = (MyFuncType)GetProcAddress(hMod, "myfunc"); // not _T()
[...]
but for this one, using the _T() notation would generate an error when you
did a Unicode
compilation. I like to make this explicit.

And I think that your are right to point out that.

I think that ANSI-only version of GetProcAddress is because function names
must be US-ASCII only in C/C++, e.g. I think that I cannot name a C/C++
function "perché" (because of non-US character "é")

void perché( ... ) // C/C++ error

void perche(...) // all right

Giovanni


.



Relevant Pages

  • Re: Why doesnt join() call str() on its arguments?
    ... > Explicit is better than implicit. ... > In the face of ambiguity, ... - the explicit calls to str() aren't that clean. ... to the Unicode version when there are any Unicode strings in the list, ...
    (comp.lang.python)
  • Re: gfortran and the family of fortran array types
    ... end program test ... The above code does not have the explicit interface either provided manually or by being included in a module. ... That gfortran didn't find the problem at compilation is a result of Fortran "compilation units" being a program and function or subroutine, ...
    (comp.lang.fortran)
  • Re: vbaccelerator - compile ListView for Unicode?
    ... Before going to vbaccelerator site, you may want to read their usage policy. ... not a UserControl, but it's easy to change it to a UserControl. ... > The binary doesn't do Unicode. ... it's just turned off in the conditional compilation ...
    (microsoft.public.vb.general.discussion)
  • Re: package similar to XML::Simple
    ... > not enabled in the current compilation. ... and the Python glue was 8 bit only. ... could happily get Unicode objects from RXP's 16bit representation ...
    (comp.lang.python)
  • Re: Unicode BOM marks
    ... > nor is source code in any other language. ... We did it with C++ files in order to have only one compilation unit to ... I guess a unicode aware C ... compiling Python) to internally represent unicode strings as fixed 2 or 4 ...
    (comp.lang.python)

Loading