Results 1 to 13 of 13

Thread: Something Missing

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    32

    Something Missing

    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?

  2. #2
    Moderator
    Join Date
    Jan 2003
    Posts
    426
    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/d...4.msi?download

  3. #3
    Registered User
    Join Date
    Feb 2003
    Posts
    32
    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 ----

  4. #4
    Moderator
    Join Date
    Jan 2003
    Posts
    426
    Thanks, I'll add the clenaups in.

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    197
    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..

  6. #6
    Registered User
    Join Date
    Feb 2003
    Posts
    32
    Cavemanbob,

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

    Sixes.

  7. #7
    Moderator
    Join Date
    Jan 2003
    Posts
    426
    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.

    Last edited by cavemanbob; 06-03-2003 at 12:03 PM.

  8. #8
    Registered User
    Join Date
    Jan 2003
    Posts
    197
    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?)

  9. #9
    Registered User
    Join Date
    May 2002
    Posts
    89
    CybrMax

    I have not tried this, but in looking over the readme file for the Magic libs I found this. I hope it helps:
    Code:
     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

  10. #10
    Moderator
    Join Date
    Jan 2003
    Posts
    426
    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

  11. #11
    Registered User
    Join Date
    Feb 2003
    Posts
    32
    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.

  12. #12
    Moderator
    Join Date
    Jan 2003
    Posts
    426
    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.

  13. #13
    Registered User
    Join Date
    Jan 2003
    Posts
    197
    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..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On