C# programming question

  • Thread starter Thread starter dhess31
  • Start date Start date
D

dhess31

Guest
I'm using the "filestream" member "seek" to get to a certain place in a binary file I've opened. The address as I read it is a 64 bit signed integer, but I need it to be unsigned. If I change the variable declaration to Uint64 instead of Int64, the seek method gives me an error that it can't convert long to ulong.

Is there a way around this? Can I typecast in C# like in C++?

Don
 
i do not know of C#, but here is what i found:

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21902665.html

perhaps it will be useful?
 
Hi Ark,

I don't have a membership to that site. I searched for about an hour for a solution though :) I'll keep at it.

Don
 
dhess31 said:
Hi Ark,

I don't have a membership to that site. I searched for about an hour for a solution though :) I'll keep at it.

Don
If you scroll down there's user comments that usually resolve the issue, and are free. At least they helped me a lot every time some search led me to that website.
 
Ah! I did not know that (in fact I came across that same link when I did my initial search).

Thanks guys.

Don
 

Trending content

Back
Top Bottom