What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Visual C++ 6.0 DLLs

Visual C++ 6.0 DLLs
Author: Message:
TheSteve
Full Member
***

Avatar
The Man from Japan

Posts: 179
Reputation: 23
40 / Male / Flag
Joined: Aug 2005
RE: Visual C++ 6.0 DLLs
Your function should be declared something like this

code:
int WINAPI sum (int n1, int n2)
{
    return n1+n2;
}

Do not use any form of C++ style dll exporting ( DECLSPEC_EXPORT ) as this is for C++ only. If you want to use the function in VB, the function needs to be exported by name only.

in your def file, you should have something like
code:
LIBRARY "functions"
DESCRIPTION "Some description here"
EXPORTS
    ;Explicit exports go here
    sum

If this still doesn't work, make sure that your def file has the same name as the project.

This post was edited on 09-24-2007 at 02:04 AM by TheSteve.
09-24-2007 02:01 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Visual C++ 6.0 DLLs - by Spunky on 09-21-2007 at 08:12 PM
RE: Visual C++ 6.0 DLLs - by ShawnZ on 09-21-2007 at 08:16 PM
RE: Visual C++ 6.0 DLLs - by Spunky on 09-21-2007 at 08:18 PM
RE: Visual C++ 6.0 DLLs - by vikke on 09-21-2007 at 08:32 PM
RE: Visual C++ 6.0 DLLs - by Spunky on 09-21-2007 at 08:33 PM
RE: Visual C++ 6.0 DLLs - by vikke on 09-22-2007 at 07:21 AM
RE: Visual C++ 6.0 DLLs - by Spunky on 09-22-2007 at 05:35 PM
RE: Visual C++ 6.0 DLLs - by vikke on 09-22-2007 at 05:50 PM
RE: Visual C++ 6.0 DLLs - by Mnjul on 09-22-2007 at 06:47 PM
RE: Visual C++ 6.0 DLLs - by Spunky on 09-22-2007 at 08:34 PM
RE: Visual C++ 6.0 DLLs - by vikke on 09-22-2007 at 09:42 PM
RE: Visual C++ 6.0 DLLs - by Spunky on 09-23-2007 at 12:23 AM
RE: Visual C++ 6.0 DLLs - by vikke on 09-23-2007 at 06:02 AM
RE: Visual C++ 6.0 DLLs - by TheSteve on 09-24-2007 at 02:01 AM
RE: Visual C++ 6.0 DLLs - by RaceProUK on 09-24-2007 at 10:29 PM
RE: RE: Visual C++ 6.0 DLLs - by TheSteve on 09-25-2007 at 01:09 AM
RE: RE: RE: Visual C++ 6.0 DLLs - by Verte on 09-28-2007 at 03:12 AM
RE: Visual C++ 6.0 DLLs - by Spunky on 09-24-2007 at 11:09 PM
RE: Visual C++ 6.0 DLLs - by RaceProUK on 09-27-2007 at 07:54 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On