I'd like to get value of variable named $(MYVAR)_SOME_SUFFIX in the b.mak makefile.
Instead I get "b.mak(2) : fatal error U1001: syntax error : illegal character '$' in macro"
# ---- a.mak ----
all :
set MYVAR=SOME_PREFIX
nmake -f b.mak
#--- END ---
# ---- b.mak ----
all:
@echo $($(MYVAR)_SOME_SUFFIX)
#--- END ---
...
I need to replace
GET("any_name")
with
String str_any_name = getFunction("any_name");
The hard part is how to trim off the quote marks. Possible? Any ideas?
...
I'm currently trying to create a macro to help me debug an annoying JavaScript issue. There's a function that's getting called and it's throwing an exception. I've tried stepping through to find out what code is calling this function (because it shouldn't be called) but the third-party controls we're using and jQuery are creating a mount...
Hi! I've got data in the registry under Current User which I want to add into predefined bookmarks in Word documents. Now, the thing is, I want the exact same macro in every single Word document and have the macro skip the step if it can't find the predefined bookmark.
I've got this code already where I need to predefine an array of th...
I use macros to code unrolled loops like this: (silly example)
#define foreach_small_prime(p, instr) { \
int p; \
p = 2; instr; \
p = 3; instr; \
p = 5; instr; \
p = 7; instr; \
}
foreach_...
Is it "safe" to give macros names as arguments to other macros to simulate higher order functions?
I.e. where should I look to not shoot myself in the foot?
Here are some snippets:
#define foreach_even(ii, instr) for(int ii = 0; ii < 100; ii += 2) { instr; }
#define foreach_odd(ii, instr) for(int ii = 1; ii < 100; ii += 2) { instr; }...
Could somebody please help me with a MS Word Macro that would search for a specific symbol in every paragraph throughout the document and delete paragraphs that DO NOT contain that symbol.
I know practically nothing about VBA, but just received a huge & unwieldy document I need to edit real fast.
...
I have an application that used Macro.
In this macro I would like to call an external executable like this:
SYSTEM( "C:\Programme\Transform.exe" ,
"C:\Programme\Vectors.txt" ,
"C:\Programme\Vectors_Compensate.txt",
"C:\Programme\Vectors_Final.txt" )
This executable reconstruct a modified file according to a...
I was looking at the program at http://www0.us.ioccc.org/1988/westley.c, mentioned in another SO answer - it's supposed to print the value of pi, about 3.142, but when I compile it and run it I get 0.250. It looks like when the GCC preprocessor (both 4.1.2 and 3.4.6 tested) runs on the code, it converts
#define _ -F<00||--F-OO--;
_-_-_...
I have some Visual Studio Macros created in visual studio which run from the macro explorer and/or keyboard shortcuts. I would like to run these automatically on pre/post build events but see no option to do so in the project properties. Can anyone tell me if this is possible and, if so, how?
Thank you
Jason
...
There is a portion of my website where I am using a country's flag as an icon for a list element.
For instance, I have:
<ul>
<li id="at">Austria</li>
<li id="de">Germany</li>
</ul>
The accompanying CSS looks like this:
#at {
list-style-image: url('at.png');
}
#de {
list-style-image: url('de.png');
}
Is it possible to repla...
In OOo Calc
I need to copy a column (only the values, not the format) from one sheet to another (in the same worksheet) using a macro assigned to a button.
I browsed a bit around but found nothing significant :-(
...
IOW how do I make OOo's undo/redo work properly when a macro is executed?
This is related to my previous question: #853176
...
Can somebody please explain how to use macros in x86 assembly coding
...
Hi All,
During web development work, I need to be able to quickly switch various config settings in Firefox. In particular I need to be able to:
1) Switch off cookies
2) Switch off javascript
3) Switch my user agent (I have the user-agent switcher add-on installed)
and then back again.
Instead of doing this manually, it would be grea...
I have a macro to import keyboard settings into Visual Studio 2008. Before I import the key bindings I would like to reset all current bindings. I know this can be done manually through import and export settings, but I would like the macro to do this for me. Any help much appreciated.
Cheers,
Rob
...
I have always wondered if whatever actions we do are actually translated into VBA Macros before it is executed. Is that how we are able to record macros? If not, would you call it a redundancy in design? Would it be faster/slower it ain't the way it is now?
...
I am struggling to carry out the following. Any help would be greatly appreciated.
The marco only relates to one excel worksheet.
I have 50 rows of information, 11 columns wide (A - K)
in each row of column A there sits an IF condition
If the IF condition flags the word 'OK'
I would like a macro to trigger, and carry out the followin...
Part of the software I work on uses an Excel sheet to store the user error messages & their translations. We run a macro which generates a set of internationalized text files & matching header files that are then copied into our version control system (the spreadsheet is also in Version Control) and used as part of our build.
I'd like ...
Hi All,
I need to convert a semi-colon delimited file to an Excel.
However, there are some fields that must be removed from the Excel file, and some extra fields to be added. These extra fields are drop-down fields.
Is there any way to do this? Programming language that is preferably to be used is Java, but also welcome the possibility...