Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is a #define _WIN32_DCOM a in visual c++ project?

What is

#define _WIN32_DCOM

in a visual c++ project ? If I want to target the application build to x64, do I need to change it to WIN64_DCOM object ?

like image 342
Ziyi Wang Avatar asked Oct 04 '12 06:10

Ziyi Wang


People also ask

What are these punctuation marks called?

What are the 14 Punctuation Marks in English? There are 14 punctuation marks that are used in the English language. They are: the period, question mark, exclamation point, comma, colon, semicolon, dash, hyphen, brackets, braces, parentheses, apostrophe, quotation mark, and ellipsis.

What is a semicolon used for?

Use a semicolon to join two related independent clauses in place of a comma and a coordinating conjunction (and, but, or, nor, for, so, yet). Make sure when you use the semicolon that the connection between the two independent clauses is clear without the coordinating conjunction.

How do you use a semicolon example?

When you have a conjunctive adverb linking two independent clauses, you should use a semicolon. Some common conjunctive adverbs include moreover, nevertheless, however, otherwise, therefore, then, finally, likewise, and consequently. I needed to go for a walk and get some fresh air; also, I needed to buy milk.


1 Answers

From Microsoft support:

If your custom interface uses BSTR, VARIANT, or SAFEARRAY, and if you want to use your custom interface marshaling code only on a DCOM platform, you can use MIDL generated marshaling code. You will need to use -D_WIN32_DCOM as a C compiler flag in the build process of the MIDL generated code. Otherwise, a compiler error will be generated that indicates that your code will compile only if you mark it as runable only on a DCOM platform.

The symbol is a logic ones, you may use it unchanged under Windows 64 bits

like image 84
Aubin Avatar answered Oct 06 '22 17:10

Aubin