News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

File2Obj Add-In

Started by TimoVJL, March 05, 2006, 06:10:03 PM

Previous topic - Next topic

TimoVJL

This File2Obj Add-In is based Hutch's idea to
make pe-coff-object from file.
Look:
http://smorgasbordet.com/phpBB2/viewtopic.php?t=1110&start=0

08.03.2006 bugfix.
01.05.2007 ifh.Machine = IMAGE_FILE_MACHINE_UNKNOWN
May the source be with you

Gerome

Hi,

Quote from: "timovjl"This File2Obj Add-In is based Hutch's idea to
make pe-coff-object from file.
Look:
http://smorgasbordet.com/phpBB2/viewtopic.php?t=1110&start=0

I've installed your plugin, tried to pick an obj file + another file + given a name, and clicked but seemed nothing appened...
But it created the obj file :)

Once this obj file was created and a name given, how can i exploit it into a project ?

Text file where i've put "Hello world"
Obj file : test.obj
Name given : hello

And then... ?
Can you give us a little sample please on how to finally use this obj into a practical world example ?

TimoVJL

Example for Test.txt

In File2Obj dialog:

File: Test.txt
Obj:  Test.obj
Name: hello

Make obj.


// test_test.c
#include <stdio.h>
#include "test.h"

int main(int argc, char *argv[])
{
  printf("%s",&hello);
  return 0;
}

Add test.obj to linkers 'Library and objects file:'
May the source be with you