|
step 1: it cant even buy my sgis..........:P
step 2: i have read some where, maybe im mistaken, that vb can read asemble with a desassemble!!!!
step 3: i think its called a sort of translator.......a bit like the one c++ uses to write to it!
maybe i shoudnt write my personal oppinions here! sorry!
|
|
|
|
|
gelcoman wrote:
maybe i shoudnt write my personal oppinions here! sorry!
personal oppinions go it the soapbox or the lounge.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
gelcoman wrote:
its a bit illogical seen that c++ write the executable files in assemble but cant read it!
No it's not. C++ is a standard language that expresses operations in a more or less human-readable manner, and defines what each operation should do. The language spec does not dictate how each operation must be implemented by the compiler; it only states what the resulting machine code must do. That's actually a good thing, as not all CPUs use the same instruction set - the same program written in C++ can be compiled to run on many different processors, a feat which would be impossible if the spec dictated what binary instructions must be used to accomplish every operation in the language.
Unless you have an intimate knowledge of assembly language for the CPU this program is compiled to use, you're wasting your time trying to reverse engineer it. If you want to duplicate its functionality, write a design spec from observed behaviors of the program, then write your own program to duplicate them.
Will Build Nuclear Missile For Food - No Target Too Small
|
|
|
|
|
Hi,
Is it possible to write sectors directly to a hard disk via windows or do you need to use inline assembly? Im basically looking to experiment with writing my own boot loader at the start of a floppy drive (bytes 0 - 512).
Any help / advice on writing directly to a HDD would be most appreciated
|
|
|
|
|
(I'd prefer a non-MFC example if there's one available )
Skute
|
|
|
|
|
// Open the Primary Disk Device
HANDLE hFile = CreateFile("\\\\.\\PHYSICALDRIVE0", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
// Open the Floppy Drive
HANDLE hFile = CreateFile("\\\\.\\A:", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
You almoust all work with devices have to be by drivers into windows enviroment.
|
|
|
|
|
|
The rawrite source code is in Pascal.
If you want to use the Windows API to do this, you can use CreateFile passing a path of "\\.\device" to get a raw handle to the device, e.g., "\\.\a:" for the first floppy drive, "\\.\PhysicalDisk0" for hard drive 1. You can use the returned HANDLE with the other File Management Functions to write directly to the device.
Basically, to read the boot sector, you CreateFile to the drive and read in the first 512 bytes using ReadFile to get the MBR. When finished don't forget to call CloseHandle.
|
|
|
|
|
Thats great, thanks ian + Branislav.
How do i determine which disk is HDD0 or HDD1 though? Ideally i want some form of drop down box to select the drive i want to write / read to / from. Because when you enumerate the drives, you dont get it in the form of ////DEVICE do you?
Cheers
Skute
|
|
|
|
|
How to draw a line (horizontal&vertical) in a dialog box ?
Thanks,
Deepak Samuel.
|
|
|
|
|
For a line to be both, horizontal and vertical, it would have to be diagonal, right? Otherwise, I would have just suggested using a static control either 1 pixel wide or 1 pixel high.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
DavidCrow wrote:
For a line to be both, horizontal and vertical, it would have to be diagonal, right?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hmmm, how about a corner of a square, there the line is both horizontal and vertical.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
|
hi
I have two mfc applications.on clicking a certain button on the toolbar of the 1st mfc application i want to reflect some data onto a file that is included in the 2nd mfc application(i.e. under external dependencies of the 2nd mfc app.) and execute the 2nd mfc application without actually building/running the 2nd mfc application.
can anyone help me
thanks in advance
archana
|
|
|
|
|
So which part are you wanting help with: responding to a button click, writing to a file, or running another program?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi,
I have a smiliar problem too.
I have 2 MFC using single document interface. I have 2 programs. But on click the button on the first program, can the program prompt out the second window to let it perform its operations?
Thanks for ur help in advance
dreamerzz
|
|
|
|
|
dreamerzz wrote:
...can the program prompt out the second window to let it perform its operations?
I do not understand this. Can you explain further?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
For example, everytime in order for the program to run, we need to build and compile it right?
But can we skip this step?
|
|
|
|
|
dreamerzz wrote:
For example, everytime in order for the program to run, we need to build and compile it right?
Only if any of the source files changed. If none have, then a rebuild is not necessary.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Hi,
Thanks a lot for ur advice.
dReaMerzZ
|
|
|
|
|
Is there any way to create a file on an FTP server. It would appear from the documentation in MSDN that you have to create a zero length file locally, upload the file to the FTP server and then open it for writing. Am I missing the obvious?
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
FTP is for only file transfer, I dont think its possible to open a file in the remote server using FTP or append some data to the already existing file at the server.
Only think you can do is create the file locally write whatever you want and then transfer the file to ther server.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
I am just coming into DirectX with VC++ , can anybody tell me from where to start... what resources can be good for new comer and where i can i get it...
AD
|
|
|
|
|
Starting from the SDK is a way to go, or sites like
www.gamedev.net or google
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|