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
beautifulsoup
facebook-oauth
depth
solver
appcelerator
opendj
rom
google-apps
python-multithreading
google-cloud-datalab
angularfire2
qpython
octave
filechannel
flatpak
android-7.0-nougat
imessage
sigma.js
rubymotion
string-concatenation
mongoid6
tosca
displaytag
moses
fat
bulletphysics
pylons
shared
progress-bar
tpm
constexpr
weather
turfjs
biztalk-rule-engine
python-import
apiary.io
timing
amazon-ses
z-notation
odroid
magento-1.9.3
apriori
logback-groovy
lpsolve
xmldocument
oim
facebook-social-plugins
procfile
dynamic-linq
launchctl
manova
openblas
scalding
boo
otp
reshape
pybrain
restore
juice-ui
change-tracking
pure-css
qtplugin
envi
spreadjs
lz77
thread-sleep
relativelayout
dynamics-nav-2016
toran-proxy
roadkill-wiki
evolus-pencil
uvc
contrast
device-tree
psr-4
rmysql
encryption-asymmetric
mintty
rcaller
spring-remoting
sbcl
gwt-openlayers
eclipse-kepler
embedded-fonts
scringo
cmmi
pstack
vfs
thttpd
jdb
window-decoration
entity-attribute-value
automationelement
google-ajax-api
creole
event-receiver
inline-formset
qglwidget
diagrams
instantiationexception
filesystemobject
application-planning
technical-debt
soappy
movieplayer

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App