Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Global variable Pin
Albert Holguin13-Jan-12 12:05
professionalAlbert Holguin13-Jan-12 12:05 
QuestionRe: Global variable Pin
1.fcb191314-Jan-12 0:35
1.fcb191314-Jan-12 0:35 
AnswerRe: Global variable Pin
CPallini14-Jan-12 2:21
mveCPallini14-Jan-12 2:21 
GeneralRe: Global variable Pin
1.fcb191314-Jan-12 3:04
1.fcb191314-Jan-12 3:04 
GeneralRe: Global variable Pin
CPallini14-Jan-12 4:19
mveCPallini14-Jan-12 4:19 
QuestionHow to respond to WSAETIMEDOUT in CSsyncsocket::onconnect Pin
ForNow13-Jan-12 7:07
ForNow13-Jan-12 7:07 
AnswerRe: How to respond to WSAETIMEDOUT in CSsyncsocket::onconnect Pin
Chris Meech13-Jan-12 7:22
Chris Meech13-Jan-12 7:22 
Questiondll loading itself launching the application Pin
appollosputnik12-Jan-12 2:42
appollosputnik12-Jan-12 2:42 
Hmmm | :| Dear Friends
I am loading a dll from another exe mfc application. for that i have exposed one api 'runAppli' in the dll as extern "C". Then I am loading the dll using LoadLibrary. By loading the dll itself the dll application is launched. I am surprised. I should call the api 'runAppli' and then the application should launch but its not happening. How come it is happening please give some suggestions.

[code]
// in the all
extern "C" BOOL __declspec(dllexport) runAppli(CString filename)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
if(filename.IsEmpty())
return false;
view->ShowWindow(SW_SHOW);
view->loadProfile(filename);
view->domainSetUpForProfile();
view->drawLines();
view->drawArcs();
view->drawProfile();
return true;
}

//in the client exe application

void CClientRevolutionProjDlg::OnBnClickedButton1()
{
HINSTANCE hinstLib;
hinstLib = LoadLibrary(L"C:\\Users\\sujan.dasmahapatra\\Documents\\Projects\\Bhagavan_SurfaceRevolution\\RevolutionProj\\debug\\RevolutionProj.dll");
}
[\code]

By simply loading the dll the dll application is launching.. why ??? Thanks Sujan
AnswerRe: dll loading itself launching the application Pin
Chris Losinger12-Jan-12 3:50
professionalChris Losinger12-Jan-12 3:50 
AnswerRe: dll loading itself launching the application Pin
Randor 12-Jan-12 13:31
professional Randor 12-Jan-12 13:31 
QuestionLearn MFC Pin
columbos1492711-Jan-12 19:22
columbos1492711-Jan-12 19:22 
AnswerRe: Learn MFC Pin
«_Superman_»11-Jan-12 19:46
professional«_Superman_»11-Jan-12 19:46 
QuestionProper response From WSAEWOULDBLOCK return code From CAsyncSocket::Connect Pin
ForNow11-Jan-12 10:24
ForNow11-Jan-12 10:24 
AnswerRe: Proper response From WSAEWOULDBLOCK return code From CAsyncSocket::Connect Pin
CPallini11-Jan-12 10:45
mveCPallini11-Jan-12 10:45 
GeneralRe: Proper response From WSAEWOULDBLOCK return code From CAsyncSocket::Connect Pin
ForNow11-Jan-12 14:36
ForNow11-Jan-12 14:36 
GeneralRe: Proper response From WSAEWOULDBLOCK return code From CAsyncSocket::Connect Pin
CPallini11-Jan-12 22:08
mveCPallini11-Jan-12 22:08 
GeneralRe: Proper response From WSAEWOULDBLOCK return code From CAsyncSocket::Connect Pin
ForNow12-Jan-12 12:19
ForNow12-Jan-12 12:19 
QuestionWindow does not restore properly. Pin
cpp_prgmer11-Jan-12 5:53
cpp_prgmer11-Jan-12 5:53 
AnswerRe: Window does not restore properly. Pin
jkirkerx13-Jan-12 10:53
professionaljkirkerx13-Jan-12 10:53 
QuestionClosing Program, shutting down c++ win32. Pin
jkirkerx10-Jan-12 10:22
professionaljkirkerx10-Jan-12 10:22 
AnswerRe: Closing Program, shutting down c++ win32. Pin
Luc Pattyn10-Jan-12 10:24
sitebuilderLuc Pattyn10-Jan-12 10:24 
GeneralRe: Closing Program, shutting down c++ win32. Pin
jkirkerx10-Jan-12 11:27
professionaljkirkerx10-Jan-12 11:27 
GeneralRe: Closing Program, shutting down c++ win32. Pin
Eugen Podsypalnikov11-Jan-12 4:15
Eugen Podsypalnikov11-Jan-12 4:15 
GeneralRe: Closing Program, shutting down c++ win32. Pin
jkirkerx11-Jan-12 6:33
professionaljkirkerx11-Jan-12 6:33 
AnswerRe: Closing Program, shutting down c++ win32. Pin
Mohibur Rashid10-Jan-12 14:11
professionalMohibur Rashid10-Jan-12 14:11 

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.