By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,191 Members | 818 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,191 IT Pros & Developers. It's quick & easy.

How to export a string in DLL?

P: n/a
Hi All,

I have learned a number of demos of DLL creating, but all demos showed
only how to export integer in DLL. What I need is to wrap my new HASH
into a DLL that needs to export a string to APP. Simply speaking, my
hash in C looks like:

char *myHash(char *hashResult)
return hashResult;

and in C++ looks like:

class funHash
char *hashResult;
void doHash(char *mesg);
void funHash::doHash(char *mesg)

Whatever, I need my Application to receive the hashResult. Then, while
I made my funhash.dll, I tried to export the string of hashResult with:

char *myDLL::GetHashVal()
return hashResult;
My VC++ 6.0 did not take this kind of return. I knew people succeeded
at exporting integer by simply doing *return*. Anybody can help me out
at this string exporting? Thanks a lot!


Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
The C++ language does not support DLL's. VC++ is a particular vender's
implementation of C++ and thus discussion about it specifically is off
topic in this newsgroup. This newsgroup is about the C++ langauge


Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.