Tom's Hardware > Forum > Smartphones & PDAs > Windows Mobile > Using same DLL based Data Layer for PocketPC and WinForms ..

Using same DLL based Data Layer for PocketPC and WinForms ..

Forum Smartphones & PDAs : Windows Mobile - Using same DLL based Data Layer for PocketPC and WinForms ..

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.dotnet.framework.compactframework,microsoft.public.pocketpc,microsoft.public.pocketpc.developer (More info?)

 

Hi
I am designing a small app which I want to have versions available for
PocketPC, and for PC using WinForms.

In order to tier the app logically, I want to use the same Middle tier
(Business Layer / Data Access Layer) for the 2 apps, which will be
functionally the same, but have different presentation layers.

Is it possible to use the same Middle tier for both PocketPC and WinForm
projects?? Do I need to compile one of the .CS files against .NET, and
..NETCF?? or will the same DLL work on both platforms without the need to
compile twice against each platform?

Thanks


Paul

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.dotnet.framework.compactframework,microsoft.public.pocketpc,microsoft.public.pocketpc.developer (More info?)

 

You can either share the same codebase:
http://www.danielmoth.com/Blog/200 [...] me_17.html

or if you don't want to "compile twice":
http://www.danielmoth.com/Blog/200 [...] e-256.html

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Paul Aspinall" <paul@aspy.co.uk> wrote in message
news:YsyFd.125253$48.70171@fe1.news.blueyonder.co.uk...
> Hi
> I am designing a small app which I want to have versions available for
> PocketPC, and for PC using WinForms.
>
> In order to tier the app logically, I want to use the same Middle tier
> (Business Layer / Data Access Layer) for the 2 apps, which will be
> functionally the same, but have different presentation layers.
>
> Is it possible to use the same Middle tier for both PocketPC and WinForm
> projects?? Do I need to compile one of the .CS files against .NET, and
> .NETCF?? or will the same DLL work on both platforms without the need to
> compile twice against each platform?
>
> Thanks
>
>
> Paul
>

Reply to Anonymous

Archived from groups: microsoft.public.dotnet.framework.compactframework,microsoft.public.pocketpc,microsoft.public.pocketpc.developer (More info?)

 

Thanks for your reply to my post in the NG.

Should the same DLL run on both CF and full FW?

What needs to be done to tell VS that the DLL will be used on CF??

I have a DLL which works fine in a fullFW version. I have written a very
simple piece of code which calls the same DLL from PocketPC. However, I
constantly get the error:

"An unhandled exception of type 'System.MissingMethodException' occurred in
System.Windows.Forms.dll"

Which I believe is because it can't find the method. If I remove the call to
my own DLL the app runs fine on pocketPC

For this reason, I believe that my DLL is not being compiled or accessed
correctly by PocketPC.

Do you have any suggestions or ideas??

Thanks



Paul



"Daniel Moth" <dmoth74@hotmail.com> wrote in message
news:%236dzxgZ%23EHA.2012@TK2MSFTNGP15.phx.gbl...
> You can either share the same codebase:
> http://www.danielmoth.com/Blog/200 [...] me_17.html
>
> or if you don't want to "compile twice":
> http://www.danielmoth.com/Blog/200 [...] e-256.html
>
> Cheers
> Daniel
> --
> http://www.danielmoth.com/Blog/
>
>
> "Paul Aspinall" <paul@aspy.co.uk> wrote in message
> news:YsyFd.125253$48.70171@fe1.news.blueyonder.co.uk...
>> Hi
>> I am designing a small app which I want to have versions available for
>> PocketPC, and for PC using WinForms.
>>
>> In order to tier the app logically, I want to use the same Middle tier
>> (Business Layer / Data Access Layer) for the 2 apps, which will be
>> functionally the same, but have different presentation layers.
>>
>> Is it possible to use the same Middle tier for both PocketPC and WinForm
>> projects?? Do I need to compile one of the .CS files against .NET, and
>> .NETCF?? or will the same DLL work on both platforms without the need to
>> compile twice against each platform?
>>
>> Thanks
>>
>>
>> Paul
>>
>
>

Reply to Anonymous

Archived from groups: microsoft.public.dotnet.framework.compactframework,microsoft.public.pocketpc,microsoft.public.pocketpc.developer (More info?)

 

You have to compile the project(s) for the CF i.e. Smart Device Projects

Then they are retargetable which means the same binaries will run on the
desktop. The second link I provided has more info.

Cheers
Daniel
--
http://www.danielmoth.com/Blog/


"Paul Aspinall" <paul@aspy.co.uk> wrote in message
news:NdAFd.127745$48.101228@fe1.news.blueyonder.co.uk...
> Thanks for your reply to my post in the NG.
>
> Should the same DLL run on both CF and full FW?
>
> What needs to be done to tell VS that the DLL will be used on CF??
>
> I have a DLL which works fine in a fullFW version. I have written a very
> simple piece of code which calls the same DLL from PocketPC. However, I
> constantly get the error:
>
> "An unhandled exception of type 'System.MissingMethodException' occurred
> in System.Windows.Forms.dll"
>
> Which I believe is because it can't find the method. If I remove the call
> to my own DLL the app runs fine on pocketPC
>
> For this reason, I believe that my DLL is not being compiled or accessed
> correctly by PocketPC.
>
> Do you have any suggestions or ideas??
>
> Thanks
>
>
>
> Paul
>
>
>
> "Daniel Moth" <dmoth74@hotmail.com> wrote in message
> news:%236dzxgZ%23EHA.2012@TK2MSFTNGP15.phx.gbl...
>> You can either share the same codebase:
>> http://www.danielmoth.com/Blog/200 [...] me_17.html
>>
>> or if you don't want to "compile twice":
>> http://www.danielmoth.com/Blog/200 [...] e-256.html
>>
>> Cheers
>> Daniel
>> --
>> http://www.danielmoth.com/Blog/
>>
>>
>> "Paul Aspinall" <paul@aspy.co.uk> wrote in message
>> news:YsyFd.125253$48.70171@fe1.news.blueyonder.co.uk...
>>> Hi
>>> I am designing a small app which I want to have versions available for
>>> PocketPC, and for PC using WinForms.
>>>
>>> In order to tier the app logically, I want to use the same Middle tier
>>> (Business Layer / Data Access Layer) for the 2 apps, which will be
>>> functionally the same, but have different presentation layers.
>>>
>>> Is it possible to use the same Middle tier for both PocketPC and WinForm
>>> projects?? Do I need to compile one of the .CS files against .NET, and
>>> .NETCF?? or will the same DLL work on both platforms without the need to
>>> compile twice against each platform?
>>>
>>> Thanks
>>>
>>>
>>> Paul
>>>
>>
>>
>
>

Reply to Anonymous
Tom's Hardware > Forum > Smartphones & PDAs > Windows Mobile > Using same DLL based Data Layer for PocketPC and WinForms ..
Go to:

There are 1130 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them