ExcelScript Type Definnitions - office-scripts

Really sorry if this has been answered somewhere… Does anyone know if a #types/ npm library exists for ExcelScript? Or even an ExcelScript.d.ts file somewhere?

Sumurthy on GitHub wrote a file, index.d.ts, to do this. You can take a look at that file here.

The type definitions for Office Scripts are not open source. A copy of those definitions is used to generate the reference documentation. It is updated shortly after the internal definitions are updated. You can find a public copy of the .d.ts file here: https://github.com/OfficeDev/office-scripts-docs-reference/blob/main/generate-docs/script-inputs/excel.d.ts

Related

How does SCons build content signature about a function?

Recently I used SCons to build project. But it rebuild everytime.. After reading .sconsign.dblite file, I found that SCons will create a content signature for a function. Like this:
TargetA.txt: 99bb021f789f7bb1c23935daffecfb8e 1598528466 22769
31aada685dfb3c4e5d1e474ba5cc251d [buildfunction(target, source, env)]
It create a signature for function buildfunction(target, source, env) which created file TargetA.txt. But I couldn't find the relative code. I think it's offered by SCons. Can anyone give me a help?
You'll have to go look at the source code.
It's fairly complicated.
Starts here:
https://github.com/SCons/scons/blob/master/SCons/Action.py#L1210
Also subject to change.
We may revamp in the not to distant future as python 3.5+ has features which may simplify the logic.

Need to change source code of an installed library

I am using Python3.4. I have installed a certain "itunespy" library from GitHub with pip, to work with iTunes API.
(https://github.com/spaceisstrange/itunespy)
I can now access it from console by
import itunespy
Except the library is only searching the US store through iTunes Api, whereas I need to access the UK store. I looked into the code and found I only need to change two lines to fix my problem.
Please can you tell me how I can access and change the source code of an already installed library.
Thank you.
Fork the repository
Clone the forked repository
Make changes and push to your remote (origin, usually)
You may pip install from your fork
I took a look at source code, and:
a) you may obviously change your source code in locally-copied file
b) you may patch these constants in run-time, like adding this type of code to your main:
import itunespy
itunespy.base_search_url = "NEW_VALUE"
itunespy.base_lookup_url = "NEW_VALUE"
c) library API seems to provide country keyword argument, so you do not have to do any of these hacks mentioned above. Simply do:
itunespy.search_track('something', country='UK')
With this keyword argument, searches should work as expected without any modifications of source code.
you really want to change the sourcecode?
How about just change your implementation?
inherit from the class
override/overload their methods with your own
work with your inherited class and their methods
pro: if there are changes in the original library you will take them with you when you update (secure-patches etc.) but your overridden/overloaded methods are still the one you use.
otherwise if you really want to change the source code, take a branch from github and change the sourcecode as you need it like mentioned by dolftax

Including libraries inside libraries

I've looked around (including StackOverflow), but the only question close to mine, as far as I can tell, is specific to Windows distributables, which doesn't apply to me.
I want to release a library: MyLibrary.lib
It uses some third-party libraries, for instance, ZMQ
I've included the third-party library into MyLibrary both with either #pragma or actually adding it to the project.
Either way, MyLibrary.lib compiles fine and creates a .lib file
HOWEVER.
An executable that is linked to MyLibrary complains at link time that it can't find the referenced ZMQ functions, as if ZMQ is not incorporated into MyLibrary.
Looking at MyLibrary with a hex editor it doesn't seem like ZMQ.LIB was incorporated. There are references to it but it seems "weak linked". I don't see the ZMQ code in there.
Alternatively, if I can get the application/executable to build and run it, it'll complain at runtime that it can't find zmq.dll.
Either way, it's obviously not in "MyLibrary".
How can I get a library to include other third-party libraries, so I don't have to distribute a bunch individually? What step am I missing?
Using MSVC2013
Thanks
Although I had the .lib I needed, it turns out it was an import lib, and the .dll was distributed elsewhere. I found the .dll and now it works. Thanks to all who responded.
What about the flags described in this article:
https://msdn.microsoft.com/en-US/library/2kzt1wy3%28v=vs.120%29.aspx
Can they help you?

How to use ReaderWriterOBJ in OpenSeneGraph

Can anyone explain to me how to use ReaderWriterOBJ in OpenSceneGraph? I want to load an obj file along with the mtl file. I have already built the solution for readerWriterObj code and created a dll file.
The ReaderWriter's are just file loaders. You have to use them in context of an application, like osgviewer, one of the examples included in OSG. If you've gone through the process of building OSG, you might have already built osgviewer, which will use the appropriate DLL's to load files.
eg
osgviewer FILE.obj
will open FILE.obj, with its associated material file[s].

adding .dll external file reference to my project doesn't work

I'm trying to add an External Reference to my Windows Forms project. I have the file named "ExtendedRichTextBox.dll" externaly from another project I downloaded from CodeProject.com
I added it, by browsing for it from Add reference dialog, and did also another time by copying the file to the debug folder of my project and adding the reference then from extensions.
Either way, the reference's proper function is not working. (I added "using ExtendedRichTextBox" to directive usings)
help !
Yes, thank you.
I managed to handle the problem it was on because the richtextbox I'm using was declared as this.richTextBox1 = new System.Windows.Forms.richtextbox where it should be declared as an extendedrichtextbox extention:
What should've been done was declaring "this.richTextBox1 = new ExtendedRichTextBox.RichTextBoxPrintCtrl();"

Resources