NO Problem....Thanks for you time and expertize....
I'm eagger to learn, and although internet HAS everything you'll ever whanted, is hard to find when you don't known what others call it...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate) B4PPC DLL Version Listing - B4Android DLL Version Listing
Taximania, the thing about those tutorials is that they all base the assumption that you have the Visual Studio version of c#....And some of the options featured on these are not available, or are hard to find in other c# enviroments such as sharpdevelop...And they all only tell "do it this way" and "why things are done this way"....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate) B4PPC DLL Version Listing - B4Android DLL Version Listing
My last post has bit the dust.
DLL's can be created in SharpDevelop2.1.
I've done a very simple one based on the link to the example code from my previous post. Ask me if you want the code.
EDIT AGAIN:
Tried eVC++ :-(
Stick to Sharp Develop. eVC++ is way out
__________________
.
.
. Don't ask, I'm fine, honest. !!
.
.
. Just a little crazy at times
O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80
Hi. What is the best way to build the .SLN files, or does SharpDevelop do this automatically whenever you select new Solution and then select .net CF application? Thanks.
But I think, the best way to start is to use a template solution (I've posted earlier in this thread ScrollBar examples) and then from the project area rename solution, project, and class files.
@taximania
I am amazed. Your passion to learn looks endless. C++ isn't an easy to learn programming language but on the other hand it delivers all the power.
With eVC++ you can't create .NET DLLs but only native ones. C# is a good choice (VB.NET too).
@DZT, I have qualifications in 'C' programming. C++ is just a bit more complex.
To use your example in Sharp Develop, what option do I chose when I click on new solution ? C#, VBNet, etc.
Sharp had arguments with this line,
frmAbout = new System.Windows.Forms.Form();
so I added a reference to system.windows.forms, it compiled to a dll but it wont work on my device.
__________________
.
.
. Don't ask, I'm fine, honest. !!
.
.
. Just a little crazy at times
O2 XDA, GW Evo 2.1 UC WWE Rom, WM6.1
Radio Ver 03.34.90
With Basic4ppc V6.80
You shouldn't make new solution. Just open (from File->Open-> Project/Solution) .sln file with SharpDevelop 2.2 (yes there is an update). It has all the necessary references and at Project Options->Compiling has Target Framework: Compact Framework 1.0.
Then Build->Build Solution...
(Ohhh, now I see. I mean the attached zip file in my previous post at this thread, not the code I've posted at Questions and Help thread)
dzt thanks for all your trouble helping me, and of course, all others who want to learn dll creation...
I built your code and it works fine except that, in the desktop, the inputbox is shown outside the form boundaries even when i set the position relatively to the form...
I haven't tryed it in my device yet...
Any clues?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate) B4PPC DLL Version Listing - B4Android DLL Version Listing
Positioning forms at Desktop Windows is a bit tricky if you want to use the same DLL for both device and desktop. Didn't post anything because I had the device in my mind.
The workaround:
Add Left and Top properties to your AboutBox
case 1, using .Show
Position the AboutBox after the .show method
case2, using .ShowDialog
As nothing executed after .ShowDialog until the user presses OK you can't position your AboutBox after .ShowDialog. So to do the trick you should use a timer. Enable it before .ShowDialog and in the first tick (1 ms should be enough) disable the timer first and then position your AboutBox.
And a small notice about my posted c# code. If you use .ShowDialog to show the AboutBox then at btnOK_Click event is not enough to use frmAbout.Hide(). Instead of Hide use frmAbout.Close()