Recent

Author Topic: Windows 8 Spelling API  (Read 1917 times)

skiy1337lazarus

  • New Member
  • *
  • Posts: 34
Windows 8 Spelling API
« on: September 09, 2015, 08:34:58 pm »
It can be called from FreePascal:
http://skiy.co.za/a/PASpell.zip

Thaddy

  • Hero Member
  • *****
  • Posts: 10293
Re: Windows 8 Spelling API
« Reply #1 on: September 10, 2015, 06:55:45 am »
You are missing
Code: [Select]
finalization CoUninitialize.
I am more like donkey than shrek

skiy1337lazarus

  • New Member
  • *
  • Posts: 34
Re: CoUninitialize
« Reply #2 on: September 10, 2015, 03:26:34 pm »
Finalization sections are useful for DLL libraries.

molly

  • Hero Member
  • *****
  • Posts: 2345
Re: Windows 8 Spelling API
« Reply #3 on: September 10, 2015, 03:58:19 pm »
Quote
Finalization sections are useful for DLL libraries.
Reading through the manual...

Quote
The finalization part of the units are executed in the reverse order of the initialization execution. They are used for instance to clean up any resources allocated in the initialization part of the unit, or during the lifetime of the program. The finalization part is always executed in the case of a normal program termination: whether it is because the final end is reached in the program code or because a Halt instruction was executed somewhere.

So could you elaborate on what you meant by that statement ?

Why use the initialization section to initialize ?

Is there a particular reason to ignore Microsoft's SDK ?
Quote
A thread must call CoUninitialize once for each successful call it has made to the CoInitialize or CoInitializeEx function, including any call that returns S_FALSE. Only the CoUninitialize call corresponding to the CoInitialize or CoInitializeEx call that initialized the library can close it.

 

TinyPortal © 2005-2018