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
delphi-7
cheerio
webdriver
android-studio-2.2
nunit
depth
static
pascal
composite-primary-key
sublimetext
cublas
dojo
vxml
settings
tvos
iis-6
mvc5
line
scrolltop
gruntfile
coin3d
smartclient
charles
hta
mount
onload
amazon-quicksight
mat
linked-data
handler
datastax-enterprise-graph
carrierwave
google-earth
gitlab-api
git-squash
r-grid
hreflang
gojs
instantiation
getlasterror
fiware-cygnus
navigator
xajax
apic
demo
opensmpp
unordered-map
file-sharing
monkey-testing
httrack
builder
chai-as-promised
semantic-logging
cup
cpu-cache
gameplay-kit
reporting-services-2012
file-uri
rspec2
nservicebus5
fuzzywuzzy
np-spring
spring-retry
directdraw
oracle-spatial
django-urls
sapscript
telepat
android-broadcast
zxspectrum
cakephp-2.7
viewer
universal-image-loader
personalization
dct
gnumeric
sbcl
scrypt
rolify
gpars
jquery-1.9
twisted.web
device-width
mkv
sentestingkit
wiimote
stress
relative
exponentiation
ruby-1.8
web-garden
zend-rest
purepdf
dsl-tools

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