473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

IL & C++ & OBJ

I am compiled my C file into IL source,
How i can compile this file back to OBJ file, not to EXE or DLL?

or, can i compile to OBJ file VB or C# code and link them with C++ managed
OBJ files?

Thanks
Nov 17 '05 #1
7 1586
"Dmitry Shuklin" <sh*****@bk.ru> wrote in message
news:uv**************@TK2MSFTNGP10.phx.gbl...
I am compiled my C file into IL source,
How i can compile this file back to OBJ file, not to EXE or DLL?
There is no tool from MS to accomplish this.
or, can i compile to OBJ file VB or C# code and link them with C++ managed
OBJ files?


AFAIK, no tool for this, either.

<rant>
It is a shame that you can't currently do this especially since VAX/VMS
allowed modules written in disparate languages to be linked and used
together seamlessly more than two decades ago.
</rant>

It is not what you asked, but it is possible to link to "net modules" and
then to create an "assembly" from net nodules. I've not tried it, but I
_think_ that the C# and VB.Net compilers are capable of creating netmodules.

Regards,
Will
Nov 17 '05 #2
Generally i wrote completly new project and want write it in one language,
but

- i need MC++ to interact with native code
- MC++ have few restrictions and stranges so i can't use only C++ ((

may be third party tools? C++ can generate managed OBJ files which link
links
it is very strange that asm can not be compiled into OBJ instead of C++

"William DePalo [MVP VC++]" <wi***********@mvps.org> wrote in message
news:On**************@TK2MSFTNGP15.phx.gbl...
"Dmitry Shuklin" <sh*****@bk.ru> wrote in message
news:uv**************@TK2MSFTNGP10.phx.gbl...
I am compiled my C file into IL source,
How i can compile this file back to OBJ file, not to EXE or DLL?


There is no tool from MS to accomplish this.
or, can i compile to OBJ file VB or C# code and link them with C++
managed OBJ files?


AFAIK, no tool for this, either.

<rant>
It is a shame that you can't currently do this especially since VAX/VMS
allowed modules written in disparate languages to be linked and used
together seamlessly more than two decades ago.
</rant>

It is not what you asked, but it is possible to link to "net modules" and
then to create an "assembly" from net nodules. I've not tried it, but I
_think_ that the C# and VB.Net compilers are capable of creating
netmodules.

Regards,
Will

Nov 17 '05 #3
"Dmitry Shuklin" <sh*****@bk.ru> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
- i need MC++ to interact with native code
This is what it does best.
- MC++ have few restrictions and stranges so i can't use only C++ ((
Hmm, what do you mean?
it is very strange that asm can not be compiled into OBJ instead of C++


Without going in to great detail, why don't you explain exactly what you
need to do?

Together, MC++'s "It just works" which allows mixing native and managed code
in the same MC++ module - and Platform/Invoke which permits invocation of
external functions in unmanaged DLLs provide a lot of capability.

Regards,
Will
Nov 17 '05 #4
William DePalo [MVP VC++] wrote:
I am compiled my C file into IL source,
How i can compile this file back to OBJ file, not to EXE or DLL?

There is no tool from MS to accomplish this.

I think that he probably meant compiled in mixed mode, and I think this
can be done by using extern "C" inside a C++ file and then compile the
whole thing with /clr.
Nov 17 '05 #5
"Ioannis Vranos" <iv*@remove.this.grad.com> wrote in message
news:Ou**************@TK2MSFTNGP12.phx.gbl...
I think that he probably meant compiled in mixed mode, and I think this
can be done by using extern "C" inside a C++ file and then compile the
whole thing with /clr.


Could be, which is why I mentioned IJW and asked for more details.

The only thing that is clear is that his "compile back" is at least a
problematic usage of the language if not a problematic request in its own
right. :-)

Regards.
Will
Nov 17 '05 #6
>> - MC++ have few restrictions and stranges so i can't use only C++ ((

Hmm, what do you mean?
it is very strange that asm can not be compiled into OBJ instead of C++


- i already wrote this as separate message to this group
System.TypeLoadException: Method GetObjectData in type
MyProj.Runtime.NativeHandle from assembly MyProj.Runtime does not have an
implementation. without reasonable motive

- can't code private inheritance of interface class MyClass :private
IMyInterface, but when IMyIterface marked as private its defenition is
absent in assembly metadata, but inheritance still stays public - assembly
fails to load ((

not so huge

- cant implement interface with property name == class name

- can't directly override Finalize, when implementing ~__dtor compiler makes
reference to MSVCRT71, i don't want install to clients this dll only because
of dtors (C# and VB dont use __CxxUnwind ... )

- cant mark native class as public or private, strange, but native classes
becames public

- the same with all native data types or functions. - i understand why MS
need describe them in metadata, but why public ? (((

and many small issues, even dont want to recall



Nov 17 '05 #7
"Dmitry Shuklin" <sh*****@bk.ru> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
- i already wrote this as separate message to this group
System.TypeLoadException: Method GetObjectData in type
MyProj.Runtime.NativeHandle from assembly MyProj.Runtime does not have an
implementation. without reasonable motive

- can't code private inheritance of interface class MyClass :private
IMyInterface, but when IMyIterface marked as private its defenition is
absent in assembly metadata, but inheritance still stays public - assembly
fails to load ((

not so huge

- cant implement interface with property name == class name

- can't directly override Finalize, when implementing ~__dtor compiler
makes reference to MSVCRT71, i don't want install to clients this dll only
because of dtors (C# and VB dont use __CxxUnwind ... )

- cant mark native class as public or private, strange, but native classes
becames public

- the same with all native data types or functions. - i understand why MS
need describe them in metadata, but why public ? (((

and many small issues, even dont want to recall


Probably my problem but I have no idea what the heck you are talking about.
I'll bow out of this thread now ...

Regards,
Will
Nov 17 '05 #8

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

Similar topics

9
by: Collin VanDyck | last post by:
I have a basic understanding of this, so forgive me if I am overly simplistic in my explanation of my problem.. I am trying to get a Java/Xalan transform to pass through a numeric character...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
0
by: Thomas Scheffler | last post by:
Hi, I runned in trouble using XALAN for XSL-Transformation. The following snipplet show what I mean: <a href="http://blah.com/?test=test&amp;test2=test2">Test1&amp;</a> <a...
4
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
4
by: johkar | last post by:
When the output method is set to xml, even though I have CDATA around my JavaScript, the operaters of && and < are converted to XML character entities which causes errors in my JavaScript. I know...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
11
by: Jeremy | last post by:
How can one stop a browser from converting &amp; to & ? We have a textarea in our system wehre a user can type in some html code and have it saved to the database. When the data is retireved...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.