Hi Jonathan N,
Thank you for your reply.
I haven't tried calling this static library from other environment. I am sure the ID of the loaded module is valid.
Sometimes I can't get the address of a function, I disable the source codes of the function, then input a new one with the same name, then I can get it's address.
I also encountered a case, if I input the OutputDebugString function after GetExternalModuleAddr, I can get the address of a function in static library, but if I take out OutputDebugString, I can't get it.
Sometimes originally I can get the address of a function, but afer I edit some codes, build the static library, I can't get it.
Now I think it is likely that the source codes or the editor of CVI itself causes the problem, I feel erratic, so I now edit the source codes with other editor, then compile with the compiler of CVI.
Best Regards,
Jasonxia