dllimport


how to use DllImport in metro-style app


I'm trying to use DLLImport in metro-style project.
[DllImport("pjsipDlld.dll")]
private static extern int dll_init();
void test()
{
dll_init();
}
I copied pjsipDlld.dll and its dependencies to the output directory. The project build seems fine. It crashes when I launch it though.
and when debugging i get this exception "DllNotFoundException" when calling the native method.
I followed the very same procedure in a WPF project and every thing went well with no errors or crashes. Am I missing something in metro-style app?

Related Links

Cannot create automation object - lotusscript
DllImport is not found C++
Mangled member function name different during dllimport
how to use DllImport in metro-style app
Converting doc file to post script
How can I get a COM component which can be used on Windows phone 8 project with C#
Externs and DLL imports
Mixed native and managed code heap corruption
MarshalDirectiveException
call unmanaged C++ code from C# using pinvoke
Detecting DLL Code Splicing
WOW64 Redirection and LoadLibrary
Using C# dll in Windows phone 7
Python 2.5 Import dll AttributeError
Replacing the Import Table in PE file by standart LoadLibrary
Unresolved external symbol

Categories

HOME
url-redirection
cygwin
numbers
battery
solver
javacc
cq5
visual-studio-emulator
ado.net
maxscript
pearson-correlation
webix
g++
gson
resultset
ycsb
opengl-es-3.0
eip
3nf
symfony-console
sigma.js
connector
poedit
blade
r-mice
beta
xunit
mount
mql
finagle
boost-asio
google-cast
autodesk-designautomation
recurring-events
scatter3d
playstation-portable
fstream
memory-address
simplecv
android-sugarorm
card.io
pop3
numpy-broadcasting
xajax
openerp-7
android-augmented-reality
visa
plaintext
vmware-fusion
datacachefactory
chronicle-map
congestion-control
placeholder
photos
oim
pom.xml
tinkerpop
sundials
quicktime
reshape
gameplay-kit
filenet
docpad
ziparchive
winusb
preprocessor
adafruit
mapinfo
hclust
scaffolding
project-organization
sklearn-pandas
database-relations
jbase
extjs-grid
.bash-profile
sapscript
dulwich
baasbox
code-documentation
apache-spark-1.3
nodelist
parallel-testing
rcaller
extjs2
dsym
syndicationfeed
modular
printdialog
unit-of-work
cmmi
process-explorer
alice
android-sdk-2.3
sqlclr
resource-management
android-loadermanager
mkv
fragmenttransaction
cakephp-1.2
zope.interface
iboutlet
thttpd
ikimagebrowserview
screen-size
workflow-services
cgbitmapcontextcreate
event-receiver
appledoc
lalr
dojo-dnd
fdf
linfu-dynamicproxy
contentpresenter
online-storage
cardspace

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App