Click here to Skip to main content
15,891,905 members
Home / Discussions / C#
   

C#

 
GeneralRe: Exception handling problem Pin
Dan Neely26-Oct-05 2:17
Dan Neely26-Oct-05 2:17 
AnswerRe: Exception handling problem Pin
S. Senthil Kumar26-Oct-05 2:37
S. Senthil Kumar26-Oct-05 2:37 
GeneralRe: Exception handling problem Pin
Dan Neely26-Oct-05 3:21
Dan Neely26-Oct-05 3:21 
QuestionEnumConverter problem Pin
e-laj25-Oct-05 7:53
e-laj25-Oct-05 7:53 
AnswerRe: EnumConverter problem Pin
e-laj25-Oct-05 20:43
e-laj25-Oct-05 20:43 
Questionc# dlls and c++ Pin
Exen25-Oct-05 7:28
Exen25-Oct-05 7:28 
AnswerRe: c# dlls and c++ Pin
Tom Larsen25-Oct-05 7:56
Tom Larsen25-Oct-05 7:56 
GeneralRe: c# dlls and c++ Pin
Exen25-Oct-05 9:01
Exen25-Oct-05 9:01 
I am using .NET
I am using the code below i simplifed everything but it is not working

#include <windows.h>
#include <iostream>
#include <stdio.h>
#include <conio.h>
#define MAXMODULE 50
using namespace std;

typedef int (WINAPI*cfunc)();


cfunc tests;

int main() {

HINSTANCE hLib=LoadLibrary("basic.dll");


if(hLib==NULL) {

cout << "cant load dll" << endl;
getch();
return 0;
}

char mod[MAXMODULE];

GetModuleFileName((HMODULE)hLib, (LPTSTR)mod, MAXMODULE);
cout << "dell loaded" << mod << endl;


tests=(cfunc)GetProcAddress((HMODULE)hLib, "test");


if(tests==NULL) {

cout << "cant load functions" << endl;
FreeLibrary((HMODULE)hLib);
getch();
return 0;
}

int x = tests();

cout<
GeneralRe: c# dlls and c++ Pin
Rob Graham25-Oct-05 18:15
Rob Graham25-Oct-05 18:15 
Questionmacro building Pin
tridis25-Oct-05 7:18
tridis25-Oct-05 7:18 
AnswerRe: macro building Pin
Dan Neely25-Oct-05 8:01
Dan Neely25-Oct-05 8:01 
GeneralRe: macro building Pin
tridis26-Oct-05 14:18
tridis26-Oct-05 14:18 
QuestionIs it possible to copy or delete or move a locked file? Pin
Sasuko25-Oct-05 7:16
Sasuko25-Oct-05 7:16 
AnswerRe: Is it possible to copy or delete or move a locked file? Pin
Tom Larsen25-Oct-05 7:48
Tom Larsen25-Oct-05 7:48 
GeneralRe: Is it possible to copy or delete or move a locked file? Pin
Sasuko25-Oct-05 12:48
Sasuko25-Oct-05 12:48 
GeneralRe: Is it possible to copy or delete or move a locked file? Pin
Tom Larsen26-Oct-05 5:00
Tom Larsen26-Oct-05 5:00 
QuestionI thought my problem is simple, please help Pin
Gulfraz Khan25-Oct-05 6:11
Gulfraz Khan25-Oct-05 6:11 
AnswerRe: I thought my problem is simple, please help Pin
Rob Philpott25-Oct-05 8:17
Rob Philpott25-Oct-05 8:17 
QuestionProblem with Memory Stream Code Pin
farhan197625-Oct-05 5:25
farhan197625-Oct-05 5:25 
AnswerRe: Problem with Memory Stream Code Pin
CiNN25-Oct-05 10:41
CiNN25-Oct-05 10:41 
AnswerRe: Problem with Memory Stream Code Pin
farhan197625-Oct-05 18:31
farhan197625-Oct-05 18:31 
GeneralRe: Problem with Memory Stream Code Pin
CiNN26-Oct-05 2:02
CiNN26-Oct-05 2:02 
QuestionDirectX and TV Pin
Anonymous25-Oct-05 4:21
Anonymous25-Oct-05 4:21 
QuestionDirectX and TV Pin
Anonymous25-Oct-05 4:20
Anonymous25-Oct-05 4:20 
QuestionMessageBox Pin
zaboboa25-Oct-05 3:58
zaboboa25-Oct-05 3:58 

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.