BaSsHaXoR
Your not logged in!
BaSsHaXoR
Your not logged in!
BaSsHaXoR
Would you like to react to this message? Create an account in a few clicks or log in to continue.

BaSsHaXoR

Gaming
 
HomePortalLatest imagesSearchRegisterLog in
Top posters
Admin (67)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
TeachMe (2)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
EaTthEC00kie (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
Hex_only (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
tony220171 (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
DJ107RX (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
ace812 (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
Cain532 (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
derek878 (1)
windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_lcapwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_voting_barwindows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_vote_rcap 
Keywords
tool
Who is online?
In total there are 3 users online :: 0 Registered, 0 Hidden and 3 Guests

None

Most users ever online was 96 on Fri Jul 28, 2017 8:37 am
Latest topics

 

 How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps

Go down 
AuthorMessage
Admin
Admin
Admin


Posts : 67
L337 R4NK : 201
R3p : 0
Join date : 2013-09-21
Age : 34
Location : https://www.youtube.com/BaSs_HaXoR

windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps Empty
PostSubject: How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps   windows - How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps I_icon_minitimeThu Jun 26, 2014 6:58 pm

[You must be registered and logged in to see this link.]

#1 [The MAIN Question]

Code:

Okay, first off i would like to say i have already looked this question over myself before asking, with that being said i get errors as an outcome.
 
I'm trying to convert a (open source) library to a portable class library so i can use the library in my Windows 8 App Development since Windows 8 App Development doesn't support Class Library's. The problem is for some reason i get errors like this:
http://prntscr.com/3wlw2a[^]
 
...And YES, i do have "using System.Runtime.InteropServices;" at the top.
http://prntscr.com/3wlwp5[^]
 
http://prntscr.com/3wlww2[^]
 
For anyone wondering, I'm trying to convert this: https://ps3lib.codeplex.com/releases/view/108287[^]

#2)
Code:

You get this error because a Portable Class Library does not support DllImport. When you think about it, you can see why this would be the case - the whole point of PCLs is that they can be used across platforms, but what you are trying to do is very much platform specific, you don't get the same DLLs on a Windows Phone that you do on a Windows desktop box.
@Pete O'Hanlon

#3
Code:

Okay thanks for the response! Smile |  But even without DllImport, would it still be possible to go about it a different way? -I feel so close, but yet so far away.
 
Also, (if it came down to it) couldn't I just go about it by P-Invoking it through the default class library (.dll) through the WIN8 Application i'm making?

#4
Code:

Looking at the fact you're trying to do marshalling as well as importing DLLs, I don't see how you're easily going to achieve this. What you might have to do is drop down from your PCL into a platform specific part here.

#5 [THE (WorkAround) SOLUTION]
Code:

Well, thank you for trying to help... Really i appreciate it, but i figured out a workaround without needing to convert the source to a portable library. Thanks.

[(KINDA) SOLVED]

(KINDA) Solution:
What i did...
I used the source from PS3Lib and put all of the classes in my Windows 8 Application, took out all references regarding TMAPI/TMAPI.dll/TMAPI_NET.cs entirely. CCAPI ONLY Compatible PS3Lib (Which is okay, as portable apps assentially wouldn't be able to execute ProDG TargetManager or the ProDebugger on they're phone.),  CCAPI.dll only calls.
Since the Portable Class Library doesn't support use of [DllImport("PS3Lib.dll")]/etc, and import/use of CCAPI.dll the Windows 8 Application (C#/XAML) itself does... kinda a loophole in a way... Instead of converting a class-library to a portable-class-library for my APP i put the library within it manually with the classes(.cs) and the removal of TMAPI.

P.S. I still think TMAPI would be possible for [WINDOWS 8 APPS ONLY], but i don't really care to mess around too much with it as i don't see it going anywhere as CCAPI.dll & PS3Lib.dll will be more realistic.

Again thanks for all your help Pete O'Hanlon.

P.P.S. Like i said this is KINDA solved, it fixed my issue by going about programming it a different way, but still isn't THE solution if you know what i mean. ;)


 
afro
 
bounce 
 
bounce 
Back to top Go down
http://www.3ncryp73d.com
 
How to get PS3Lib & CCAPI to work with WINDOWS 8 Applications/Portable Apps
Back to top 
Page 1 of 1
 Similar topics
-
» Windows 8.1/Windows phone/tablet Real Time Editing APP and Tutorial
» PS3TMAPI To PS3Lib Converter V4
» Windows 8 to 8.1 upgrade WITHOUT serial
» Things to know about Windows 8 App Development
» Windows 8 User Login Blackscreen autosignout (FIX)

Permissions in this forum:You cannot reply to topics in this forum
BaSsHaXoR :: Programming :: Windows 8 App Development-
Jump to: