Pelles C forum

C language => Beginner questions => Topic started by: maurizio on May 10, 2011, 02:06:55 PM

Title: Resouce 64 bit
Post by: maurizio 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
Title: Re: Resouce 64 bit
Post by: CommonTater 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.

Title: Re: Resouce 64 bit
Post by: maurizio 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
Title: Re: Resouce 64 bit
Post by: CommonTater 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...



Title: Re: Resouce 64 bit
Post by: maurizio 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

Title: Re: Resouce 64 bit
Post by: TimoVJL on May 12, 2011, 10:49:29 AM
Use linker option /NOENTRY if there isn't code at all.
Title: Re: Resouce 64 bit
Post by: CommonTater on May 12, 2011, 04:23:33 PM
Timo beat me to it :) 

Title: Re: Resouce 64 bit
Post by: maurizio on May 12, 2011, 05:04:30 PM
Thank Timo - Tater ,

 ;) now I have my DLL 64 bit

Regards Maurizio
Title: Re: Resouce 64 bit
Post by: mterraz 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...
Title: Re: Resouce 64 bit
Post by: TimoVJL 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")