WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Resource Editor Bugs, some bugs trying to compile and edit a .rc file

Boomerang
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 16888
Joined: 1-January 09


Sponsored Links
Winasm Studio 5.1.6.0 (I tryed also Winasm Studio 5.1.7.0 found in the forum, same results)

I have to report four bugs in the Resource Editor (maybe the third is much more like a limitation).


1 - file not found when compiling the .rc:

#define IDB_ABOUT 50

IDB_ABOUT BITMAP DISCARDABLE "Res\BMPs\ABOUT.BMP"

error RC2135 : file not found: "Res\BMPs\BOUT.BMP"

the solution is to use "\\" instead of "\" (but for default it is set to "\"...)


2 - Visual Mode messing around after editing any field (example below):

#define IDS_ABOUT "About"
#define IDB_ABOUT 50
#define IDS_NAME "my name"
#define IDC_ABOUT 100
#define IDC_NAME 200

(before editing there is no error compiling the .rc, ergo no bugs in the dialog)
...
IDB_ABOUT BITMAP DISCARDABLE "Res\\BMPs\\ABOUT.BMP" (see point 1)
...
CAPTION IDS_ABOUT
...
CONTROL IDB_ABOUT, IDC_ABOUT, ... (note the spaces after ",")
CONTROL IDS_NAME, IDC_NAME, ...
...

(after editing any field in Visual Mode some quotes are added, then some IDs become strings...)
...
IDB_ABOUT BITMAP DISCARDABLE "Res\BMPs\ABOUT.BMP" (see point 1)
...
CAPTION "IDS_ABOUT"
...
CONTROL "IDB_ABOUT",IDC_ABOUT,... (spaces removed after "," ...I like the spaces)
CONTROL "IDS_NAME",IDC_NAME,...
...

the solution consists into manual editing the "troublesome" parts...


3 - Visual Mode can't display the dialog if some IDs are defined as strings (no errors when compiling as in the point 2):

#define IDS_NAME "my name" (Line 35)
#define IDC_NAME 200

...
CONTROL IDS_NAME, IDC_NAME, ...
...

(error switching into Visual Mode)
Line 35, C:\Testing\dialog.rc, is not compatible... No resources that follow...

the solution is to move the Line 35 in a stand-alone C-Header and include it, but the string visualized in Visual Mode is 'IDS_NAME' instead of 'my name'


4 - SS_BITMAP and SS_ICON conflict enabling both or switching between them

if these options are enabled at the same time the resul is 0x#######F ('#' is just a char to represent any hex value...), I guess F is the result of E OR 3 (even 3 OR E)

the solution is to disable both of them, then enable only the one required


This is a best software, and I don't feel comfortable reporting bugs... (I hope it's only my imagination...) :blink:
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google