PDA

View Full Version : Something Missing



Sixes
05-18-2003, 09:53 AM
Trying to build the latest version of the client, I get:
Form1.cs(16,7): error CS0246: The type or namespace name 'Crownwood' could not be found (are you missing a using directive or an assembly reference?)
Form1.cs(17,7): error CS0246: The type or namespace name 'Crownwood' could not be found (are you missing a using directive or an assembly reference?)
Form1.cs(521,11): error CS0246: The type or namespace name 'DockingManager' could not be found (are you missing a using directive or an assembly

What am I missing?

cavemanbob
05-18-2003, 11:47 AM
Ahh you've been into the CVS version, I added an external library to do some neat stuff that I really didn't want to write on my own. I should mentioned something about that, but oh well. You need to grab this library and install it. New client releases will come with the dll.

http://prdownloads.sourceforge.net/dotnetmagic/MagicInstall174.msi?download

Sixes
05-19-2003, 05:29 AM
Thanks. It now builds again. The following diff gets rid of some compiler warnings:


Index: Form1.cs
================================================== =================
RCS file: /cvsroot/seq/myseq/client/Form1.cs,v
retrieving revision 1.8
diff -c -r1.8 Form1.cs
*** Form1.cs 18 May 2003 04:22:44 -0000 1.8
--- Form1.cs 19 May 2003 11:24:27 -0000
***************
*** 1854,1862 ****
ArrayList newSpawns = new ArrayList();

private void timer1_Tick(object sender, System.EventArgs e) {
- int c = 0;
bool found = false;
- bool done = false;

s.WriteByte(0x23);

--- 1854,1860 ----
Index: MapCon.cs
================================================== =================
RCS file: /cvsroot/seq/myseq/client/MapCon.cs,v
retrieving revision 1.6
diff -c -r1.6 MapCon.cs
*** MapCon.cs 18 May 2003 04:22:45 -0000 1.6
--- MapCon.cs 19 May 2003 11:24:28 -0000
***************
*** 55,64 ****
// Hand relocation variables
private Cursor hCurs = null;
private int hx=0, hy=0;
- private int ox, oy;
private int ox2, oy2;
private bool hDown;
- private bool rclick;
public bool rhide;
public bool rhighlight;
public Font drawFont = new Font("Arial", 10);
--- 55,62 ----
***************
*** 594,609 ****
ox2 = offsetxg;
oy2 = offsetyg;
}
- else if (e.Button == MouseButtons.Right) {
- rclick = true;
- }
}

//~~
private void MapCon_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) {
hDown = false;
hx = hy = 0;
- rclick = false;

//offsetx = offsetxg;
//offsety = offsetyg;
--- 592,603 ----

cavemanbob
05-19-2003, 12:38 PM
Thanks, I'll add the clenaups in.

CybMax
06-03-2003, 08:56 AM
Uhm.. care quickly to infor me on how to use these libs? (Yes.. total noob).. I downloaded and installed the link above, and only thing i got was some "examples" i could run.. (they worked tho)..

Is it some files i need to copy to my myseq source folder? or.. hints appriciated..

Sixes
06-03-2003, 09:24 AM
Cavemanbob,

The CVS seems to be behind the current version. Is this deliberate? Or an oversight?

Sixes.

cavemanbob
06-03-2003, 11:33 AM
It shouldn't be, but I'll have a look at it.

Ugh it is too, oh well. I'm packing up a new release for this afternoon with the necessary dll and such anyway so it'll be fixed today.

CybMax
06-04-2003, 03:06 AM
I installed the package 1.7.4 from http://www.dotnetmagic.com

The sample application works as it should. Installed in the default location.

Still get same compile error. How do i "install" it so that Myseq can compile.. Do i need the c# dev. tools and the works? Or should i still be able to compile using :

csc /out:myseq.exe /target:winexe Form1.cs Form3.cs Form4.cs ListBoxPanel.cs MapCon.cs MapPane.cs

Still get this error : Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

Form1.cs(16,7): error CS0246: The type or namespace name 'Crownwood' could not
be found (are you missing a using directive or an assembly reference?)
Form1.cs(17,7): error CS0246: The type or namespace name 'Crownwood' could not
be found (are you missing a using directive or an assembly reference?)
Form1.cs(521,11): error CS0246: The type or namespace name 'DockingManager'
could not be found (are you missing a using directive or an assembly
reference?)

z26o
06-04-2003, 10:12 AM
CybrMax

I have not tried this, but in looking over the readme file for the Magic libs I found this. I hope it helps:

Either create a new project or load the existing project of interest and right click the References folder.
The will present a dialog box with the .NET tab already selected. Navigate down the list of assemblies in this
tab until you find the Magic entry which should then be selected. Your project now has a reference to the official signed
build of Magic. When you decide to distribute your project you will need to also distribute the signed assembly which
is contained in the Magic Library 1.7.4\Bin directory and called MagicLibrary.dll. It is recommended that you add the
signed version into the GAC during your own installation process.
They are talking about inside the .NET programming environment I beleive.

z

cavemanbob
06-04-2003, 11:21 AM
You need to add a reference to the .net magic thing. If you're using the command line compiler try using this option as well as the others: /reference:MagicLibrary.dll

Sixes
06-05-2003, 09:27 AM
Originally posted by cavemanbob
Ugh it is too, oh well. I'm packing up a new release for this afternoon with the necessary dll and such anyway so it'll be fixed today. [/B]
CVS is still giving me server version 7.

cavemanbob
06-05-2003, 11:56 AM
Don't pay much attention to the version numbers in there, they'll often be a bid odd. At any rate the newest server code is in there now, it's almost the same as the 1.9b stuff, mostly some extra error checking.

CybMax
06-06-2003, 04:11 PM
Thanx guys the /reference:magiclibrary.dll did the trick..

Just for others, the commandline compile string is then :

csc /out:myseq.exe /target:winexe /reference:magiclibrary.dll Form1.cs Form3.cs Form4.cs ListBoxPanel.cs MapCon.cs MapPane.cs

PS. Remember to put the .DLL file in the same folder you are compiling from..