Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


OpenNet problems


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2007, 12:02 PM
Junior Member
 
Join Date: May 2007
Posts: 13
Default OpenNet problems

Hi again

I am trying to connect a device to the computer and use the RAPI library.

When I add the components Rapi.dll and OpenNETCF.Desktop.Communication.dll the error is taht I do not have permissions for the OpenNETCF.Desktop.Communication.dll.

I start with the code:
rapi.New1

I assume it shoul work if the PDA is connected via Active Sync.

Thanks!
Reply With Quote
  #2 (permalink)  
Old 05-20-2007, 12:07 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Are you working from the desktop?
You don't need to add the OpenNETCF.Desktop file. It should be copied to the folder of your source code.
Reply With Quote
  #3 (permalink)  
Old 05-20-2007, 12:11 PM
Junior Member
 
Join Date: May 2007
Posts: 13
Default

Yes I'm working from the Desktop.

If I don't add it I can compile an .EXE file but theres an error:
Required Permissions cannot be acquiered.
Reply With Quote
  #4 (permalink)  
Old 05-20-2007, 12:53 PM
Junior Member
 
Join Date: May 2007
Posts: 13
Default

It seems there are some different versions of the OpenNetCF.Desktop dll file.

Now I can use it when running the debugger, but when compiled the OpenNetCF is in a invalid format ?
Reply With Quote
  #5 (permalink)  
Old 05-20-2007, 02:05 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Did you copy the OpenNet to the folder of the compiled application?
Reply With Quote
  #6 (permalink)  
Old 05-20-2007, 03:15 PM
Junior Member
 
Join Date: May 2007
Posts: 13
Default

Yes the compiled program is in the same folder as sbp file and the OpenNet, and rapi files are there as well.
Reply With Quote
  #7 (permalink)  
Old 05-20-2007, 06:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

Attached is a working example (source code and compiled).
Attached Files
File Type: zip RAPI.zip (76.7 KB, 19 views)
Reply With Quote
  #8 (permalink)  
Old 05-20-2007, 08:17 PM
Junior Member
 
Join Date: May 2007
Posts: 13
Default Works again

Thank you for your help.

Just to inform those who (like my self) didn't know, the problem was the security in the .NET setup.

From the controlpanel you can set the security to the right level.

Then it work like a charm !

Thanks again for all your support!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
fullscreen(false) problems kolbe Questions & Help Needed 1 03-22-2008 02:39 AM
Sprite problems willisgt Questions & Help Needed 2 02-28-2008 06:30 PM
Problems with outlook.dll Gerd Bug Reports 5 12-14-2007 01:35 PM
Form problems Lasse Questions & Help Needed 11 10-09-2007 12:46 PM
FTP Library Problems Louis Questions & Help Needed 1 06-19-2007 10:33 AM


All times are GMT. The time now is 04:06 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0