IDN Forums - Internationalized Domain Names  
Home | Advertise on idnforums | Premium Membership

Go Back   IDN Forums - Internationalized Domain Names > IDN Discussions > General Discussion

General Discussion Feel free to talk about anything and everything in this board.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 5th January 2006, 05:41 PM
sarcle's Avatar
Senior Member
 
Join Date: Oct 2005
Location: Planet Earth
Posts: 3,717
iTrader: (22)
Rep Power: 1769
sarcle will become famous soon enoughsarcle will become famous soon enoughsarcle will become famous soon enoughsarcle will become famous soon enoughsarcle will become famous soon enoughsarcle will become famous soon enoughsarcle will become famous soon enough
Programmer Info. Explorer on IDN.

This was just released on an MS employees blog. Anyone a programmer? Can you tell me what signifigance this has.


Quote:
IDN Mitigation API dll needs to be explicitly linked
Since we (I) didn't provide a .lib file for the "Microsoft Internationalized Domain Name (IDN) Mitigation APIs 1.0", you'll have to explicitly link to the IDN Mitigation API dll, which means you'll have to make your own header & code something like:

// Declare the stuff to use (repeat for each function/dll to import)
typedef int (*PFN_DOWNLEVELGETLOCALESCRIPTS)
(LPCWSTR lpLocaleName, LPWSTR lpLCData, int cchData);

PFN_DOWNLEVELGETLOCALESCRIPTSm_pfnGetLocaleScripts = NULL;
HMODULE m_hDownlevelDll = NULL;

...
// Load the library and get our function pointer
m_hDownlevelDll = LoadLibrary(L"idndl.dll");
if (m_hDownlevelDll != NULL)
{
FARPROC pfn = GetProcAddress(m_hDownlevelDll, "DownlevelGetLocaleScripts");
if (pfn != NULL)
{
m_pfnGetLocaleScripts = (PFN_DOWNLEVELGETLOCALESCRIPTS)pfn;
}
// else error
}
// else error
...

// Call the function using our pointer
int count = (*pfnGetLocaleScripts)( L"en-US", NULL, 0 );

Hope that helps, we'll probably add the .lib in a future update, but that'll probably be a while.

Link

Thanks.
__________________
I can hear the death rattle of fiat from here...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:38 AM.

Site Sponsors
Your ad here
buy t-shirt
מחיר הזהב

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright idnforums.com 2005

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54