[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Win32 COM with Chicken?
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] Win32 COM with Chicken? |
Date: |
Thu, 5 May 2005 23:05:59 +0200 |
On 5/4/05, Graham Fawcett <address@hidden> wrote:
>
> To answer my own question:
>
> BSTR schemeStringToBstr(char *scheme_string) {
> // don't forget to SysFreeString(retval)!
> int count = strlen(scheme_string);
> BSTR retval = SysAllocStringLen(NULL, count);
> MultiByteToWideChar(CP_UTF8, 0, scheme_string, count, retval, count);
> return(retval);
> }
>
> (Sorry for adding noise to the list.)
>
No need to be sorry at all. Actually, I'd love to help as much as I can
with this project. If you can wait for a few days, I can provide a small
utility library for COM things (BSTRs, GUIDs, registry access, etc.).
BTW, couldn't BSTRs be allocated in the Scheme heap, using (for example)
u16vectors? That would remove the need for doing all the SysAlloc/SysFree
stuff.
cheers,
elix
- [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/02
- [Chicken-users] Problem with string-match?, Alejandro Forero Cuervo, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, felix winkelmann, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/03
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/04
- Re: [Chicken-users] Win32 COM with Chicken?,
felix winkelmann <=
- Re: [Chicken-users] Win32 COM with Chicken?, Graham Fawcett, 2005/05/06
- [Chicken-users] Return multiple values from foreign-lambda*, Alejandro Forero Cuervo, 2005/05/07
- Re: [Chicken-users] Return multiple values from foreign-lambda*, Graham Fawcett, 2005/05/07
- Re: [Chicken-users] Return multiple values from foreign-lambda*, Alejandro Forero Cuervo, 2005/05/07
- Re: [Chicken-users] Return multiple values from foreign-lambda*, Alejandro Forero Cuervo, 2005/05/07
- Re: [Chicken-users] Return multiple values from foreign-lambda*, felix winkelmann, 2005/05/09
- Message not available
- [Chicken-users] Return multiple values from foreign-lambda*, Zbigniew, 2005/05/13
- Re: [Chicken-users] Return multiple values from foreign-lambda*, felix winkelmann, 2005/05/14
- Re: [Chicken-users] Return multiple values from foreign-lambda*, Zbigniew, 2005/05/15
- Re: [Chicken-users] Return multiple values from foreign-lambda*, felix winkelmann, 2005/05/17