Click here to Skip to main content
15,910,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get image of toolbar button Pin
User 665830-Mar-03 7:15
User 665830-Mar-03 7:15 
GeneralClearing a vector Pin
Makover30-Mar-03 4:41
Makover30-Mar-03 4:41 
GeneralRe: Clearing a vector Pin
Chris Losinger30-Mar-03 4:57
professionalChris Losinger30-Mar-03 4:57 
GeneralRe: Clearing a vector Pin
Makover30-Mar-03 5:18
Makover30-Mar-03 5:18 
GeneralRe: Clearing a vector Pin
Joaquín M López Muñoz30-Mar-03 5:35
Joaquín M López Muñoz30-Mar-03 5:35 
GeneralRe: Clearing a vector Pin
Chris Losinger30-Mar-03 5:37
professionalChris Losinger30-Mar-03 5:37 
GeneralRe: Clearing a vector Pin
Makover30-Mar-03 5:50
Makover30-Mar-03 5:50 
Generalfunction from dll Pin
_crs_30-Mar-03 4:41
_crs_30-Mar-03 4:41 
Hi,
My problem :
I want to call a function from a DLL and isn't working
the function is :


// this code is from dll ......
DWORD test(DWORD x)
{
if (x==1)
MessageBox(NULL, "work DLL", "working", MB_OK);
return 0;
}
// ............

in my program I wrote :

typedef DWORD (*LPtest)(DWORD);

LPtest test = NULL;
hDll = LoadLibrary("test.dll");
test = (LPtest)GetProcAddress(hDll,"test");
DWORD a = GetLastError();

hDll is not NULL .... and ....
a is 127 ... "The specified procedure could not be found."
and if I try something like

test(1); the program gets an ACCESS VIOLATION !

please help !!!

GeneralRe: function from dll Pin
valikac30-Mar-03 5:40
valikac30-Mar-03 5:40 
GeneralRe: function from dll Pin
codeant30-Mar-03 5:41
codeant30-Mar-03 5:41 
GeneralRe: function from dll Pin
_crs_30-Mar-03 6:57
_crs_30-Mar-03 6:57 
GeneralShow New Window Pin
zeki yugnak30-Mar-03 1:25
zeki yugnak30-Mar-03 1:25 
GeneralRe: Show New Window Pin
Brian Shifrin30-Mar-03 2:22
Brian Shifrin30-Mar-03 2:22 
GeneralRe: Show New Window Pin
Ravi Bhavnani30-Mar-03 2:46
professionalRavi Bhavnani30-Mar-03 2:46 
GeneralRe: Show New Window Pin
zeki yugnak30-Mar-03 3:30
zeki yugnak30-Mar-03 3:30 
QuestionWhere's the toolbar? Pin
Vikram A Punathambekar29-Mar-03 18:25
Vikram A Punathambekar29-Mar-03 18:25 
AnswerRe: Where's the toolbar? Pin
Jibesh29-Mar-03 19:12
professionalJibesh29-Mar-03 19:12 
GeneralRe: Where's the toolbar? Pin
Vikram A Punathambekar29-Mar-03 20:14
Vikram A Punathambekar29-Mar-03 20:14 
GeneralOpenGL Pin
73Zeppelin29-Mar-03 17:03
73Zeppelin29-Mar-03 17:03 
GeneralRe: OpenGL Pin
567890123429-Mar-03 22:21
567890123429-Mar-03 22:21 
GeneralRe: OpenGL Pin
Moak30-Mar-03 2:41
Moak30-Mar-03 2:41 
GeneralRe: OpenGL [modified] Pin
Per Söderlund7-Sep-10 21:44
Per Söderlund7-Sep-10 21:44 
QuestionHelp me...How to handler errors? Pin
_skidrow_vn_29-Mar-03 16:55
_skidrow_vn_29-Mar-03 16:55 
GeneralNumber of Copies Not Working Pin
Jack Puppy29-Mar-03 15:43
Jack Puppy29-Mar-03 15:43 
GeneralRe: Number of Copies Not Working Pin
Bartosz Bien30-Mar-03 11:35
Bartosz Bien30-Mar-03 11: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.