473,725 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compilation of VC 6 COM Code invokes 64 bit processing MIDL compiler

I have COM dll code written in VC 6.0. When i tried
compiling this code in VC 7, The MIDL cmpiler gets called
twice. i.e. it initially compiles fully & immediately a
line - 64 bit processing' comes, followed by the 64 bit
compilation of the IDl file. The comlpilation goes thro'
the full stage and then the StdAfx.cpp is compiled.

I have another similar VC 6 COM dll code that gets
compiled without invoking the 64 bit processing of the
MIDL Compiler.

Hence i want to avoid this 64 bit processing. Please let
me know if you have any thoughts on this. I have copied
the piece of the command line message that calls the 64
bit processing.
Deleting intermediate files and output files for
project 'ACNDDDV', configuration 'Release|Win32' .
Performing MIDL step
Microsoft (R) 32b/64b MIDL Compiler Version 6.00.0361
Copyright (c) Microsoft Corporation 1991-2002. All rights
reserved.
Processing .\ACNDDDV.idl
ACNDDDV.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o aidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o bjidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\u nknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\w types.idl
wtypes.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\b asetsd.h
basetsd.h
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\g uiddef.h
guiddef.h
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o cidl.idl
ocidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o leidl.idl
oleidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\s ervprov.idl
servprov.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\u rlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\m sxml.idl
msxml.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o aidl.acf
oaidl.acf
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o cidl.acf
ocidl.acf
64 bit Processing .\ACNDDDV.idl
ACNDDDV.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\o aidl.idl
oaidl.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\o bjidl.idl
objidl.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\u nknwn.idl
unknwn.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\w types.idl
wtypes.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\b asetsd.h
basetsd.h
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\g uiddef.h
guiddef.h
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\o cidl.idl
ocidl.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\o leidl.idl
oleidl.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\s ervprov.idl
servprov.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\u rlmon.idl
urlmon.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\m sxml.idl
msxml.idl
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\o aidl.acf
oaidl.acf
64 bit Processing C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\Platfo rmSDK\include\o cidl.acf
ocidl.acf
Compiling...
StdAfx.cpp

The below snippet is when I compile the similar COM VC 6.0
dll in which the 64 bit processing is not invoked:

Microsoft (R) Development Environment Version 7.10.3077.
Copyright (C) Microsoft Corp 1984-2001. All rights
reserved.
------ Rebuild All started: Project: ACNHLBCT,
Configuration: Release Win32 ------

Deleting intermediate files and output files for
project 'ACNHLBCT', configuration 'Release|Win32' .
Creating Type Library...
Microsoft (R) 32b/64b MIDL Compiler Version 6.00.0361
Copyright (c) Microsoft Corporation 1991-2002. All rights
reserved.
Processing .\ACNHLBCT.idl
ACNHLBCT.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o aidl.idl
oaidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o bjidl.idl
objidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\u nknwn.idl
unknwn.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\w types.idl
wtypes.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\b asetsd.h
basetsd.h
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\g uiddef.h
guiddef.h
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o cidl.idl
ocidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o leidl.idl
oleidl.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\s ervprov.idl
servprov.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\u rlmon.idl
urlmon.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\m sxml.idl
msxml.idl
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o aidl.acf
oaidl.acf
Processing C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\Platfo rmSDK\include\o cidl.acf
ocidl.acf
Compiling...
StdAfx.cpp
Nov 17 '05 #1
0 1982

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1409
by: James Thurley | last post by:
I'm trying to dynamically compile assemblies and cache them to disk, which seems to work fine. When the data I'm compiling from changes, I want to re-generate the assembly and use the new version. After I re-generate the assembly, I get the type I want from it and then invoke a static method. I have found the following behaviour: 1. If I always regenerate the assembly with a completely new name,
9
6663
by: PG | last post by:
Hi gurus, I have AIX visual age C++ compiler version 5.0.2.3. I have a simple hello world program that gives compilation errors. Any help will be appreciated. Thanks PG ***test.cpp**** #include <stdio.h>
11
2554
by: Michael Gaab | last post by:
Compilation in c generally has four phases 1. Preprocessing 2. Compilation 3. Assembly 4. Linking. If I use a flag that will not link the code, order of compilation is not an issue, right? I am not that familiar with compilers so I am not sure. It seems to me that it would not make a difference as to *which* file was compiled *when*. Dependencies are only an issue during linking?
1
4950
by: morphius | last post by:
Does anybody know what this means? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
7
1463
by: fidlee | last post by:
i am new to learning jython... i just tried compiling a small piece of code that is given below: def fac(x) if x<=1:return 1 return x*fac(x-1) on
35
3042
by: mwelsh1118 | last post by:
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files. In C#, there appears to be no analog. I have to compile all my .cs files into a single .dll. This has serious drawbacks in terms of compilation. With Eclipse, I change a file and only that file is re-compiled. With Visual Studio, I
28
1676
by: Platonic Solid | last post by:
Hi- I am learning C from some old lecture notes, but they don't have solutions so I'd like some feedback on my code if anyone has the time. This is an exercise: "Write a program to trim any leading whitespace from a string and return a newly allocated buffer containing the trimmed string. Don't forget to handle errors." main(argc, argv)
2
2994
by: Bjoern | last post by:
Hi I have a COM object which fires an event where I have to pass an array of SHORTs as a parameter to the listening object. The array of SHORTs is encapsulated in a the CComSafeArray-class and passed as a VARIANT* in MIDL (since MIDL doesn't support SAFEARRAYs in events). In C# (.NET 1.0) the MIDL VARIANT* data-type is registered as "ref object" in the event-handler (delegate). How do I convert this "ref object" to a short array?
9
381
by: Raxit | last post by:
Hi, we are designing some stuff , that will generate c++ program(s) What we want is we wanted to execute that generated code.... i.e. 1. Xml based language 2. C++ code generated from 1. 3. compilation
0
8878
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6699
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6006
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4776
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2626
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2153
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.