NO

Author Topic: File2Obj Add-In  (Read 4593 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
File2Obj Add-In
« on: March 05, 2006, 06:10:03 PM »
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
« Last Edit: May 01, 2007, 03:44:46 PM by timovjl »
May the source be with you

Gerome

  • Guest
Re: File2Obj Add-In
« Reply #1 on: March 08, 2006, 09:17:22 AM »
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 ?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
File2Obj Add-In
« Reply #2 on: March 08, 2006, 10:14:48 AM »
Example for Test.txt

In File2Obj dialog:

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

Make obj.

Code: [Select]

// 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