I have an IDL file that I wrote that builds and runs fine. Now, we have a requirement to make our server run on 64-bit. According to the MIDL compiler docs:
"Use the /env win64 switch to generate 64-bit stubs only. The default is to generate dual stubs that run on both platforms."
However, I do not find that to be true. If I specify /env win64, I get 64-bit stubs. But, if I don't specify anything, I do not get dual stubs, I get 32-bit stubs that have this:
#if !defined(_M_IA64) && !defined(_M_AMD64)
So, they won't build 64-bit.
Help!

How to get 64-bit MIDL files to work right?
awsexton
Which version of midl.exe and Visual studio are you using
I found if using 6.00.0347 /Win64 means compling supporting AMD64 and IA64,
but in 6.0.366.1, /Win64 means compling only supporting AMD64.
I am afraid there is any special thing changed.
yishyuan
I Have the same problem do U have a solution for that
Thanks
Amir
Thunder0ne
Which version of midl.exe and Visual studio are you using
I found if using 6.00.0347 /Win64 means compling supporting AMD64 and IA64,
but in 6.0.366.1, /Win64 means compling only supporting IA64.
I am afraid there is any special thing changed.
karlytoz
KwanzaBot
Hope that helps.
Ahsan
Inga Verbitskaya - MSFT
pallavi_020