|
|
thank you very much.
can you help about which C# applications,namespaces and styles would be helpful?
|
|
|
|
|
My only experience with such things was waaay back in college. We had an assignment to emulate a very primitive computer. The assignment wasn't based on a real computer; the text book describes a computer with only twenty operations. Programs are entered as ten-digit decimal numbers, as if from punch cards.
I'm fairly sure I was the only student in the class who had a working program (written in VAX Pascal as I recall). I also have a version in C that I wrote in 2003. I may yet write it in C# because it's kinda fun.
What you need to do will probably be much more complex (although you could simplify it if you choose).
What exactly do you want to achieve? Do you really want to simulate the CPU or simply execute the assembly code?
I suggest that the simpler the processor, the easier it is to simulate (4004 or 8008?). Your choice may depend on what your instructor thinks is a worthy level of expertise to demonstrate for the degree you're seeking.
As I recall, the instruction sets for 4004, 8008, 8080, 8088, etc. build upon the previous generation, so I would begin by implementing the 4004 instructions and then progress from there.
I can't tell you how to accomplish your task; that will depend on your own creativity.
|
|
|
|
|
hi i am serialising the uint data of a textures used in my maps, the trouble is this creates a huge file, i have already tried serialising it as a bitmap(as i have my own conversion method setup) but it seems to have a huge problem serialising and deserialing bitmaps, is there a better way of storing my map textures other than referencing the file name and src area of each image i am using??
|
|
|
|
|
It sounds to me like XML is a terrible candidate for what you want to do. I'd use a lossless image format to create them in a compressed format.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
the thing is it does not just store information on the images, imagine a map class which can hold several tiles, each tile has its own position and size and image, now i need all this information storing one way or another originally i had it storing via binary serialisation but as you know binary serialisation is slow, so i thought about using xml as the users of my program would also be able to edit them and change the values easily
Anyway it does not matter i think referencing the file and the image area(via preset indexes) will do just fine, as i have seen another example which uses this method.
modified on Monday, September 14, 2009 3:11 AM
|
|
|
|
|
Hy,
I'm developing small app in C# 3.5 for winXP that will automatically download images and video from camera to pc, on camera plug-in via usb. I have canon ixus 50 camera and i figure out how to get images from that camera to pc via WIA, but I just can't figure it out how to get/download avi format videos, can someone help me pls.
Regards
|
|
|
|
|
|
did you know some information about spd's ram
and C# implemention?
|
|
|
|
|
moein.serpico wrote: did you know some information about spd's ram
and C# implemention?
No!
I don't even know what spd is. I certainly did not know that it had a C# implementation.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
AFAIK SPD is part of BIOS, so use WMI.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Well, if you can learn something new every day, your day isn't wasted!
Oh, and your brain fills up!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Henry Minute wrote: and your brain fills up!
Store everything using acronyms, that's how I manage...
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Err..., I have trouble remembering acronyms.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
give me some information about iso 8583
i tried but i didnt find so much thing
|
|
|
|
|
moein.serpico wrote: give me some information about iso 8583
That's a bit rude isn't it!
Never mind though, here is some information about ISO8583.
ISO 8583 Standard for Financial Transaction Card Originated Messages - Interchange message specifications is the International Organization for Standardization standard for systems that exchange electronic transactions made by cardholders using payment cards.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
moein.serpico wrote: give me some information about iso 8583
It's cunningly hidden between the info on ISO 8582, and ISO 8584.
And people too stupid to google, probably wouldn't be able to make much sense of it.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I am trying to modify the file's attibutes to apply hidden feature. This method appears to be inadequite as it does not change my file attributes. Instead as I run my code and watch what is doing it give me a access denied #5 and invalid parameter #87. What am I doing wrong?
Bitmap bitmap = new Bitmap(1, 1);
bitmap.Save(BMP_Path);
if ((File.GetAttributes(BMP_Path) & FileAttributes.Hidden) != FileAttributes.Hidden)
{
File.SetAttributes(BMP_Path, File.GetAttributes(BMP_Path) | FileAttributes.Hidden);
File.SetAttributes(BMP_Path, File.GetAttributes(BMP_Path) & FileAttributes.Hidden);
}
|
|
|
|
|
Which line(s) give(s) the errors?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I don't get an error in code. I just do not get my file to become invisible. (Yes I have windows set to hide invisible files and yes I have checked the file at the command prompt to verify the attrib's assigned to the file. It gives no indication that the file is hidden.
|
|
|
|
|
JollyMansArt wrote: I don't get an error in code.
In your original post you said:
it give me a access denied #5 and invalid parameter #87.
which is why I asked about errors.
Never mind.
Some of the methods of Bitmap behave in a rather thuggish manner, in that they don't always release files that they have accessed. So I would suggest that you dispose your bitmap before trying the FileAttributes part.
Something like this:
Bitmap bitmap = new Bitmap(1, 1);
bitmap.Save(BMP_Path);
bitmap = null;
bitmap.Dispose();
if ((File.GetAttributes(BMP_Path) & FileAttributes.Hidden) != FileAttributes.Hidden)
{
File.SetAttributes(BMP_Path, File.GetAttributes(BMP_Path) | FileAttributes.Hidden);
File.SetAttributes(BMP_Path, File.GetAttributes(BMP_Path) & FileAttributes.Hidden);
}
I cannot guarantee that this will work, I have not tested it. It is based purely on known behaviour of Bitmap.
I do hope that you only use one of your attribute setting lines at a time, otherwise you cannot tell what is and what is not working.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
That worked thanks.
I did only use one in each test. And both lines will result in the same way.
But when disposing the bitmap that fixed it thanks.
|
|
|
|
|
Recently a friend told me that their is a compiler aviable for C# that enables us to generate execuitable for a C# program written in windows to be executed in Linux (i.e. the .cs file written in windows while the execuitable are generated for linux). Is it true? If true which compiler, is it a freeware and where can i find it.
I have also noted that when i open my .cs file in gedit (a text editor) in Ubuntu (a linux based operating system), all the keywords that would high lighted(marked in different color) in VS2K8(Visual Studio 2008) IDE are also high lighted in this text editor. Why is this so?
|
|
|
|
|
Ishaan Karnik wrote: Is it true? If true which compiler, is it a freeware and where can i find it.
Yes. Take a look at MONO project. It is open-source.
Ishaan Karnik wrote: Why is this so?
Gedit supports syntax coloring for C# style code. View -> Highlight mode -> Sources will show all the available languages which Gedit supports.
|
|
|
|
|
hello sir
i m a student of BS
i have a problem that i m unable to show an image( that is stored in the Debug folder )on a crystal report at run time
can anybody help me please.........?
|
|
|
|