Click here to Skip to main content
15,921,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Code Pin
Christian Graus23-Nov-04 8:52
protectorChristian Graus23-Nov-04 8:52 
GeneralRe: C++ Code Pin
Flame Gitsnik23-Nov-04 10:27
Flame Gitsnik23-Nov-04 10:27 
GeneralRe: C++ Code Pin
David Crow23-Nov-04 9:12
David Crow23-Nov-04 9:12 
Generalplease help Pin
swatgodjr23-Nov-04 8:28
swatgodjr23-Nov-04 8:28 
GeneralRe: please help Pin
David Crow23-Nov-04 9:18
David Crow23-Nov-04 9:18 
GeneralRe: please help Pin
Swatgod23-Nov-04 19:25
Swatgod23-Nov-04 19:25 
GeneralRe: please help Pin
David Crow1-Dec-04 2:35
David Crow1-Dec-04 2:35 
GeneralRe: please help Pin
Swatgod1-Dec-04 9:42
Swatgod1-Dec-04 9:42 
here is the code of the main application. the first 2 functiosn that i have seen went through fine but when it loads the 3rd which is the one that needs input from other 2, it crashes.


#include <stdio.h>
#include <windows.h>

typedef void (*MYPROC)(LPTSTR);

void main()
{
HINSTANCE hinstLib;
MYPROC ProcAdd;
BOOL fFreeResult, fRunTimeLinkSuccess = FALSE;

hinstLib = LoadLibrary("name");

if(hinstLib != NULL)
{
ProcAdd = (MYPROC) GetProcAddress(hinstLib, "firstn");

if(fRunTimeLinkSuccess = (ProcAdd != NULL))
(ProcAdd)("firstn");

ProcAdd = (MYPROC) GetProcAddress(hinstLib, "lastn");

if(fRunTimeLinkSuccess = (ProcAdd != NULL))
(ProcAdd)("lastn");

ProcAdd = (MYPROC) GetProcAddress(hinstLib, "firstlast");

if(fRunTimeLinkSuccess = (ProcAdd != NULL))
(ProcAdd)("firstlast");

fFreeResult = FreeLibrary(hinstLib);
}

if(! fRunTimeLinkSuccess)
printf("--loading of main dll failed--");
}

the more you learn the less you know, no one is truely a master. cause the more you seek to be the master the less of a master you become.
GeneralRe: please help Pin
David Crow1-Dec-04 9:49
David Crow1-Dec-04 9:49 
GeneralRe: please help Pin
Swatgod2-Dec-04 8:28
Swatgod2-Dec-04 8:28 
GeneralRe: please help Pin
David Crow2-Dec-04 8:41
David Crow2-Dec-04 8:41 
GeneralRe: please help Pin
Swatgod3-Dec-04 0:31
Swatgod3-Dec-04 0:31 
GeneralRe: please help Pin
David Crow3-Dec-04 3:04
David Crow3-Dec-04 3:04 
GeneralRe: please help Pin
swatgodjr29-Nov-04 6:19
swatgodjr29-Nov-04 6:19 
GeneralUsing MFC With C++ Pin
BRIMID23-Nov-04 8:09
BRIMID23-Nov-04 8:09 
GeneralRe: Using MFC With C++ Pin
toxcct23-Nov-04 8:14
toxcct23-Nov-04 8:14 
GeneralRe: Using MFC With C++ Pin
BRIMID23-Nov-04 8:24
BRIMID23-Nov-04 8:24 
GeneralRe: Using MFC With C++ Pin
act_x23-Nov-04 9:00
act_x23-Nov-04 9:00 
GeneralRe: Using MFC With C++ Pin
BRIMID23-Nov-04 9:16
BRIMID23-Nov-04 9:16 
GeneralRe: Using MFC With C++ Pin
toxcct23-Nov-04 21:31
toxcct23-Nov-04 21:31 
GeneralRe: Using MFC With C++ Pin
David Crow23-Nov-04 9:18
David Crow23-Nov-04 9:18 
GeneralA strange error with CreateThread Pin
lillah23-Nov-04 7:17
lillah23-Nov-04 7:17 
GeneralRe: A strange error with CreateThread Pin
gamitech23-Nov-04 7:47
gamitech23-Nov-04 7:47 
GeneralRe: A strange error with CreateThread Pin
Blake Miller23-Nov-04 9:08
Blake Miller23-Nov-04 9:08 
Generaltraits? still don't get it Pin
...---...23-Nov-04 6:35
...---...23-Nov-04 6:35 

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.