I have just reproduced your problem (typing GetSeed as ulong in C#) and then corrected it by typing GetSeed as UInt32.
I should be more precise about the size of unsigned long in C++. It is 32 bits in Microsoft's compilers, but that isn't guaranteed to be true for other compilers. I can't find the standard's statement on this, but generally long is guaranteed to be at least as large as int. So there's nothing that prevents a compiler from typing long as 64 bits, or any other size, as long as long is at least as large as int.
Main Topics
Browse All Topics





by: josgoodPosted on 2007-11-10 at 07:29:46ID: 20256012
I suggest typing GetSeed as Uint32. Long in C++ is 32 bits, long in C# is 64 bits.