C++ Builder IDE >> [ITE] problem with paths of resource DLLs

by yinyang » Wed, 07 Sep 2005 16:58:40 GMT

Hi all,

i'm writing program (BCB5) in two language versions, English (ENG ) and
Polish (PLK). I've set Final Output directory to another dir than project
root (Project Options/Directories...). Of course for final binary output
i'll have to collect .exe as well as .PLK and .ENG files in this case in
order to be able to switch between two language versions at the runtime. Is
there some method to redirect compilation of there two language files to the
same directory as .exe??? I can't find it in project options...

Greetings
Marcin

PS. i've come across some idea - additionally I have 3 projects now -
project1.exe, project1.ENG and project1.PLK. I've been changing path only in
.exe project options so far, maybe paths have to be changed in 2 remaining??
Didn't check it out still..




Similar Threads

1. a.exe uses b.dll uses c.dll search path problem

2. Problems with "additional resource include paths"

My resource file compiles correctly, but when I try to open it in VS, I get
the error, "cannot find include file". The file in question is a "constant
include". This is what it looks like in the rc file:
////////////////////////////////////////////////////////////////////////////
/
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "buildoptions.h"

#ifdef APSTUDIO_INVOKED
////////////////////////////////////////////////////////////////////////////
/
//
// TEXTINCLUDE
//
2 TEXTINCLUDE
BEGIN
"#include "buildoptions.h"\r\n"
"\0"
END

I know that I set the "additional resource include paths" correctly, since I
can see them as command-line parameters. I tried both, relative paths with
double dots, and relative w.r.t $(SolutionPath). Same problem. Here's the
excerpt from the vcproj file:

   <Tool
    Name="VCResourceCompilerTool"
    PreprocessorDefinitions="NDEBUG"
    Culture="1033"

AdditionalIncludeDirectories=""$(SolutionDir)WinLib";"$(Solut
ionDir)Common""/>
I repeat: the resource compiler has no problem compiling it. It's the
resource editor in VS that cannot find the file. This happens in a
subproject of a larger C++ solution.

Bartosz Milewski



3. resources on creating resource DLLs? - Borland Delphi

4. problem passing file path from c# .net to COM dll

I am working with a c# .net project, and i am trying to pass a filepath
as a part of one my function calls. It seems like the escape characters
are not liked by the COM dll function being called.

@"c:\workmansvc\monarch\monarch.txt"
"c:\\workmansvc\\monarch\\monarch.txt"

I tried passing the path in the above two ways, and the COM dll throws
back an error saying:

An unhandled exception of type
System.IO.IOException occured in mscorlib.dll
the file name, directory name or volume label syntax is incorrect.

Any thoughts on how i could pass the path from c# with both c# and
vb6 COM dll liking it.

Thanks in advance
Nik

5. DLL Outputg path problem - CSharp/C#

6. problem with resource dll

hi all,

a small problem. i want to use resource dll to store my sql create and
update statements so the normal user can't modify it. my rc file looks like
this

MYSQL           RCDATA  sqlcreate_mysql.txt
FIREBIRD        RCDATA  sqlcreate_firebird.txt
TRG_FIRE        RCDATA  sqlcreate_fb_trg.txt

the dll is created and contains all data. but at runtime if i load the
resource and want to execute it, the firebird and mysql statements are both
loaded and not only the firebird resource?

i load it like this
ZScript.Script.Text := PChar(LockResource(LoadResource(vReshandle,
FindResource(vResHandle, 'FIREBIRD', RT_RCDATA))));

thx for any ideas


7. Resource dll problem - C++ Builder IDE

8. Problem in using c# dll having resources(forms) in VC++

Dear All,

I have created a c# dll having resource files. I am trying to use this
dll in VC++ project. I have done following steps:

1. Convert the dll to .tlb file using regasm tool provided by .NET
2. Through Project-->AddClass Menu created classes from type library
and added in the project.
3. When we compile the project it gives following errors:


Error	1	error C2146: syntax error : missing ';' before identifier
'GetType'	d:\classlibrary3\vc++app\debug\class3.tlh	62
Error	2	error C4430: missing type specifier - int assumed. Note: C++
does not support
default-int	d:\classlibrary3\vc++app\debug\class3.tlh	62
Error	3	error C4430: missing type specifier - int assumed. Note: C++
does not support
default-int	d:\classlibrary3\vc++app\debug\class3.tlh	62
Error	5	error C2143: syntax error : missing ';' before
'_Class1::GetType'	d:\classlibrary3\vc++app\debug\class3.tli	35
Error	6	error C2433: '_TypePtr' : 'inline' not permitted on data
declarations	d:\classlibrary3\vc++app\debug\class3.tli	35
Error	7	error C4430: missing type specifier - int assumed. Note: C++
does not support
default-int	d:\classlibrary3\vc++app\debug\class3.tli	35
Error	8	error C4430: missing type specifier - int assumed. Note: C++
does not support
default-int	d:\classlibrary3\vc++app\debug\class3.tli	35
Error	9	error C2064: term does not evaluate to a function taking 2
arguments	d:\classlibrary3\vc++app\debug\class3.tli	39

Can somebody help me in resolving this issue.

Thanks In Advance
Rajani