473,386 Members | 1,812 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,386 software developers and data experts.

Returning user defined types from DLL

Hi,
I have an application that uses my DLL.

I want the DLL to return a list type object to the application that
calls it:
list<TypeProc() {
list<Typex;
return x;
}

It pass the compliation stage but on runtime it gives me heap error.
Is it possible to do so ?

Oct 19 '06 #1
1 1293
* Shlomy Shivek:
Hi,
I have an application that uses my DLL.

I want the DLL to return a list type object to the application that
calls it:
list<TypeProc() {
list<Typex;
return x;
}

It pass the compliation stage but on runtime it gives me heap error.
Is it possible to do so ?
Dynamic libraries are outside the scope of the language definition, and
thus partially off-topic in this group.

The short answer is, however, that you must ensure that memory allocated
by some allocator A is also deallocated by that very same allocator A.

How to accomplish that for DLLs is unfortunately off-topic in this group
(ask in a Windows programming group).

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Oct 19 '06 #2

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

Similar topics

2
by: Paul | last post by:
Hi, Please somebody clarify this following for me: I am writing my own data packets to a binary file. Each packet I write to the file is of equal length and format. For example each packet...
1
by: Guilherme Pinto | last post by:
Hello. I am reading the book written by Bjarne Stroustrup called " The C++ Programming Language - Special Edition" and had a doubt which a think is really important to distinguish between the...
4
by: grahamo | last post by:
Hi, I am trying to use STL copy routine to stream the my user defined type to std out. I am using a standard ostream_iterator object in conjunction with my type (called employee) which has ...
3
by: Debo | last post by:
Hello all, I've got a fairly basic question about STL sets and operator overloading in general. I'm working with a data type that's essentially a 2-element vector. A simplified (hacked)...
4
by: Sameer Deshpande | last post by:
How do I create and return user defined data types in DB2. F.ex In Oracle I can create a user define datatype and return this data type from stored function. How can I do the same in DB2? ...
2
by: Paolo Nunberg | last post by:
Hi, I am a newbie to Web Service and I cannot figure how to share a user defined type between a Windows application and a Web Service. I have a Windows Forms application and a Web Service, both...
2
by: Les Stockton | last post by:
In VB6 you had a Type and End Type to define your own data types. Are the only ways to do this in VB.Net with enums, struct and class. How's the best way to define user defined types?
2
by: Jonathan Daugherty | last post by:
Hello, I'm trying to write a PL/PgSQL function whose sole parameter is an array whose element type is a type that I've created. For example: CREATE TYPE test_type AS (x bigint, y bigint); ...
27
by: Randy | last post by:
Is there a way to override operators for user-defined types (e.g., typedefs) rather than class types? I'm trying to override the extractor operator for a user-defined enumeration type but...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.