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

C / C++ / MFC

 
GeneralRe: Problem with dll... Pin
CPallini16-Feb-09 7:38
mveCPallini16-Feb-09 7:38 
GeneralRe: Problem with dll... Pin
regnwald16-Feb-09 18:44
regnwald16-Feb-09 18:44 
GeneralRe: Problem with dll... Pin
CPallini16-Feb-09 21:34
mveCPallini16-Feb-09 21:34 
GeneralRe: Problem with dll... Pin
CPallini16-Feb-09 21:44
mveCPallini16-Feb-09 21:44 
AnswerRe: Problem with dll... Pin
Richard Andrew x6416-Feb-09 16:37
professionalRichard Andrew x6416-Feb-09 16:37 
GeneralRe: Problem with dll... Pin
Member Ártemis16-Feb-09 23:04
Member Ártemis16-Feb-09 23:04 
GeneralRe: Problem with dll... Pin
Richard Andrew x6417-Feb-09 2:00
professionalRichard Andrew x6417-Feb-09 2:00 
GeneralRe: Problem with dll... Pin
Member Ártemis17-Feb-09 4:56
Member Ártemis17-Feb-09 4:56 
I think my DLL code is correct, because I used the DLL in a c# project and it loaded and worked just fine.
My problem is to load in a c++ project.
I read that if we want to use a DLL without de lib file, we must paste de DLL file in the debug project folder (and I did it, because I want it to work without the code files).
Then I used
HINSTANCE myDll = LoadLibrary((LPCWSTR)"Testing.dll");
if(myDll)
Console::WriteLine("DLL loaded \n");
else
Console::WriteLine("DLL failed to load \n");

it always "DLL failed to load ", it doesn't return any error.
Did I forgot something, or am I doing something wrong? (I'm starting with c++, so possible I'm making some mistake).

Thanks.
GeneralRe: Problem with dll... Pin
Richard Andrew x6417-Feb-09 12:33
professionalRichard Andrew x6417-Feb-09 12:33 
GeneralRe: Problem with dll... Pin
Member Ártemis17-Feb-09 23:46
Member Ártemis17-Feb-09 23:46 
QuestionConvert const string& to CByteArray ? Pin
mmayur16-Feb-09 5:27
mmayur16-Feb-09 5:27 
AnswerRe: Convert const string& to CByteArray ? Pin
CPallini16-Feb-09 8:05
mveCPallini16-Feb-09 8:05 
GeneralRe: Convert const string& to CByteArray ? Pin
mmayur16-Feb-09 8:46
mmayur16-Feb-09 8:46 
GeneralRe: Convert const string& to CByteArray ? Pin
CPallini16-Feb-09 9:46
mveCPallini16-Feb-09 9:46 
GeneralRe: Convert const string& to CByteArray ? Pin
mmayur16-Feb-09 10:02
mmayur16-Feb-09 10:02 
GeneralRe: Convert const string& to CByteArray ? Pin
CPallini16-Feb-09 10:51
mveCPallini16-Feb-09 10:51 
GeneralRe: Convert const string& to CByteArray ? Pin
mmayur16-Feb-09 11:27
mmayur16-Feb-09 11:27 
GeneralRe: Convert const string& to CByteArray ? Pin
mmayur17-Feb-09 9:15
mmayur17-Feb-09 9:15 
AnswerRe: Convert const string& to CByteArray ? Pin
frx9616-Feb-09 16:29
frx9616-Feb-09 16:29 
Questionneed a minor help in my program [modified] Pin
tksrules16-Feb-09 4:20
tksrules16-Feb-09 4:20 
GeneralRe: need a minor help in my program Pin
Perspx16-Feb-09 4:26
Perspx16-Feb-09 4:26 
QuestionRe: need a minor help in my program Pin
David Crow16-Feb-09 6:18
David Crow16-Feb-09 6:18 
AnswerRe: need a minor help in my program Pin
tksrules16-Feb-09 6:22
tksrules16-Feb-09 6:22 
GeneralRe: need a minor help in my program Pin
David Crow16-Feb-09 6:39
David Crow16-Feb-09 6:39 
GeneralRe: need a minor help in my program Pin
tksrules16-Feb-09 6:42
tksrules16-Feb-09 6:42 

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.