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

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
Declare and <DllImport> in VB.NET have different results
how to import/export dll and use its function
HELP linking library in DLL project

Categories

HOME
asp.net-web-api
eclipse
spark-streaming
gdb
apache-flink
dns
alexa-skills-kit
3d
static
interface
components
tivoli
nested-if
regular-language
jetty
polling
spring-session
augeas
openpyxl
datastage
jxl
filechannel
libc
intercom
zerobrane
azure-powershell
entitymanager
fileserver
red5
smartclient
xmonad
symbols
php-mysqlidb
short-url
xunit
fragment-backstack
has-and-belongs-to-many
inversion-of-control
sinch
subclass
testcomplete
calculation
postback
cart
glib
spring-security4
android-sugarorm
jett
instantiation
getpixel
hunspell
tex
numberpicker
levenshtein-distance
attributeerror
oracle-service-bus
optimizely
fwrite
openresty
launchctl
google-cse
azure-cli
oracleclient
vibrate
android-instrumentation
branch-prediction
juice-ui
cudd
signalr.client
i386
refinerycms
swizzling
jtwig
boost-serialization
turbo-prolog
uiactionsheet
html-to-pdf
state-restoration
sciruby
fuelcms
rpart
evolus-pencil
liquid-layout
linked-tables
psr-4
linkedin-jsapi
create.js
jqmodal
ray
dot42
renderer
decoupling
qscrollarea
scrypt
cffile
nevron
css-reset
mysql-error-2013
fb.ui
listitem
agility.js
htdocs
promotion-code
exponentiation
interprocess
application-verifier
lalr
purepdf
complex-event-processing
todos
change-management

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