Mirage Source
Ambigous name detected - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Ambigous name detected (/showthread.php?tid=1255)



Ambigous name detected - Stomach Pulser - 04-09-2007

I recently switched to version 3.0.3 and after Moving the forms and modules of Mirage.vbp to a folder called Src,
I re-added them by right clicking on the project explorer, selected add, and clicked on every form and module.

Then, when I try to run Mirage (f5)
I get this error, and the debugger shows Sub TcpInit() under modClientTCP

Code:
Compile error:

Ambigous name detected: SEP_CHAR

I know SEP_CHAR is defined because I found where it is defined in a module


Re: Ambigous name detected - smchronos - 04-09-2007

This usually means something is declared more than once. Check to see if sep_char isn't defined anywhere else besides where you found it.


Re: Ambigous name detected - Stomach Pulser - 04-09-2007

Thank you!

I found one in ModTypes and one in ModTCP, which one should I delete?


Re: Ambigous name detected - smchronos - 05-09-2007

It doesn't really matter. Pick whichever one you want. I'd keep it in TCP as that's just where I picture it being used. I think in MSE 1 & 2, it's in the Globals.bas, but I've never used 3.03 or 3.07, so I don't think it has that module.

Pick whichever module you want as long as you remember where you put it. Wink


Re: Ambigous name detected - Stomach Pulser - 05-09-2007

Woah! In 3.0.3 the following forms and modules are not used anywhere, they just exist in the folder for the client...

frmInventory.frm
frmInventrory.frx
frmGetData.frm
frmGetData.frx
modBitmap.bas
modCatalyst.bas
modTCP.bas

and the server...
modCatalyst.bas
modTCP.bas

is there any reason these are there?


Re: Ambigous name detected - smchronos - 05-09-2007

This is getting offtopic, but you mean that those files are in the source folder, but not in the actual VB6 project? I know catalyst was a useless speed modification. Why the TCP module is not included, I don't know (I've never used 3.03 and 3.07). But you don't need to really worry about them. If they aren't included, they aren't needed. If you want to know about the other modules and other Visual Studio files, ask other members as I don't know much about them.


Re: Ambigous name detected - Stomach Pulser - 05-09-2007

Ok, that clears things up, thanks!


Re: Ambigous name detected - Matt - 05-09-2007

I used 303 as a base for FPO and never had those files.. Or the one thing being defined twice.. O_o


Re: Ambigous name detected - funkynut - 05-09-2007

I remember having them files when I touched 303 a while ago, They were totally useless, I think they were just there ready for an update or something, You could safely delete them since vb doesn't need them