Re: [Development] How to modify the hard code paths built in QtCoreX.dll

2012-04-29 Thread Loaden
I just write a tool use plain c++. > #include > #include > #include > #include > #include > > int main(int argc, char *argv[]) > { > if (argc != 4) { > std::cerr << "Usage: replstr targetFile oldString newString" << > std::endl; > return EXIT_FAILURE; > } > > const

Re: [Development] How to modify the hard code paths built in QtCoreX.dll

2012-04-25 Thread 1+1=2
My fault, it has been removed from QtCreator in July last year. As Andreas said, qtpatch.cpp can be found in installer framework. Debao On Wed, Apr 25, 2012 at 5:46 PM, cat fa wrote: > > > 在 2012年4月26日 上午1:20,1+1=2 写道: > >> In addition, a tool called qpatch is designed to do such a thing. >> >

Re: [Development] How to modify the hard code paths built in QtCoreX.dll

2012-04-25 Thread Andreas Holzammer
Also in the installer-framework, is something like that. And today I pushed a fix to the operation, that will support Qt5. Am 25.04.2012 19:20, schrieb 1+1=2: > In addition, a tool called qpatch is designed to do such a thing. > > Qpatch 's source code can be found in QtCreator's repository. > >

Re: [Development] How to modify the hard code paths built in QtCoreX.dll

2012-04-25 Thread 1+1=2
In addition, a tool called qpatch is designed to do such a thing. Qpatch 's source code can be found in QtCreator's repository. src/tools/qpatch/qpatch.cpp 2012/4/25 Thiago Macieira : > On quarta-feira, 25 de abril de 2012 18.50.01, Loaden wrote: >> There have any way to modify (replace)  the ha

Re: [Development] How to modify the hard code paths built in QtCoreX.dll

2012-04-25 Thread Thiago Macieira
On quarta-feira, 25 de abril de 2012 18.50.01, Loaden wrote: > There have any way to modify (replace) the hard code paths built in > QtCore5.dll ? Just edit the binary file with a binary editor. You'll notice that the variables have 512 bytes of space, so it should be enough to change it to almos

[Development] How to modify the hard code paths built in QtCoreX.dll

2012-04-25 Thread Loaden
As we know the qt paths is hard code in qtbase\src\corelib\global\qconfig.cpp My question: There have any way to modify (replace) the hard code paths built in QtCore5.dll ? Thanks a lot! static const char qt_configure_prefix_path_strs[][12 + 512] = { > "qt_prfxpath=D:\\qpSOFT\\Projects\\Qt5\\