Click here to Skip to main content
15,920,031 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Context Menu and displaying menu on screen Pin
flippydeflippydebop23-Mar-07 8:39
flippydeflippydebop23-Mar-07 8:39 
Questionany fn to know the memoru allocated by SafeArrayCreate() Pin
GANsJob23-Mar-07 7:24
GANsJob23-Mar-07 7:24 
AnswerRe: any fn to know the memoru allocated by SafeArrayCreate() Pin
prasad_som23-Mar-07 20:44
prasad_som23-Mar-07 20:44 
Questioncan't retrieve the string from string table using loadstring() Pin
GANsJob23-Mar-07 7:16
GANsJob23-Mar-07 7:16 
AnswerRe: can't retrieve the string from string table using loadstring() Pin
perle123-Mar-07 14:22
perle123-Mar-07 14:22 
Questionconfusing problem Pin
swatgodjr23-Mar-07 6:58
swatgodjr23-Mar-07 6:58 
AnswerRe: confusing problem Pin
Christian Graus23-Mar-07 7:10
protectorChristian Graus23-Mar-07 7:10 
GeneralRe: confusing problem Pin
swatgodjr23-Mar-07 7:42
swatgodjr23-Mar-07 7:42 
here is the function that has the problem:
typedef void (*MYPROC)(LPTSTR);<br />
	MYPROC ProcAdd;<br />
	BOOL fRunTimeLinkSuccess;<br />
	Load *a;<br />
	Loader *b;<br />
<br />
	a->Hide(load_window);<br />
	b->Hide(loader_window);<br />
<br />
	hinstLib = LoadLibrary(program);<br />
	if(hinstLib != NULL)<br />
	{<br />
		ProcAdd = (MYPROC)GetProcAddress(hinstLib, "?prog_start@@YAHXZ");<br />
		if(fRunTimeLinkSuccess = (ProcAdd != NULL))<br />
		{<br />
			(ProcAdd)("?prog_start@@YAHXZ");<br />
		}<br />
		else{<br />
		MessageBox(m_hWnd, "Program Failed to Load", "Fail", MB_ICONSTOP);<br />
		<br />
		EndDialog(m_hWnd, IDOK);<br />
		}<br />
	}<br />
	else{<br />
		MessageBox(m_hWnd, "Loader Failed to open program", "Fail", MB_ICONSTOP);<br />
		reportError();<br />
	}<br />
	fFreeResult = FreeLibrary(hinstLib);<br />
	<br />
	b->Show(loader_window);<br />
	a->Show(load_window);

not exactly the best way to load a dll file but it works for what i was doing right now to test stuff with. loader_window is the one that can not be seen, it is a hwnd variable to one of the windows in my program.

and here is the code where i have everything being included:
#ifndef MAIN_H<br />
#define MAIN_H<br />
<br />
#include <windows.h><br />
#include <sstream><br />
#include "..\common\win32.h"<br />
#include "resource.h"<br />
#include "loader.h"<br />
#include "load.h"<br />
#include "help.h"<br />
#include "version.h"<br />
<br />
#endif

AnswerRe: confusing problem Pin
Phil J Pearson23-Mar-07 7:38
Phil J Pearson23-Mar-07 7:38 
AnswerRe: confusing problem Pin
Sameerkumar Namdeo23-Mar-07 22:22
Sameerkumar Namdeo23-Mar-07 22:22 
GeneralRe: confusing problem Pin
swatgodjr24-Mar-07 2:52
swatgodjr24-Mar-07 2:52 
GeneralRe: confusing problem Pin
Sameerkumar Namdeo25-Mar-07 16:48
Sameerkumar Namdeo25-Mar-07 16:48 
QuestionInitializtion Code for Dialog Boxes Pin
gunner_uk200023-Mar-07 4:48
gunner_uk200023-Mar-07 4:48 
AnswerRe: Initializtion Code for Dialog Boxes Pin
led mike23-Mar-07 4:52
led mike23-Mar-07 4:52 
AnswerRe: Initializtion Code for Dialog Boxes Pin
Ravi Bhavnani23-Mar-07 6:33
professionalRavi Bhavnani23-Mar-07 6:33 
GeneralRe: Initializtion Code for Dialog Boxes Pin
Phil J Pearson23-Mar-07 7:40
Phil J Pearson23-Mar-07 7:40 
QuestionDifferent question....???? Pin
pblais23-Mar-07 3:27
pblais23-Mar-07 3:27 
AnswerRe: Different question....???? Pin
Chris Losinger23-Mar-07 3:42
professionalChris Losinger23-Mar-07 3:42 
GeneralRe: Different question....???? Pin
pblais23-Mar-07 4:29
pblais23-Mar-07 4:29 
GeneralRe: Different question....???? Pin
Chris Losinger23-Mar-07 4:48
professionalChris Losinger23-Mar-07 4:48 
AnswerRe: Different question....???? Pin
Maximilien23-Mar-07 4:43
Maximilien23-Mar-07 4:43 
AnswerRe: Different question....???? Pin
Phil J Pearson23-Mar-07 7:44
Phil J Pearson23-Mar-07 7:44 
QuestionPassing a 2dimension array to a function without specifying number of elements.. Pin
subburamKR23-Mar-07 3:13
subburamKR23-Mar-07 3:13 
AnswerRe: Passing a 2dimension array to a function without specifying number of elements.. Pin
CPallini23-Mar-07 3:17
mveCPallini23-Mar-07 3:17 
AnswerRe: Passing a 2dimension array to a function without specifying number of elements.. Pin
toxcct23-Mar-07 3:18
toxcct23-Mar-07 3:18 

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.