Rc fatal error rc1110 could not open rc

RC: fatal error RC1110 : could not open rsrc.rc

Topic: RC: fatal error RC1110 : could not open rsrc.rc  (Read 41538 times)

RC : fatal error RC1110 : could not open rsrc.rc

From some reason program always put rsrc.rc as default resource file although I have my own resource file with the same name as asm file.

You can add the resource file manual:
in the project tree right click the resource group (or any other) -> add Item -> existing files -> select your resource file -> the file is now loaded. The next step is to mark it as main-resource file: Menu->Make->«Toggle Current As Main File».


Logged

MREAL macros — when you need floating point arithmetic while assembling!


Ris

What if I’m not using projects?  :)
everything works fine except this.

In any case, I’m not sure from where RadASM takes rsrc.rc instead of file with the same name as .asm file?


Logged


What if I’m not using projects?  :)

Welcome in the club ;-)

If you have access to a batch file, try this:

if exist «%filebody%.rc» (
   set resfile=»%filebody%.rc»
) else (
   set resfile=rsrc.rc
)
echo Using %resfile%

etc.


Logged


What if I’m not using projects?  :)

—> rsrc.rc  ;-)

(one might try to edit the Make-section in masm.ini, but it seems that for resource compiling only the placeholder $R is available)


Logged

MREAL macros — when you need floating point arithmetic while assembling!


Ris

Welcome in the club ;-)

buona sera, amico!

If you have access to a batch file, try this:

which one .bat file? ))


Logged


Ris

(one might try to edit the Make-section in masm.ini, but it seems that for resource compiling only the placeholder $R is available)

[MakeDefNoProject]

11=rsrc.res,O,$BRC.EXE /v,rsrc.rc

15=rsrc.obj,O,$BCVTRES.EXE,rsrc.res

here?

[Win32 App]
1=4,O,$BRC.EXE /v,1
5=rsrc.obj,O,$BCVTRES.EXE,rsrc.res
15=rsrc.obj,O,$BCVTRES.EXE,rsrc.res

or something form here? )))

You’re on the home terrain here. I’m a newbie with MASM.


Logged


OK, you are using RadASM 2.x!
Try your luck by replacing rsrc in the MakeDefNoProject section with $.

You’re on the home terrain here. I’m a newbie with MASM.

this problem has nothing to do with MASM.


Logged

MREAL macros — when you need floating point arithmetic while assembling!


Ris

It looks like that it accepts a file name instead of rsrc.rc now

But….

C:RadASMMasmBinRC.EXE /v «C:RadASMMasmsrcOPEN.rc»
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 — Build 1823

Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

Using codepage 1252 as default
Creating C:RadASMMasmsrcOPEN.RES

RC: RCPP -CP 1252 -f C:RadASMMasmsrcRCa06736 -g C:RadASMMasmsrcRDa06736 -DRC_INVOKED -D_WIN32 -pc:/ -E -I. -I C:RadASMMasmsrc -I . -I C:Masm32ObjAsm32 -I C:Masm32ObjAsm32Resources -I C:Masm32ObjAsm32ResourcesDialogs

C:RadASMMasmsrcOPEN.rc.
Writing MENU:MENI,   lang:0x409,   size 60

Make error(s) occured.
Total compile time 1606 ms

As you can see I’m getting an error when I’m trying to compile my resource file from Make>Compile RC. But.. if I want to compile project with Make>Go, it works!!! How it could be possible?!? ))

Another question, how I can change paths from the previous report to show on my files inside RadASM/Masm folder? For now I’m using one copy of masm32 in its own folder and another inside of RadASM/masm folder. My idea is to create a portable IDE envirovnment and that I can change its location.

.


Logged


Ris

I’ve found them into Environment Variables. That means, nothing from my completely portable RadASM folder )))


Logged


did you take a look into the help folder? — there is a documentation for ini-files (RadASMini.rtf).
Maybe you get it run as required.

regards, qWord


Logged

MREAL macros — when you need floating point arithmetic while assembling!


Ris

I took a short look on that. It is a description of Radasm.ini. I didn’t mention anything crucial at 1st sight.
I still cannot resolve error occurred with rc.exe although I can compile program  :dazzled:

« Last Edit: November 11, 2013, 10:40:24 AM by Ris »


Logged


10K

24 ноября 2005 года

JhuSS

37 / / 20.10.2005

Простое окошко.
Фаил ресурса rcrc.rc

#include «masm32includeresource.h»

600 MENUEX MOVEABLE IMPURE LOADONCALL DISCARDABLE
BEGIN
POPUP «Файл», , , 0
BEGIN
MENUITEM «Открыть»,1
MENUITEM «Сохранить_как»,2
MENUITEM «», , 0x0800 /*MFT_SEPARATOR*/
MENUITEM «Выход»,0
END
POPUP «Функции», , , 0
BEGIN
MENUITEM «f3»,3
MENUITEM «f2»,4
MENUITEM «f3»,5
END
END

Твоя программа: begin.asm

.386
.model flat, stdcall
option casemap :none

include MASM32INCLUDEwindows.inc
include MASM32INCLUDEkernel32.inc
include MASM32INCLUDEshell32.inc
include MASM32INCLUDEmasm32.inc
include MASM32INCLUDEuser32.inc
include MASM32INCLUDEgdi32.inc
include MASM32INCLUDEcomdlg32.inc

includelib MASM32LIBkernel32.lib
includelib MASM32LIBshell32.lib
includelib MASM32LIBmasm32.lib
includelib MASM32LIBuser32.lib
includelib MASM32LIBgdi32.lib
includelib MASM32LIBcomdlg32.lib

WndProc proto :dword,:dword,:dword,:dword
MainWork proto :dword,:dword

show proto :dword,:word

.data?

hWnd dd ?
hMenu dd ?
hInst dd ?
hIcon dd ?
maxX dd ?
maxY dd ?

hDC dd ?
hBitmap dd ?
hBrush dd ?
hMemDC dd ?

hfile dd ?
file_size dd ?
bmi_str dd ?
lpscreen dd ?

hheap dd ?
pmemory dd ?

bif BITMAPFILEHEADER <>
bi BITMAPINFOHEADER <>
rgb RGBQUAD <>
Ps PAINTSTRUCT <>
ofn OPENFILENAME <>
wc WNDCLASSEX <>
msg MSG <>
file_name db 256 dup (?)
work_indikator dw ?
.data

szDisplayName db «BMP»,0
szClassName db «bmp_class»,0
files_filtr db «bmp Files «,0,»*.bmp»,0,»all Files «,0,»*.*»,0,0

.code

start: invoke GetModuleHandle,0
mov hInst,eax
mov wc.cbSize,sizeof WNDCLASSEX
mov wc.style,CS_HREDRAW or CS_VREDRAW
mov wc.lpfnWndProc,offset WndProc
mov wc.cbClsExtra,0
mov wc.cbWndExtra,0
push hInst
pop wc.hInstance
invoke GetStockObject,GRAY_BRUSH
mov wc.hbrBackground,eax
mov wc.lpszMenuName,600
mov wc.lpszClassName,offset szClassName
invoke LoadIcon,hInst,IDI_APPLICATION
mov hIcon,eax
mov wc.hIcon,eax
mov wc.hIconSm,eax
invoke LoadCursor,0,IDC_ARROW
mov wc.hCursor,eax
invoke RegisterClassEx,addr wc
test eax,eax
jz quit_loop

mov ofn.lStructSize,sizeof OPENFILENAME
mov ofn.lpstrFilter,offset files_filtr
mov ofn.nMaxFile,256
mov ofn.lpstrFileTitle,0
mov ofn.Flags,OFN_FILEMUSTEXIST or OFN_PATHMUSTEXIST or
OFN_EXPLORER
mov ofn.lpstrDefExt,0
mov ofn.lpstrFile,offset file_name
invoke CreateWindowEx,WS_EX_LEFT,addr szClassName,addr szDisplayName,
WS_OVERLAPPEDWINDOW or WS_VSCROLL or WS_HSCROLL,
CW_USEDEFAULT,0,CW_USEDEFAULT,0,
0,0,hInst,0
mov hWnd,eax
invoke ShowWindow,hWnd,SW_SHOWNORMAL
invoke UpdateWindow,hWnd
msg_loop: invoke GetMessage,addr msg,0,0,0
test eax,eax
jz quit_loop
invoke TranslateMessage,addr msg
invoke DispatchMessage,addr msg
jmp msg_loop
quit_loop: mov eax,msg.wParam
invoke ExitProcess,eax

WndProc proc hWin:dword,uMsg:dword,wParam:dword,lParam:dword
mov eax,uMsg
cmp eax,WM_DESTROY
je _wm_destroy
cmp eax,WM_CREATE
je _wm_create
cmp eax,WM_PAINT
je _wm_paint
cmp eax,WM_CLOSE
je _wm_close

cmp eax,WM_COMMAND
je _wm_command
_wm_out: invoke DefWindowProc,hWin,uMsg,wParam,lParam
ret
_wm_create: invoke GetSystemMetrics,SM_CXSCREEN
mov maxX,eax
invoke GetSystemMetrics,SM_CYSCREEN
mov maxY,eax
invoke GetDC,hWin
mov hDC,eax
invoke CreateCompatibleDC,hDC
mov hMemDC,eax
invoke CreateCompatibleBitmap,hDC,maxX,maxY
mov hBitmap,eax
invoke SelectObject,hMemDC,hBitmap
invoke GetStockObject,GRAY_BRUSH
mov hBrush,eax
invoke SelectObject,hMemDC,hBrush
invoke PatBlt,hMemDC,0,0,maxX,maxY,PATCOPY
invoke ReleaseDC,hWin,hDC
xor eax,eax
ret
_wm_paint: invoke BeginPaint,hWin,addr Ps
mov hDC,eax
invoke SelectObject,hMemDC,hBitmap
invoke BitBlt,hDC,0,0,maxX,maxY,hMemDC,0,0,SRCCOPY
invoke EndPaint,hWin,addr Ps
xor eax,eax
ret
_wm_command: mov eax,wParam
test eax,eax
jz _wm_close
cmp eax,5
jg _wm_out
invoke MainWork,hWin,wParam
xor eax,eax
ret
_wm_close: invoke MainWork,hWin,3
_wm_destroy: invoke PostQuitMessage,0
xor eax,eax
ret
WndProc endp

MainWork proc hWin:dword,wParam:dword
local buff_data:dword
mov eax,wParam
jmp dword ptr menu_handlers[eax*4]
menu_handlers dd idm_Quit
dd idm_Open
dd idm_Save_as
dd idm_f1
dd idm_f2
dd idm_f3

idm_Open: invoke GetOpenFileNameA,offset ofn
test eax,eax
jz idm_Quit
invoke CreateFileA,offset file_name,GENERIC_READ or GENERIC_WRITE,
FILE_SHARE_READ or FILE_SHARE_WRITE,0,OPEN_EXISTING,
FILE_ATTRIBUTE_ARCHIVE,0h
mov hfile,eax
invoke GetFileSize,hfile,0
mov file_size,eax
invoke GetProcessHeap
mov hheap,eax
invoke HeapAlloc,hheap,0,file_size
mov pmemory,eax
invoke ReadFile,hfile,pmemory,file_size,offset file_size,0
invoke CloseHandle,hfile

mov ebx,offset file_name
mov ecx,256
find_point: mov al,[ebx]
cmp al,’.’
je new_fn
inc ebx
loop find_point
new_fn: mov buff_data,ebx
mov ax,’a_’
mov [ebx],ax
inc ebx
inc ebx
mov eax,’pmb.’
mov [ebx],eax
mov work_indikator,0
idm_Quit: ret
idm_Save_as: cmp work_indikator,0
je idm_Quit
mov ofn.Flags,OFN_EXPLORER or OFN_OVERWRITEPROMPT
invoke GetSaveFileNameA,offset ofn
test eax,eax
je idm_Quit
invoke CreateFileA,offset file_name,GENERIC_READ or GENERIC_WRITE,
FILE_SHARE_READ or FILE_SHARE_WRITE,0,OPEN_ALWAYS,
FILE_ATTRIBUTE_ARCHIVE,0h
mov hfile,eax
mov esi,pmemory
mov edi,offset bif
mov ecx,14
_bif_copy: push [edi]
inc edi
pop [esi]
inc esi
loop _bif_copy
mov edi,offset bi
mov ecx,40
_bi_copy: push [edi]
inc edi
pop [esi]
inc esi
loop _bi_copy
invoke WriteFile,hfile,pmemory,file_size,offset file_size,0
invoke CloseHandle,hfile
mov work_indikator,0
ret
idm_f1:
jmp show_work
idm_f2:
jmp show_work
idm_f3:
jmp show_work

show_work:
inc work_indikator
ret

MainWork endp
end start

Содержание

  1. Помогите начинающему. Asm32
  2. 15 ответов
  3. Rc fatal error rc1110
  4. Rc fatal error rc1110
  5. Asked by:
  6. Question
  7. Rc fatal error rc1110

Помогите начинающему. Asm32

15 ответов

У нас есть форум по низкоуровневому программированию, перенесу-ка я эту тему туда, может ответят.

Моя личная рекомендация — сноси МЕ и ставь 2000 🙂

а файл rsrc.res присутствует?

JhuSS, я очень признателен тебе за участие.
Но ответь пож., что это воабще за хрень такая?
Может стоит все поломать и начать заново?
Я уже долго долблюсь с этим начинанием и постоянно меня преследуют какие-то непонятки и ошибки. Мог бы ты посоветовать с чего начать?
Что бы это было 100% рабочим?

Простое окошко.
Фаил ресурса rcrc.rc

600 MENUEX MOVEABLE IMPURE LOADONCALL DISCARDABLE
BEGIN
POPUP «Файл», , , 0
BEGIN
MENUITEM «Открыть»,1
MENUITEM «Сохранить_как»,2
MENUITEM «», , 0x0800 /*MFT_SEPARATOR*/
MENUITEM «Выход»,0
END
POPUP «Функции», , , 0
BEGIN
MENUITEM «f3»,3
MENUITEM «f2»,4
MENUITEM «f3»,5
END
END

Твоя программа: begin.asm

.386
.model flat, stdcall
option casemap :none

include MASM32INCLUDEwindows.inc
include MASM32INCLUDEkernel32.inc
include MASM32INCLUDEshell32.inc
include MASM32INCLUDEmasm32.inc
include MASM32INCLUDEuser32.inc
include MASM32INCLUDEgdi32.inc
include MASM32INCLUDEcomdlg32.inc

includelib MASM32LIBkernel32.lib
includelib MASM32LIBshell32.lib
includelib MASM32LIBmasm32.lib
includelib MASM32LIBuser32.lib
includelib MASM32LIBgdi32.lib
includelib MASM32LIBcomdlg32.lib

WndProc proto :dword,:dword,:dword,:dword
MainWork proto :dword,:dword

show proto :dword,:word

hWnd dd ?
hMenu dd ?
hInst dd ?
hIcon dd ?
maxX dd ?
maxY dd ?

hDC dd ?
hBitmap dd ?
hBrush dd ?
hMemDC dd ?

hfile dd ?
file_size dd ?
bmi_str dd ?
lpscreen dd ?

hheap dd ?
pmemory dd ?

bif BITMAPFILEHEADER <>
bi BITMAPINFOHEADER <>
rgb RGBQUAD <>
Ps PAINTSTRUCT <>
ofn OPENFILENAME <>
wc WNDCLASSEX <>
msg MSG <>
file_name db 256 dup (?)
work_indikator dw ?
.data

szDisplayName db «BMP»,0
szClassName db «bmp_class»,0
files_filtr db «bmp Files «,0,»*.bmp»,0,»all Files «,0,»*.*»,0,0

start: invoke GetModuleHandle,0
mov hInst,eax
mov wc.cbSize,sizeof WNDCLASSEX
mov wc.style,CS_HREDRAW or CS_VREDRAW
mov wc.lpfnWndProc,offset WndProc
mov wc.cbClsExtra,0
mov wc.cbWndExtra,0
push hInst
pop wc.hInstance
invoke GetStockObject,GRAY_BRUSH
mov wc.hbrBackground,eax
mov wc.lpszMenuName,600
mov wc.lpszClassName,offset szClassName
invoke LoadIcon,hInst,IDI_APPLICATION
mov hIcon,eax
mov wc.hIcon,eax
mov wc.hIconSm,eax
invoke LoadCursor,0,IDC_ARROW
mov wc.hCursor,eax
invoke RegisterClassEx,addr wc
test eax,eax
jz quit_loop

mov ofn.lStructSize,sizeof OPENFILENAME
mov ofn.lpstrFilter,offset files_filtr
mov ofn.nMaxFile,256
mov ofn.lpstrFileTitle,0
mov ofn.Flags,OFN_FILEMUSTEXIST or OFN_PATHMUSTEXIST or
OFN_EXPLORER
mov ofn.lpstrDefExt,0
mov ofn.lpstrFile,offset file_name
invoke CreateWindowEx,WS_EX_LEFT,addr szClassName,addr szDisplayName,
WS_OVERLAPPEDWINDOW or WS_VSCROLL or WS_HSCROLL,
CW_USEDEFAULT,0,CW_USEDEFAULT,0,
0,0,hInst,0
mov hWnd,eax
invoke ShowWindow,hWnd,SW_SHOWNORMAL
invoke UpdateWindow,hWnd
msg_loop: invoke GetMessage,addr msg,0,0,0
test eax,eax
jz quit_loop
invoke TranslateMessage,addr msg
invoke DispatchMessage,addr msg
jmp msg_loop
quit_loop: mov eax,msg.wParam
invoke ExitProcess,eax

WndProc proc hWin:dword,uMsg:dword,wParam:dword,lParam:dword
mov eax,uMsg
cmp eax,WM_DESTROY
je _wm_destroy
cmp eax,WM_CREATE
je _wm_create
cmp eax,WM_PAINT
je _wm_paint
cmp eax,WM_CLOSE
je _wm_close

cmp eax,WM_COMMAND
je _wm_command
_wm_out: invoke DefWindowProc,hWin,uMsg,wParam,lParam
ret
_wm_create: invoke GetSystemMetrics,SM_CXSCREEN
mov maxX,eax
invoke GetSystemMetrics,SM_CYSCREEN
mov maxY,eax
invoke GetDC,hWin
mov hDC,eax
invoke CreateCompatibleDC,hDC
mov hMemDC,eax
invoke CreateCompatibleBitmap,hDC,maxX,maxY
mov hBitmap,eax
invoke SelectObject,hMemDC,hBitmap
invoke GetStockObject,GRAY_BRUSH
mov hBrush,eax
invoke SelectObject,hMemDC,hBrush
invoke PatBlt,hMemDC,0,0,maxX,maxY,PATCOPY
invoke ReleaseDC,hWin,hDC
xor eax,eax
ret
_wm_paint: invoke BeginPaint,hWin,addr Ps
mov hDC,eax
invoke SelectObject,hMemDC,hBitmap
invoke BitBlt,hDC,0,0,maxX,maxY,hMemDC,0,0,SRCCOPY
invoke EndPaint,hWin,addr Ps
xor eax,eax
ret
_wm_command: mov eax,wParam
test eax,eax
jz _wm_close
cmp eax,5
jg _wm_out
invoke MainWork,hWin,wParam
xor eax,eax
ret
_wm_close: invoke MainWork,hWin,3
_wm_destroy: invoke PostQuitMessage,0
xor eax,eax
ret
WndProc endp

MainWork proc hWin:dword,wParam:dword
local buff_data:dword
mov eax,wParam
jmp dword ptr menu_handlers[eax*4]
menu_handlers dd idm_Quit
dd idm_Open
dd idm_Save_as
dd idm_f1
dd idm_f2
dd idm_f3

idm_Open: invoke GetOpenFileNameA,offset ofn
test eax,eax
jz idm_Quit
invoke CreateFileA,offset file_name,GENERIC_READ or GENERIC_WRITE,
FILE_SHARE_READ or FILE_SHARE_WRITE,0,OPEN_EXISTING,
FILE_ATTRIBUTE_ARCHIVE,0h
mov hfile,eax
invoke GetFileSize,hfile,0
mov file_size,eax
invoke GetProcessHeap
mov hheap,eax
invoke HeapAlloc,hheap,0,file_size
mov pmemory,eax
invoke ReadFile,hfile,pmemory,file_size,offset file_size,0
invoke CloseHandle,hfile

mov ebx,offset file_name
mov ecx,256
find_point: mov al,[ebx]
cmp al,’.’
je new_fn
inc ebx
loop find_point
new_fn: mov buff_data,ebx
mov ax,’a_’
mov [ebx],ax
inc ebx
inc ebx
mov eax,’pmb.’
mov [ebx],eax
mov work_indikator,0
idm_Quit: ret
idm_Save_as: cmp work_indikator,0
je idm_Quit
mov ofn.Flags,OFN_EXPLORER or OFN_OVERWRITEPROMPT
invoke GetSaveFileNameA,offset ofn
test eax,eax
je idm_Quit
invoke CreateFileA,offset file_name,GENERIC_READ or GENERIC_WRITE,
FILE_SHARE_READ or FILE_SHARE_WRITE,0,OPEN_ALWAYS,
FILE_ATTRIBUTE_ARCHIVE,0h
mov hfile,eax
mov esi,pmemory
mov edi,offset bif
mov ecx,14
_bif_copy: push [edi]
inc edi
pop [esi]
inc esi
loop _bif_copy
mov edi,offset bi
mov ecx,40
_bi_copy: push [edi]
inc edi
pop [esi]
inc esi
loop _bi_copy
invoke WriteFile,hfile,pmemory,file_size,offset file_size,0
invoke CloseHandle,hfile
mov work_indikator,0
ret
idm_f1:
jmp show_work
idm_f2:
jmp show_work
idm_f3:
jmp show_work

show_work:
inc work_indikator
ret

Источник

Rc fatal error rc1110

,сам разобраться не смог. На скринах выложил,что б наглядней было. Компилируется,файл с расширением .OBJ создаётся,а при линковке выдаёт ошибки. Интересно,что файл с расширением .EXE тоже создаётся,но не запускается,ни когда я по нему кликаю,ни когда запускаю из командной строки. По сути дела эта прога должна запускать браузер по умолчанию,но ничего не происходит. Направьте на путь истинный.
И ещё из RadAsm пробовал тоже ошибки выдаёт:
C:masm32binRC.EXE /v «rsrc.rc»
Microsoft (R) Windows (R) Resource Compiler, Version 5.00.1823.1 — Build 1823

Copyright (C) Microsoft Corp. 1985-1998. All rights reserved.

Using codepage 1251 as default
Creating rsrc.RES

RC: RCPP -CP 1251 -f C:masm32binRCa02024 -g C:masm32binRDa02024 -DRC_INVOKED -D_WIN32 -pc:/ -E -I. -I .

RC : fatal error RC1110 : could not open rsrc.rc

Make error(s) occured.
Total compile time 1938 ms
Его я до сих пор не могу настроить,к сожалению.
Помогите!
Вот листинг программы:

Затем текст подправили:

Но ничего не происходит в плане линковки,ошибки,ошибки.

Сейчас взялся за новую книгу
пример текста:

Run File [p7.2.exe]:
List File [nul.map]:
Libraries [.lib]:
Definitions File [nul.def]:
LINK : fatal error L1093: p7.2.obj : object file not found

В общем процесс стоит,но это не радует)))
P.S. У меня RadAsm установлен,но он тоже не хочет ничего делать,помогите страждущему

Источник

Rc fatal error rc1110

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Asked by:

Question

It’s not directly C++ related but other forums look like they are visited once in a year so here it is. I’m using Windows 7 SDK tools and compiling manually. Here is the description of this error: http://msdn.microsoft.com/en-us/library/0yksykw4(VS.90).aspx

The problem is that resource script file exists and everything should work just fine but for some reason it doesn’t. I tried to place file in the directory where «rc.exe» is located (current directory), also placed file in default include directory same as tried to specify where it has to search for the file, but in vain, error persists. Does anyone have any idea what’s wrong?

I’m using the following commands when compiling:

rc.exe /x /i c:usersadministratordesktop myapp.rc

/x is used to suppress search in default include directory.

/i points to the compiler that it has to look in specified directory.

Источник

Rc fatal error rc1110

Профиль
Группа: Участник
Сообщений: 13
Регистрация: 11.10.2006

Репутация: нет
Всего: нет

Добавил,но ничего не получилось.

При сборке выдает
Microsoft ® Windows ® Resource Compiler, Version 5.00.1823.1 — Build 1823
Copyright © Microsoft Corp. 1985-1998. All rights reserved.

Using codepage 1251 as default
Creating rsrc.RES
RC: RCPP -CP 1251 -f D:masm32RCa03588 -g D:masm32RDa03588 -DRC_INVOKED -D_WI
N32 -pc:/ -E -I. -I .

RC : fatal error RC1110 : could not open rsrc.rc

Microsoft ® Windows Resource To Object Converter Version 5.00.1736.1
Copyright © Microsoft Corp. 1992-1997. All rights reserved.

CVTRES : fatal error CVT1101: cannot open rsrc.res for reading

zxcc
Дата 15.10.2006, 10:19 (ссылка) | (нет голосов) Загрузка .

Эксперт

Профиль
Группа: Завсегдатай
Сообщений: 2243
Регистрация: 8.5.2006

Репутация: нет
Всего: 146

586
Дата 15.10.2006, 13:16 (ссылка) | (нет голосов) Загрузка .
Цитата(anwe @ 14.10.2006, 23:31 )
586 писал:
Цитата
Функцию DefWindowProc убери — из-за неё диалог глючит

Это, как раз не обязательно, из-за нее не глючит, хотя и не нужна в процедуре.

Кликни правой клавишей по заголовку окна, а потом левой по самому окну — диалог повиснет.

Опытный

Профиль
Группа: Участник
Сообщений: 748
Регистрация: 2.9.2006

Репутация: нет
Всего: 23

anwe
Дата 15.10.2006, 13:58 (ссылка) | (нет голосов) Загрузка .
Код
.
.IF uMsg==WM_CLOSE
invoke EndDialog,hWnd,NULL
.ELSE
mov eax,FALSE
ret
.ENDIF
mov eax,TRUE
ret
.

И тогда все работает правильно.

zxcc — не знаю что и сказать. Ради этого написал и скомпилировал у себя твое творение — все же идет. При сборке выдает все тоже кроме

Цитата
RC : fatal error RC1110 : could not open rsrc.rc

и получается DIALOG: DIAL1

Попоробуй вместо описания значений стилей прописать ссылку на файл resource.h. Если ты используешь пакет masm32, он должен быть у тебя.

Профиль
Группа: Участник
Сообщений: 13
Регистрация: 11.10.2006

Репутация: нет
Всего: нет

zxcc
Дата 15.10.2006, 16:20 (ссылка) | (нет голосов) Загрузка .

Опытный

Профиль
Группа: Участник
Сообщений: 748
Регистрация: 2.9.2006

Репутация: нет
Всего: 23

Ты открой через то же qeditor файл bres.bat и сравни то, что там написано с тем, что указал 586: какой там должен быть прописан код.

А по поводу другого способа — можешь использовать специальные редакторы ресурсов.

Это сообщение отредактировал(а) anwe — 15.10.2006, 16:48

anwe
Дата 15.10.2006, 16:38 (ссылка) | (нет голосов) Загрузка .

Эксперт

Профиль
Группа: Завсегдатай
Сообщений: 2243
Регистрация: 8.5.2006

Репутация: нет
Всего: 146

586
Дата 15.10.2006, 19:00 (ссылка) | (нет голосов) Загрузка .
Цитата(zxcc @ 15.10.2006, 17:20 )
А есть ли другой способ создания ресурсов.

Профиль
Группа: Участник
Сообщений: 13
Регистрация: 11.10.2006

Репутация: нет
Всего: нет

zxcc
Дата 15.10.2006, 20:36 (ссылка) | (нет голосов) Загрузка .

Эксперт

Профиль
Группа: Завсегдатай
Сообщений: 2243
Регистрация: 8.5.2006

Репутация: нет
Всего: 146

а там нет ничего сложного. Я без помощи научился.

zxcc, у тебя вообще есть опыт программирования в других средах? Мне кажется, асм тебе ещё рановат. С++ хоть знаешь?

Не знаешь, как пользоваться, возми другой редактор. Поищи в Интернете.

Это сообщение отредактировал(а) 586 — 15.10.2006, 21:14

586
Дата 15.10.2006, 21:13 (ссылка) | (нет голосов) Загрузка .

Опытный

Профиль
Группа: Участник
Сообщений: 748
Регистрация: 2.9.2006

Репутация: нет
Всего: 23

anwe
Дата 15.10.2006, 21:40 (ссылка) | (нет голосов) Загрузка .
Цитата
zxcc, у тебя вообще есть опыт программирования в других средах? Мне кажется, асм тебе ещё рановат. С++ хоть знаешь?

Профиль
Группа: Участник
Сообщений: 13
Регистрация: 11.10.2006

Репутация: нет
Всего: нет

zxcc
Дата 16.10.2006, 05:46 (ссылка) | (нет голосов) Загрузка .

Опытный

Профиль
Группа: Участник
Сообщений: 748
Регистрация: 2.9.2006

Репутация: нет
Всего: 23

anwe
Дата 16.10.2006, 21:43 (ссылка) | (нет голосов) Загрузка .
Код
@echo off
masm32binrc /v rsrc.rc
masm32bincvtres /machine:ix86 rsrc.res
pause

Профиль
Группа: Участник
Сообщений: 13
Регистрация: 11.10.2006

Репутация: нет
Всего: нет

zxcc
Дата 17.10.2006, 09:15 (ссылка) | (нет голосов) Загрузка .
tnt17
Дата 17.10.2006, 09:26 (ссылка) | (нет голосов) Загрузка .

Профиль
Группа: Участник
Сообщений: 11
Регистрация: 6.10.2006

Репутация: нет
Всего: нет

Правила форума «Asm для Windows/DOS»
  • Проставьте несколько ключевых слов темы, чтобы её можно было легче найти.
  • Не забывайте пользоваться кнопкой КОД .
  • Телепатов на форуме нет! Задавайте чёткий, конкретный и полный вопрос. Указывайте полностью ошибки компилятора и компоновщика.
  • Новое сообщение должно иметь прямое отношение к разделу форума. Флуд, флейм, оффтопик запрещены.
  • Категорически запрещается обсуждение вареза, «кряков», взлома программ и т.д.

Если Вам понравилась атмосфера форума, заходите к нам чаще! С уважением, MAKCim.

0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Asm для Windows/Dos | Следующая тема »

[ Время генерации скрипта: 0.1702 ] [ Использовано запросов: 21 ] [ GZIP включён ]

Источник

Adblock
detector

You can also edit the .vcxproj file directly and make sure that the following text is included near the bottom. This is from the SmartyPants example, so change the .r and .rc reference names to your project name.

<ItemGroup>

    <CustomBuild Include=»..SmartyPantsPiPL.r»>

      <Message Condition=»‘$(Configuration)|$(Platform)’==’Debug|Win32′»>Compiling the PiPL</Message>

      <Message Condition=»‘$(Configuration)|$(Platform)’==’Release|Win32′»>Compiling the PiPL</Message>

      <Command Condition=»‘$(Configuration)|$(Platform)’==’Debug|Win32′»>cl /I «$(ProjectDir)……Headers» /EP «..»\»%(Filename).r» &gt; «$(IntDir)»\»%(Filename).rr»

«$(ProjectDir)……ResourcesPiPLTool» «$(IntDir)%(Filename).rr» «$(IntDir)%(Filename).rrc»

cl /D «MSWindows» /EP $(IntDir)%(Filename).rrc &gt;              «$(ProjectDir)»\»%(Filename)».rc

</Command>

      <Command Condition=»‘$(Configuration)|$(Platform)’==’Release|Win32′»>cl /I «$(ProjectDir)……Headers» /EP «..»\»%(Filename).r» &gt; «$(IntDir)»\»%(Filename).rr»

«$(ProjectDir)……ResourcesPiPLTool» «$(IntDir)%(Filename).rr» «$(IntDir)%(Filename).rrc»

cl /D «MSWindows» /EP $(IntDir)%(Filename).rrc &gt;              «$(ProjectDir)»\»%(Filename)».rc

</Command>

      <Outputs Condition=»‘$(Configuration)|$(Platform)’==’Debug|Win32′»>$(ProjectDir)%(Filename).rc;%(Outputs)</Outputs>

      <Outputs Condition=»‘$(Configuration)|$(Platform)’==’Release|Win32′»>$(ProjectDir)%(Filename).rc;%(Outputs)</Outputs>

      <Message Condition=»‘$(Configuration)|$(Platform)’==’Debug|x64′»>Compiling the PiPL</Message>

      <Message Condition=»‘$(Configuration)|$(Platform)’==’Release|x64′»>Compiling the PiPL</Message>

      <Command Condition=»‘$(Configuration)|$(Platform)’==’Debug|x64′»>cl /I «$(ProjectDir)……Headers» /EP «..»\»%(Filename).r» &gt; «$(IntDir)»\»%(Filename).rr»

«$(ProjectDir)……ResourcesPiPLTool» «$(IntDir)%(Filename).rr» «$(IntDir)%(Filename).rrc»

cl /D «MSWindows» /EP $(IntDir)%(Filename).rrc &gt;              «$(ProjectDir)»\»%(Filename)».rc

</Command>

      <Command Condition=»‘$(Configuration)|$(Platform)’==’Release|x64′»>cl /I «$(ProjectDir)……Headers» /EP «..»\»%(Filename).r» &gt; «$(IntDir)»\»%(Filename).rr»

«$(ProjectDir)……ResourcesPiPLTool» «$(IntDir)%(Filename).rr» «$(IntDir)%(Filename).rrc»

cl /D «MSWindows» /EP $(IntDir)%(Filename).rrc &gt;              «$(ProjectDir)»\»%(Filename)».rc

</Command>

      <Outputs Condition=»‘$(Configuration)|$(Platform)’==’Debug|x64′»>$(ProjectDir)%(Filename).rc;%(Outputs)</Outputs>

      <Outputs Condition=»‘$(Configuration)|$(Platform)’==’Release|x64′»>$(ProjectDir)%(Filename).rc;%(Outputs)</Outputs>

    </CustomBuild>

  </ItemGroup>

  <ItemGroup>

    <ResourceCompile Include=»SmartyPantsPiPL.rc» />

  </ItemGroup>

@DevCybran

The libsodium 1.0.13 package, downloaded from https://github.com/jedisct1/libsodium/releases/download/1.0.13/libsodium-1.0.13.tar.gz , fails to build on Visual Studio with the following error message:

RC : fatal error RC1110: could not open buildsmsvcresource.rc

All previous versions of libsodium (1.0.12 and earlier) can be built without any problems.

The error might be related to the following new elements which were added to libsodium.vcxproj in 1.0.13:

  <ItemGroup>
    <ResourceCompile Include="buildsmsvcresource.rc">
    </ResourceCompile>
  </ItemGroup>

buildsmsvcresource.rc does indeed not exist in the package.

Additional information:

  • I attempted to run release- and debug-DLL and -non-DLL x64 builds using the batch build system
  • Platform: Visual Studio 2013 Update 5 on Windows 7 x64

@jedisct1

I’m a bit confused here. The build scripts for Visual Studio were never part of the tarballs, and I just verified that 1.0.13 doesn’t have the builds directory either.

Adding them wouldn’t be a bad idea, even if this means we need to make sure that we don’t forget to update the list of distributed files whenever these Visual Studio files get updated.

But in the meantime, if you want to rebuild the DLLs, you need to check out the code from Git (use the stable branch).

@jedisct1

The files were added. I’m not sure that it is a good idea, though, as the Visual Studio files represent no less than 660 K of additional data that most people don’t need.

@BurningEnlightenment

My thoughts in random order:

  • 660KiB aren’t really significant these days
  • the VS build files could live rot in their own tarball
  • people not capable of typing git clone -b stable --depth 1 https://github.com/jedisct1/libsodium.git are doomed anyway 😉

@jedisct1

My thoughts in random order:

  • 660 KB isn’t small, but since it’s all very redundant XML data, it compresses down to about 12 KB, so this is acceptable.
  • git returns command not found on Windows. That said, Visual Studio now has really nice Git integration.
  • Having build files in one tarball, and the source code in another would be a mess.
  • It’s raining cats and dogs outside, and it really plenty sucks since I was planning to hit the gym.

Repository owner

locked and limited conversation to collaborators

Aug 28, 2019

Понравилась статья? Поделить с друзьями:
  • Rc 1908 virtualbox error mac
  • Rbl lookup error host or domain name not found
  • Rbd error rbd listing images failed 2 no such file or directory 500
  • Raw формат ssd дисков как исправить
  • Raw формат sd карты как исправить