Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple DLL
Message
From
02/06/2009 13:01:20
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Simple DLL
Miscellaneous
Thread ID:
01403213
Message ID:
01403213
Views:
96
Hi,
Sorry, the question will about C++ (maybe its a shortest way to get an answer)

I try to write a very simple DLL
#include <stdafx.h>
#include <windows.h>
#include <tchar.h>
#include <sddl.h>

extern "C" __declspec(dllexport) VOID ExecMe(char* fileName)
{
	MessageBox(NULL,_T(fileName),_T(fileName),MB_ICONINFORMATION);
}
When I try to execute it - the application crash... when I use hardcoded string
MessageBox(NULL,_T("test"),_T("filename"),MB_ICONINFORMATION);
all works fine...

any help please! :)
Next
Reply
Map
View

Click here to load this message in the networking platform