PC Review


Reply
Thread Tools Rate Thread

DLL File location

 
 
JOHN O.
Guest
Posts: n/a
 
      29th Sep 2003
I am trying to write a Dll in EVC++ to use it in my
CF.NET application. Where (Directory or File) do I save
the Dll at so I can call it from my application.
Thanks!

 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      29th Sep 2003
If you place it in the \Windows folder it will be directly accessible for
any application without specifying the full path e.g. in your .NETCF code
(C#)
[DllImport("yourdll.dll")]
public static extern void DoSomething();

Similarly if you place it in the same folder as your application you can
call it directly from that application in the same way - but not from other
applications without specifying the full path.
Therefore if your dll is to be used in multiple applications place it in the
\Windows folder, otherwise place it in your application folder - which you
can do by adding the appropriate cpu version of the dll to your .NETCF
project (marking the Build Action property in the IDE as Content) - see here
for a walkthrough http://www.inthehand.com/forums/viewtopic.php?t=129

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org


"JOHN O." <(E-Mail Removed)> wrote in message
news:1c2201c38680$aace0470$(E-Mail Removed)...
> I am trying to write a Dll in EVC++ to use it in my
> CF.NET application. Where (Directory or File) do I save
> the Dll at so I can call it from my application.
> Thanks!
>



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      29th Sep 2003
The answer can also include any folders listed in the registry at
[HKLM]/Loader/SystemPath key (it's a multi-sz key where each entry
represents a folder name where the loader will search for executable files
which were not specified with full paths).

Paul T.

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:Ot%(E-Mail Removed)...
> If you place it in the \Windows folder it will be directly accessible for
> any application without specifying the full path e.g. in your .NETCF code
> (C#)
> [DllImport("yourdll.dll")]
> public static extern void DoSomething();
>
> Similarly if you place it in the same folder as your application you can
> call it directly from that application in the same way - but not from

other
> applications without specifying the full path.
> Therefore if your dll is to be used in multiple applications place it in

the
> \Windows folder, otherwise place it in your application folder - which you
> can do by adding the appropriate cpu version of the dll to your .NETCF
> project (marking the Build Action property in the IDE as Content) - see

here
> for a walkthrough http://www.inthehand.com/forums/viewtopic.php?t=129
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
>
> "JOHN O." <(E-Mail Removed)> wrote in message
> news:1c2201c38680$aace0470$(E-Mail Removed)...
> > I am trying to write a Dll in EVC++ to use it in my
> > CF.NET application. Where (Directory or File) do I save
> > the Dll at so I can call it from my application.
> > Thanks!
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PST file location overrides OST file location? Jeff Vandervoort Microsoft Outlook Installation 9 19th May 2011 11:21 AM
Format the file location based on server location no the mapped dr BZeyger Microsoft Access 1 20th Feb 2009 04:38 AM
Macro to cause Explorer to open in same file path location that current file is located. cparnell@southernstorefixtures.com Windows XP General 0 11th Jan 2006 10:26 PM
Hibernation file, page file and internet cache files location during setup Alex Microsoft Windows 2000 Setup 1 11th Aug 2005 12:56 PM
Hibernation file, page file and internet cache files location during setup Alex Microsoft Windows 2000 Deployment 1 11th Aug 2005 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:34 PM.