NO

Author Topic: Resouce 64 bit  (Read 4763 times)

maurizio

  • Guest
Resouce 64 bit
« on: May 10, 2011, 02:06:55 PM »
I have 2 questions :

1) my rsource is in a DLL 32 bit , is it possible convert in a DLL for  64 Bit

2) In the new 6.5 version is no longe possible save a .RC file in a .DLL , there is a new way ?

Regards Maurizio

CommonTater

  • Guest
Re: Resouce 64 bit
« Reply #1 on: May 10, 2011, 05:00:27 PM »
Of course you can still have resources in a 64 bit DLL... I have a couple of projects underway that are doing exactly that.

If your resource DLL is 32 bit and you have the source code, you can simply recompile it...

Even easier if you have it in a Pelles C project.  Click on Project in the main menu and on the submenu you will find an entry "Upgrade project to Win64"... click that and rebuild.


maurizio

  • Guest
Re: Resouce 64 bit
« Reply #2 on: May 10, 2011, 06:44:31 PM »
Tater ,

>If your resource DLL is 32 bit and you have the source code, you can simply recompile it...

how cann I recompile it ?

Thank
Maurizio
« Last Edit: May 10, 2011, 06:46:29 PM by maurizio »

CommonTater

  • Guest
Re: Resouce 64 bit
« Reply #3 on: May 10, 2011, 09:17:59 PM »
Do you have the source code?

If so, set it up in pelles C as a 64 bit DLL project and recompile... just like any other project.

Create the project... exit POIDE, put the source files in your project directory... then re-open POIDE and add the files to the project (right click the project in the tree pane...).

Then click BUILD...



« Last Edit: May 10, 2011, 09:19:39 PM by CommonTater »

maurizio

  • Guest
Re: Resouce 64 bit
« Reply #4 on: May 12, 2011, 10:32:56 AM »
Hello Tater ,

I have the source code the  TEST.RC  ( cames from TEST.DLL) .
I tried your advice , when I build  I have this error.
Building test.res.
Building test.dll.
POLINK: error: Unresolved external symbol '___DllMainCRTStartup@12'.
POLINK: fatal error: 1 unresolved external(s).
*** Error code: 1 ***
Done.

Thank Maurizio


Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Resouce 64 bit
« Reply #5 on: May 12, 2011, 10:49:29 AM »
Use linker option /NOENTRY if there isn't code at all.
May the source be with you

CommonTater

  • Guest
Re: Resouce 64 bit
« Reply #6 on: May 12, 2011, 04:23:33 PM »
Timo beat me to it :) 


maurizio

  • Guest
Re: Resouce 64 bit
« Reply #7 on: May 12, 2011, 05:04:30 PM »
Thank Timo - Tater ,

 ;) now I have my DLL 64 bit

Regards Maurizio

mterraz

  • Guest
Re: Resouce 64 bit
« Reply #8 on: June 23, 2013, 01:16:40 AM »
Hi guys,
       Could you please help me to solve this error, i try to build mt.dll file,

Building mt.dll.
POLINK: error: Unresolved external symbol '___DllMainCRTStartup@12'.
POLINK: fatal error: 1 unresolved external(s).
*** Error code: 1 ***
Done.

Solution should be to,
Use linker option /NOENTRY
but i am not sure where to set linker option /NOENTRY

Thanks in advance, i hope this help me to convert a 16 to 32 bits dll...

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: Resouce 64 bit
« Reply #9 on: June 23, 2013, 08:27:29 AM »
In poide, just put that to Linker options field Library and object files:
Or in source file
Code: [Select]
#pragma comment(linker, "-noentry")
« Last Edit: June 23, 2013, 08:48:42 AM by timovjl »
May the source be with you