|
-
October 11th, 2014, 11:16 PM
#1
Extension DLL callback function used for a Windows service and write to file
Hello, I have a problem with an extension DLL that has an exported function. The function is being exported ok, it is called by a Windows service. The Windows service is using the exported function, and everything works. I am trying to create a file with:
ofstream file;
file.open("C:\dir\to\file", ios: ut);
file << "text";
But nothing happnes however. There are no errors, the file is just not created.
Also, if i try to call MessageBox() in the exported function, nothing happens as well . I have a .h file which exports the function with __declspec(dllexport) DWORD WINAPI functionName(), and also a .cpp file with the function definition. There is no main().
I appreciate help and suggestions about what I'm doing wrong.
oldejr.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|