How to start a project using a Watcom compiler? - fortran

I need to evaluate a Fortran 77 code I wrote using a WATCOM compiler. Long story short, I have no other option for a compiler. It must be this one.
As of now, for this project, I have to read .dat files and print what it is read in a desired format.
On setting up a new project, Watcom makes a distinction between "targets" and "sources" but I have no idea what this means.
So far, I created a new project and loaded my code as a "source", but I don't know if this is right. I haven't figured out how to load the .dat file, or if I need to load them at all, given that perhaps Watcom may access it without bringing it to its interface.
For the record, I have read this manual but it was of little help. (ftp://ftp.openwatcom.org/pub/manuals/1.5/f_readme.pdf)
I'm still a beginner at coding and any help will be appreciated.
Thank you.

Related

How to extract program code from ISO file

In the Xbox 360 game Project Sylpheed: Arc of Deception. There are secret sub objectives for each level. On stage 11 "Flaming Clouds" there are 4, I have found two sources claiming they know each of them, but is actually untrue. One is still hidden. This is a very unpopular game, and no one has investigated it, and I want to know what it is. I have a disk image file of the game (ISO file). How would I go about finding the level trigger for the sub objective? I have already attempted to extract the 7gb iso using 7zip and Winrar, but each yielded the same 12mb files that contain nothing relevant what so ever. Obviously the core of the information is hidden and remains unextracted. Please advise.
https://wincdemu.sysprogs.org/ or linux/mac mount -o loop /path/to/my-iso-image.iso /mnt/iso
from there you're going to need a reverse compiler probabably but I don't know what your game is written in. You might luck out and find the levels coded in lua or something though.
Something else that can be happening is 7zip is actually opening the iso right, and the 12mb could be instructions to go download the actual game code from somewhere else. That sometimes happens with consoles.

.How do you create a new file in Ocaml and where does it store it?

I can't seem to find the answer, how do you create a new file in Ocaml? Do you edit your file in the terminal? Where does the source code appear?
I think you're asking how to write code in OCaml, i.e., how to create an OCaml source file. (This isn't completely clear. You could be asking how to write OCaml code that creates a file.)
The details of creating OCaml source depend on your development environment, not on the language itself. So there is no one answer.
The general answer is that you can use any tool you like that knows how to create a text file. If you like working from the command line (as I do) you can work in a terminal environment and run some kind of vintage text editor from the last millennium (as I do). If you like a GUI environment, you can run some kind of "programmer's editor" from the current millennium, or really any kind of editor that creates basic utf-8 files (or even ASCII files).
Generally the editor will have to be told where to store the files that you edit. You would probably want to make some kind of folder for the project and make sure you store the text files in there.
I hope this helps! If you have any programmers nearby, they can probably get you started a lot faster than asking on StackOverflow.

Program I just made is apparently a virus? C++

Okay so I just made a C++ program that is basically a notebook,
you write stuff in it and it saves it to a .dat file and then you can
read it later.
I compiled it with Microsoft Visual C++ and now I sent it to a friend and it's
saying that it is a virus? I scan it online and it also says that it's a virus.
I don't know why this is happening, as I literally just used some if/else statements, created some strings and used a couple getlines. (and fstream to create the .dat files).
This is the virus report: https://www.virustotal.com/en/file/a1b72280a32915429607fd5abeef1aad4f8310867df1feb7707ea0f7a404026e/analysis/1455735299/
Here is my code. (Its 400+ lines). And I'm almost certain there's nothing wrong
with it. http://pastebin.com/ZwJZrRSu
Any idea why this is happening?
Most probably your PC is already infected by a virus, which adds itself to any executable it can find on your machine. That would easily explain this behavior. Try to compile the same program on PC that is clean for sure and check your PC by antivirus.
I am not sure but I think it because you imported kernel32.dll
Again, it is hard to tell without the source
Also take a look at the file detail in the report

DBGP Implementation C/C++

Is there a Library that implements XDebug's DBGP in C/C++?
I'm interested in wrtting debugger and if such library exists will save me a lot!
I want to add the debugger to my editor coded in C++ Language but it is an editor for PHP Files.
None Exists. There was one from GSOC (App not a library) but I cannot take time to read and convert to my needs plus its written for wx2.8
So I will roll a class to Just glue up with my Editor
Edit
I ended using that one as I said.
Inside there is buggy libDBGp but I will fix it myself huh!
If you are interested its here (thanks to GitHub)
There are a few GDB based libraries that help debugger frontend writers like libgdb. DBGP is a very stupid and protocol with very small feature set - not enough for debugging C++.
For windows there is nothing like this. You can read the PDB database but it's pretty difficult. I spend a week to see how far i can get but wasn't very successfull. only the theory is easy. It might be better to write a frontend for the command line debugger windbg just like in the old days where you had to do this for GDB.

Resource not found(?) while porting C++ .net code from MSVS2005 to MSVS2010

Actually I don't know if this question has already been answered because I don't know where is the "real" problem. Here is the context: I have C++ .NET code that I'm trying to port from MSVS2005 to MSVS2010, that is from .NET 2.0 to .NET 4.0. When entering in the method InitializeComponent() for one of the forms created at startup, I get a first-chance exception System.Resources.MissingManifestResourceException' occured in mscorlib.dll when calling resources->ApplyResources( this->MyControl, L"MyControl" ).
The additional information is:
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "MyForm.resources" was correctly embedded or linked into assembly "MyAssembly" at compile time, or that all the satellite assemblies required are loadable and fully signed.
It worked perfectly when compiled with MSVS2005.
MSVS2010 converted all the solution automatically without problem.
The .resx files are there.
Since I have no clue about the source of the problem I cannot say more. I will be more than happy to give you more info if you try to help me.
Thanks in advance for your help.
Dominique
Make sure your resx file and the namespace of the component are the same.
I've seen it before where the resx gets compiled as SomeFoo.MyForm.resources where the form is in SomeFoo.Forms.MyForm
OK, Daniel's suggestion push me toward the solution.
I looked at the properties for the .resx files in the project. All files contained no "Resource Logical Name" buth the .resx and the .fr.resx files which where the ones that could be used on my computer.
I erased the entries for the virtual file names and everything works fine since then.
Thank you!