944,057 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1304
  • C++ RSS
May 20th, 2006
0

DLL that returns a pointer

Expand Post »
I want to write a c++ code that generates a DLL, the purpose of the exported Function is to do some processing on data on the memory, the main problem here is that I want my code to return also a memory pointer, yet I don't know exactly how to do it can anyone help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bibo1978 is offline Offline
7 posts
since May 2006
May 20th, 2006
0

Re: DLL that returns a pointer

See any of these google articles. Many of them are for VB, but you can just ignore that part and read about how to write the dll.

One important point: memory cannot be allocated in a dll and deallocate it in the calling application. Special non-ansi-standard functions such as GlobalAlloc() and GlobalFree() can be used, not neither new or malloc().
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,954 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Full screen console applications
Next Thread in C++ Forum Timeline: Memory game with c++ console applicaton





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC