IRC Log Viewer » #firebreath » 2015-06-09

IRC Nick Time (GMT-7) Message
Mawy 07:06 Hi
I am trying to create a ActiveX plugin using firebreath
I have downloaded and installed the latest version of firebreath and CMake version 3.1
I have also run the pyton fbgen.py to and the given the inputs for a project generation template
The problem is I could not able to generate the VS solution file as specified in the documentation
The problem is I could not able to generate the VS solution file as specified in the documentation
taxilian 07:06 you may need cmake 2.8 to use the current firebreath trunk
you may need cmake 2.8 to use the current firebreath trunk
I haven't fixed all the cmake 3.x incompatibility things yet on that branch
Mawy 07:06 when I run the prep2008batch file, no solution got generated in the bin folder
taxilian 07:06 I've been focussed on the 2.x branch
... you mean the build folder?
... you mean the build folder?
Mawy 07:06 yes
taxilian 07:06 pastebin the cmake output and I'll look
Mawy 07:06 I am also looking for CMake 2.8 but not able to find in their download site
sorry not able to get you , "pastebin the cmake output and I'll look"
taxilian 07:06 http://www.cmake.org/files/v2.8/
gist.github.com
or pastebin.com
or fpaste.org
Mawy 07:06 ok posting ,,
taxilian 07:06 or fpaste.org
Mawy 07:06 http://ur1.ca/ms1st
please look into it
taxilian 07:06 that would be your cmakelists.txt file
I need the *output* from running the prep script
delete the build dir first
Mawy 07:06 ok ,
Hi
I could able to see only a empty build folder
I could able to see only a empty build folder
no files are there , am I looking at a wrong place
pls guide
I have also downloaded and installled CMake2.8
even with this, the project file is not generating,
are you there,
also I am getting path error , while installing CMake
also I am getting path error , while installing CMake
a warning states that path too long not able to set
is the reason , I am not getting the solution file generatetd
taxilian 07:06 what prep script did you run?
and how did you run it?
and how did you run it?
the build dir won't be empty; you need to delete it and run the prep script again
Mawy 08:06 prep2008
I have deleted and ran it also
taxilian 08:06 okay; if you run it prep2008 > cmake_output.log 2>&1
that should put the output in cmake_output.log
and you can paste that somewhere I can look at it
Mawy 08:06 I am not able to find any file named cmake_output.log either in the build folder or in the root folder where I am running it
taxilian 08:06 did you see any output from running the prep script?
Mawy 08:06 yes , on clicking over it , command prompt just popping out and clsoing automatically
nope
only an empty build folder is being created
are you there ??
taxilian 08:06 well, given that Mawy wasn't running the commands I asked, I guess it's fitting that they left while I was taking care of something
I wasn't going to be able to help them anyway
Mawy if you should happen to think to check the logs and see this message, you need to use a command prompt not the GUI, and you need to run the commands I told you to run to get the output.
Roman 10:06 would anyone have javascript/c++ sample of a get property returning std::vector<unsigned char>
taxilian 10:06 what exactly are you trying to do?
is this a byte array?
or just an array of values?
i.e. are you trying to pass binary data, a buffer, or are you just trying to pass a number of char sized numbers? how big is the array?
Roman 10:06 yes, I am trying to pass binary data
taxilian 10:06 then returning a vector<char> is a bad idea; doesn't perform well at all
Roman 10:06 what do you suggest
taxilian 10:06 you're much better off returning a base64 encoded string (yes, I know; it's ugly) because it will perform better than any other option I know of
Roman 10:06 when you say perform, do you mean speed or there is other
considerations
considerations
would you have sample base64 code
oops, I just found firebreath base64 utility on github
I am confused... shouldn't encode base64 function accept byte array?
taxilian 10:06 to be honest I don't remember; I'm in the middle of some stuff, could you give me a link?
to be honest I don't remember; I'm in the middle of some stuff, could you give me a link?
Roman 10:06 https://code.google.com/p/firebreath/source/browse/src/libs/HttpService/HTTPCommon/base64.cpp?name=295ae35636&r=295ae35636a41416ce858c377cb68c532f90f25d
https://code.google.com/p/firebreath/source/browse/src/libs/HttpService/HTTPCommon/base64.cpp?name=295ae35636&r=295ae35636a41416ce858c377cb68c532f90f25d
taxilian 10:06 ahh, yes. it assumes you have a std::string with the data in it; I'd forgotten that
ahh, yes. it assumes you have a std::string with the data in it; I'd forgotten that
one sec
one sec
here is the one I use: https://gist.github.com/taxilian/b5991396932855cea6dd
the one in the firebreath repo was for a specific purpose
Roman 10:06 this looks excellent and simple. Thanks for all your help.
taxilian 10:06 yw
Roman 21:06 Sorry for the bother... I am going out of my mind I can't seem to find the problem. The following code is get property which connects to activex control, retrieves byte array, encodes this array to base64 and returns it to fb
std::string axWrapper::get_FileContents() { if (m_spaxctl) { try { CComBSTR bstr; HRESULT hr; DISPID dispid; CComVariant pVar; WCHAR *member = L"FileContents"; DISPPARAMS dispparams = { NULL, NULL, 1, 1 };; // Get your pointer to the IDispatch interface on the object here. Also setup your params in dispparams. hr = m_spaxctl->GetIDsOfNames(IID_NULL, &member, 1, LOCALE_SYSTEM_DEFAULT, &dispid); if