Now when I build them in Win32 Release mode I'm getting problem with the dll files registration. It compiles, links and builds the dll files. But when i try to register them using Regsvr32 it'll fail giving error like The instruction at "0x72842565" referenced memory at "0x00000000". The memory could not be "read"._________________________________________________________________________________________
So I tried to use Dependency walker and its results are below (I've pasted only the errors given by it):
LoadLibraryA("C:\WINDOWS\system32\MFC42LOC.DLL") returned NULL. Error: The specified module could not be found (126).
LoadLibraryExW("X:\Generation\Release\swfcinit.dll", 0x00000000, LOAD_WITH_ALTERED_SEARCH_PATH) returned NULL. Error: Invalid access to memory location (998).
GetProcAddress(0x755C0000 [c:\windows\system32\MSCTFIME.IME], "ImeGetImeMenuItems") called from "c:\windows\system32\IMM32.DLL" at address 0x76397374 and returned NULL. Error: The specified procedure could not be found (127). _________________________________________________________________________________________
Also I tried to open the dll file built in Debug mode in Dependency Walker. That file will be successfully loaded in. And one more thing i noticed is that it never depends on "MSCTFIME.IME" in the Debug mode.
So anyone can plz help me... I would be grateful to the members with solution...