Resource BCC to VS

Resource BCC to VS

Postby Marc Vanzegbroeck » Fri Mar 25, 2016 8: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Resource BCC to VS

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Resource BCC to VS

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Resource BCC to VS

Postby Marc Vanzegbroeck » 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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Resource BCC to VS

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Resource BCC to VS

Postby Marc Vanzegbroeck » Sat Mar 26, 2016 1: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: Select all  Expand view
#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 :D
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests