Click here to Skip to main content
15,917,456 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How should i do that? Pin
chen19-Jul-02 7:21
chen19-Jul-02 7:21 
GeneralRe: How should i do that? Pin
Christian Graus19-Jul-02 11:38
protectorChristian Graus19-Jul-02 11:38 
GeneralCreating threads Pin
Member 44967518-Jul-02 21:13
Member 44967518-Jul-02 21:13 
GeneralRe: Creating threads Pin
Mandalay18-Jul-02 21:25
Mandalay18-Jul-02 21:25 
GeneralRe: Creating threads Pin
Member 44967518-Jul-02 21:36
Member 44967518-Jul-02 21:36 
GeneralActiveX assert Pin
Jose Vicente18-Jul-02 21:09
Jose Vicente18-Jul-02 21:09 
GeneralRe: ActiveX assert Pin
includeh1018-Jul-02 23:06
includeh1018-Jul-02 23:06 
QuestionHow to use VB dll? Pin
RichardWdy18-Jul-02 21:07
RichardWdy18-Jul-02 21:07 
I have a VB dll(ActiveX dll). The project only has dll file and library file.
I used it like this:
typedef VOID (*VTPROC)(LPTSTR);
void MyProc()
{
HINSTANCE hinstLib;
VTPROC ProcAdd;
BOOL fFreeResult, fRunTimeLinkSuccess = FALSE;

// Get a handle to the DLL module.
hinstLib = LoadLibrary("VTProj");
// If the handle is valid, try to get the function address.
if (hinstLib != NULL)
{
ProcAdd = (VTPROC)GetProcAddress(hinstLib, "Initialize");
// If the function address is valid, call the function.
if (fRunTimeLinkSuccess = (ProcAdd != NULL))
(ProcAdd) ("message via DLL function\n");
// Free the DLL module.
fFreeResult = FreeLibrary(hinstLib);
}
// If unable to call the DLL function, use an alternative.
if (! fRunTimeLinkSuccess)
printf("message via alternative method\n");
}
The ProcAdd was always NULL.
Could anyone help me solve the problem?
Thanks.


No pains, no gains.
AnswerRe: How to use VB dll? Pin
18-Jul-02 23:36
suss18-Jul-02 23:36 
GeneralRe: How to use VB dll? Pin
RichardWdy19-Jul-02 0:25
RichardWdy19-Jul-02 0:25 
Generalmulti-select in CTreeCtrl Pin
Roman Nurik18-Jul-02 20:35
Roman Nurik18-Jul-02 20:35 
GeneralRe: multi-select in CTreeCtrl Pin
Mike Upton18-Jul-02 22:18
Mike Upton18-Jul-02 22:18 
GeneralRe: multi-select in CTreeCtrl Pin
Xiao-heihei18-Jul-02 22:47
sussXiao-heihei18-Jul-02 22:47 
GeneralRe: multi-select in CTreeCtrl Pin
Xiao-heihei18-Jul-02 22:50
sussXiao-heihei18-Jul-02 22:50 
GeneralRe: multi-select in CTreeCtrl Pin
Xiao-heihei18-Jul-02 22:50
sussXiao-heihei18-Jul-02 22:50 
GeneralRe: multi-select in CTreeCtrl Pin
Tibor Blazko18-Jul-02 23:02
Tibor Blazko18-Jul-02 23:02 
GeneralDownloading file Pin
Anonymous18-Jul-02 19:54
Anonymous18-Jul-02 19:54 
GeneralRe: Downloading file Pin
Roman Nurik18-Jul-02 20:33
Roman Nurik18-Jul-02 20:33 
GeneralRe: Downloading file Pin
Anonymous18-Jul-02 21:13
Anonymous18-Jul-02 21:13 
GeneralRe: Downloading file Pin
Scott H. Settlemier19-Jul-02 7:23
Scott H. Settlemier19-Jul-02 7:23 
GeneralRe: Downloading file Pin
Michael Dunn19-Jul-02 16:54
sitebuilderMichael Dunn19-Jul-02 16:54 
GeneralSHFileOperation failed, why. Pin
ttzzgg_8071318-Jul-02 19:47
ttzzgg_8071318-Jul-02 19:47 
GeneralRe: SHFileOperation failed, why. Pin
Mike Upton18-Jul-02 22:40
Mike Upton18-Jul-02 22:40 
GeneralRe: SHFileOperation failed, why. Pin
ttzzgg_8071319-Jul-02 1:51
ttzzgg_8071319-Jul-02 1:51 
Generalwave file editing please help me Pin
anju18-Jul-02 18:10
anju18-Jul-02 18:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.