FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Resource BCC to VS
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Resource BCC to VS
Posted: Fri Mar 25, 2016 08:04 AM

Hi,

I want to compile my recource that was created in BCC to VS, but got errors like SS_RIGHT, SS_LEFT not defined.

What is the best way to convert it?
I want to open it in VS2015, but I only see the text-file. Is there also an visual-resource-editor available in VS2015?

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Resource BCC to VS
Posted: Fri Mar 25, 2016 12:20 PM

Marc,

> I want to compile my recource that was created in BCC to VS, but got errors like SS_RIGHT, SS_LEFT not defined.

Easiest way is to do #include <windows.h> at the top

> I want to open it in VS2015, but I only see the text-file. Is there also an visual-resource-editor available in VS2015?

Yes, there is a resources editor built in the IDE

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Resource BCC to VS
Posted: Sat Mar 26, 2016 10:15 AM

Antonio,

I opened the .RES file that was created in BCC in FW32 with VS2015, and than saved it as .RC, and it worked....
The only problem is that my application gives a windows error (0x000007b) when opening it :( . I take a look why...
The sample-files with resources runs fine..

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Resource BCC to VS
Posted: Sat Mar 26, 2016 11:03 AM
Marc Vanzegbroeck wrote:Antonio,

I opened the .RES file that was created in BCC in FW32 with VS2015, and than saved it as .RC, and it worked....
The only problem is that my application gives a windows error (0x000007b) when opening it :-) . I take a look why...
The sample-files with resources runs fine..


Problem found!! It's running now!!! :-) :-) :-) :-)
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Resource BCC to VS
Posted: Sat Mar 26, 2016 12:08 PM
If you are using a manifest file, this change is important if you build your app for 32 and bits using the same RC file:

#ifndef __64__
1 24 "WindowsXP.Manifest"
#endif

#ifdef __64__
1 24 "WindowsXP.Manifest64"
#endif

To compile your resources for 64 bits remember to use -D__64__

if EXIST %1.rc %bcdir%\bin\brc32 -r -D__64__ -I%bcdir%\include -I%bcdir%\include\windows\sdk %1
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: Resource BCC to VS
Posted: Sat Mar 26, 2016 01:05 PM
Antonio Linares wrote:If you are using a manifest file, this change is important if you build your app for 32 and bits using the same RC file:

#ifndef __64__
1 24 "WindowsXP.Manifest"
#endif

#ifdef __64__
1 24 "WindowsXP.Manifest64"
#endif

To compile your resources for 64 bits remember to use -D__64__

if EXIST %1.rc %bcdir%\bin\brc32 -r -D__64__ -I%bcdir%\include -I%bcdir%\include\windows\sdk %1


Thank you,

adding
Code (fw): Select all Collapse
#ifdef __64__
1 24 "WindowsXP.Manifest64"
#endif

also solved the problem in my previous post regarding VS2015

Now I'm going to test it with BCC7.1 and let you know the result :-)
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite

Continue the discussion