473,473 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MSVC15 - forcing vtables into the _TEXT or _CODE segment

I am building a small memory model DOS exe (does not actually run in
dos but in a custom 16bit environment). For complex reasons I am not
allowed to have any relocatable items.

I have run into a problem where the compiler is putting my vtables
into a new segment (COMDAT_SEG1). I would like to force the compiler
to stick these into a default segment such as the _TEXT segment or
_CODE segment.

The classes are defined as far, and need to be because I need a far
'this' pointer.

Can anyone provide me with a possible solution or lead?

Thanks,

James.
Jul 22 '05 #1
2 2874
On 23 Nov 2004 21:03:22 -0800, ja**************@eracom-tech.com (James
FitzGerald) wrote in comp.lang.c++:
I am building a small memory model DOS exe (does not actually run in
dos but in a custom 16bit environment). For complex reasons I am not
allowed to have any relocatable items.

I have run into a problem where the compiler is putting my vtables
into a new segment (COMDAT_SEG1). I would like to force the compiler
to stick these into a default segment such as the _TEXT segment or
_CODE segment.

The classes are defined as far, and need to be because I need a far
'this' pointer.

Can anyone provide me with a possible solution or lead?

Thanks,

James.


You seem to have picked two highly inappropriate groups to post to.

It seems likely that DOS exe's are not really topical in a Windows
programming group, and the rest of your question is compiler specific,
not a language issue at all.

Perhaps news:comp.os.msdos.programmer could help you.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2
Thanks Jack. Google wouldn't let me, but I'll try something other
than Googles web interface.

Cheers.

Jack Klein <ja*******@spamcop.net> wrote in message news:<tv********************************@4ax.com>. ..
On 23 Nov 2004 21:03:22 -0800, ja**************@eracom-tech.com (James
FitzGerald) wrote in comp.lang.c++:
I am building a small memory model DOS exe (does not actually run in
dos but in a custom 16bit environment). For complex reasons I am not
allowed to have any relocatable items.

I have run into a problem where the compiler is putting my vtables
into a new segment (COMDAT_SEG1). I would like to force the compiler
to stick these into a default segment such as the _TEXT segment or
_CODE segment.

The classes are defined as far, and need to be because I need a far
'this' pointer.

Can anyone provide me with a possible solution or lead?

Thanks,

James.


You seem to have picked two highly inappropriate groups to post to.

It seems likely that DOS exe's are not really topical in a Windows
programming group, and the rest of your question is compiler specific,
not a language issue at all.

Perhaps news:comp.os.msdos.programmer could help you.

Jul 22 '05 #3

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

Similar topics

3
by: Stephen S M WONG | last post by:
As C++ program supports objects with constructors/destructors/methods and data items, I'll assume C++ implementation on segment model computer, like a 80286 with different access restrictions on...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
7
by: ZenRhapsody | last post by:
Are ALL methods in subclasses implemented in C# with vtables and virtual functions? I know I could test this myself, but I'm still using Express edition of 2.0, so I cannot view the optimized...
1
by: Rene | last post by:
I keep reading about this vTables and it's killing me because I am not sure what they are. I have a feeling that vTables are used when you override virtual methods or properties but I really have...
5
by: druberego | last post by:
I read google and tried to find the solution myself. YES I do know that you can get undefined references if you: a) forget to implement the code for a prototype/header file item, or b) you forget...
1
by: Ed | last post by:
I'm not sure if this is the best group to post this, but I have a question about ancient MSVC 1.5. Right now, all strings in my code, i.e. text in quotes, are put in the _DATA segment by...
8
by: raghu | last post by:
Can anyone please tell me what are the different segments in a C program? Where can I find more details regarding this? Please help. Merry Christmas and Happy New Year Regards, Raghu
4
by: jesjak | last post by:
hi all, can any one give me some explanation of "wat is .bss segment in object file" and what it will contain and difference between data segment and .bss segment.... help me.... thanks, jes
3
by: madshov | last post by:
Hi, I have the following: <start> <segment Id="AAA"> <element Id="id">1</element> <element Id="seq">122</element> <element Id="seq2" Composite="yes">
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.