Issue with callback method in SetTimer Windows API called from C# code
问题 I'm currently involved in a project that is migrating some old VB6 code to C# (.Net Framework 3.5). My mandate is to just do the migration; any functional enhancements or refactoring is to be pushed to a later phase of the project. Not ideal, but there you go. So part of the VB6 code makes a call out to the Windows API SetTimer function. I've migrated this and cannot get it to work. The migrated project builds as a DLL; I've created a small WinForms test harness that links to the DLL and