tools for Dll ?

derez

Expert
Licensed User
Longtime User
Trying to learn how to create a library, I started to collect the tools.
I installed #develop 2.2 and opened a new solution. got the attached message, but the file is there. So the problem is the <Import> declaration. Can't find it. :confused::sign0085:

I found visual studio professional 2010 beta 2, will it work with the #develop ? I don't understand what is to be done with it, except that maybe some tools are included in the installation.

Are these two programs enough ? where I loaded the #develop some other programs were mentioned as necessary
Downloads @ic#code
:BangHead:
 
Last edited:

derez

Expert
Licensed User
Longtime User
It is not over yet...

I tried with #develop 3. New solution creates another complaint, see attached picture.:sign0094:

Opening an existing solution (the scrollbar) brings up the same result.

When I try to build I get an error with the same problem of the target file or the <import>.

:sign0085:

Edit: in the build file, at the end I found this:
B4X:
   <!-- Compact framework imports -->
   <Import Condition=" '$(SharpDevelopTargetFrameworkVersion)' == 'CF 1.0' "
           Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.v1.targets"/>
   <Import Condition=" '$(SharpDevelopTargetFrameworkVersion)' == 'CF 2.0' "
           Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets"/>
 
Last edited:

corwin42

Expert
Licensed User
Longtime User
I have only tried it with Sharpdevelop 2.2 for now.

Have you installed the .Net 2.0 SDK? And if yes in which order do you have it installed? Before or after CSharp?

If I think back I can remember that I had the same problem at first and then I installed everything again in the correct order and then it worked.

Greetings,
Markus
 

agraham

Expert
Licensed User
Longtime User
I know nothing about SharpDevelop but VS 2010 has no interaction with SharpDevelop, you could run both side by side on the same machine. However the VS 2010 beta 2 has no Smart Device Development capability.

Even the VS 2010 RTM version will not have device development until WM 7.0 is available when a mobile device toolset will be released for VS2010. The Moth: Windows Mobile development in VS2010 For now if you want to do device developent in VS you would need VS 2008 Professional as I don't think VS 2008 Standard includes device development.
 

derez

Expert
Licensed User
Longtime User
Thank you both, can you please tell me all the installations I need to do and in what order ?

From what I see in the control panel I don't have sdk installed.
 
Last edited:

derez

Expert
Licensed User
Longtime User
I did it - step 1 !

I did it - installed SDK and opened the cs-scrollbar example (for c sharp), and I managed to compile it to a dll that actually works, on the desktop and the device as well. ! :sign0060:

Now step two - I understand that the class file is where the code has to change. Which of the other 3 files I have to change also ? and how ? ( Assemblyinfo.cs , [name].csproj , [name].sln )

Also step 3 - where do I find the .net reference (the functions, controls etc.) ?

Sorry if I ask dumb questions but I never worked with it except for what B4ppc revealed until now...
 
Last edited:

derez

Expert
Licensed User
Longtime User
I played with the scrollbar example and managed to make some changes and additions - fine.

Now I tried to create a basic button, having in mind to continue its development like I did with the example.

I have an error which I don't understand, I'll appreciate if someone will check it and tell me what to do.

I'm using Sharpdevelop 2.2

The files are attached.

Thanks

Edit: Hold it, it did the build now, I'm going to check with B4ppc...

Edit: There is a dll but after I add it to the program, the "add object" menu is disabled :confused:

Edit: I copied the class file to a new project and got the same error : "Class, struct, or interface method must have a return type (CS1520) - D:\Cdev\sbtest\sbtest\MainForm.cs:17,10" refering to the line
public StateButton(Control parent, string Text, int Left, int Top, int Width , int Height)
 

Attachments

  • StateButton.zip
    2.5 KB · Views: 206
Last edited:

derez

Expert
Licensed User
Longtime User
I got over the return problem by giving the same names to the procedures.

Now I have a problem with the "dispose" : :BangHead:

"'test2.MainForm.Dispose(bool)': no suitable method found to override (CS0115) - D:\Cdev\test2\test2\MainForm.Designer.cs:22,27 "

I attach the new files.

Thanks
 

Attachments

  • sbtest.zip
    3.4 KB · Views: 198
Top