Click here to Skip to main content
16,004,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: bstr, wchar_t, and code pages Pin
Samsung15-Jan-05 12:18
Samsung15-Jan-05 12:18 
GeneralRe: bstr, wchar_t, and code pages Pin
Michael Dunn15-Jan-05 19:02
sitebuilderMichael Dunn15-Jan-05 19:02 
GeneralRe: bstr, wchar_t, and code pages Pin
Samsung16-Jan-05 3:26
Samsung16-Jan-05 3:26 
GeneralRe: bstr, wchar_t, and code pages Pin
Michael Dunn16-Jan-05 11:14
sitebuilderMichael Dunn16-Jan-05 11:14 
GeneralPhonebook style database in VC6 application Pin
Civic0615-Jan-05 4:23
Civic0615-Jan-05 4:23 
GeneralRe: Phonebook style database in VC6 application Pin
Ravi Bhavnani15-Jan-05 4:35
professionalRavi Bhavnani15-Jan-05 4:35 
GeneralWM_QUERYENDSESSION, or: Do something... Pin
S. Hepe14-Jan-05 21:41
S. Hepe14-Jan-05 21:41 
QuestionHow to load a ActiveX Dll Dynamically by specifying the dll name Pin
Virajs14-Jan-05 20:34
Virajs14-Jan-05 20:34 
Laugh | :laugh: Big Grin | :-D #include <stdio.h>

#import "C:\Project1.dll" no_namespace

class RemoteDllLoader
{
_Class1Ptr ptr;

public:
RemoteDllLoader()
{
try
{
CoInitialize(NULL);
ptr.CreateInstance(__uuidof(Class1));
}
catch(_com_error &e)
{
_bstr_t err = e.Description();
MessageBox(NULL,err,"Error",0);
}
}
~RemoteDllLoader()
{
CoUninitialize();
}
void Test()
{
ptr->Test1("Hi");
}

int Test2(int n1,int n2)
{
return ptr->Test2(n1,n2);
}

};

this is the code that i used to load an activex dll.but I want to load a particular dll by specifying it dll name given by a parameter.Can it be possible? I appreciate any possible answer.Thnxs

Viraj Siriwardana
GeneralNew to programming/c++ Pin
Stan++14-Jan-05 19:53
Stan++14-Jan-05 19:53 
GeneralRe: New to programming/c++ Pin
imyevv14-Jan-05 20:32
imyevv14-Jan-05 20:32 
GeneralRe: New to programming/c++ Pin
Stan++15-Jan-05 9:06
Stan++15-Jan-05 9:06 
GeneralRe: New to programming/c++ Pin
markkuk15-Jan-05 1:34
markkuk15-Jan-05 1:34 
GeneralRe: New to programming/c++ Pin
Stan++15-Jan-05 9:03
Stan++15-Jan-05 9:03 
GeneralRe: New to programming/c++ Pin
Maximilien15-Jan-05 1:52
Maximilien15-Jan-05 1:52 
GeneralRe: New to programming/c++ Pin
Stan++15-Jan-05 9:09
Stan++15-Jan-05 9:09 
GeneralRe: New to programming/c++ Pin
Vivi Chellappa15-Jan-05 14:26
professionalVivi Chellappa15-Jan-05 14:26 
GeneralDialog Issues (VS bug??) Pin
LighthouseJ14-Jan-05 19:24
LighthouseJ14-Jan-05 19:24 
GeneralRe: Dialog Issues (VS bug??) Pin
Brad Bruce15-Jan-05 1:49
Brad Bruce15-Jan-05 1:49 
GeneralRe: Dialog Issues (VS bug??) Pin
LighthouseJ15-Jan-05 2:45
LighthouseJ15-Jan-05 2:45 
GeneralRe: Dialog Issues (VS bug??) Pin
peterchen16-Jan-05 19:05
peterchen16-Jan-05 19:05 
GeneralRe: Dialog Issues (VS bug??) Pin
LighthouseJ17-Jan-05 2:28
LighthouseJ17-Jan-05 2:28 
Generalhiding Files/Folders Help! Pin
kshet2614-Jan-05 19:10
kshet2614-Jan-05 19:10 
GeneralRe: hiding Files/Folders Help! Pin
Spiritofamerica15-Jan-05 10:30
Spiritofamerica15-Jan-05 10:30 
GeneralHelp Needed to write WDM Drivers for ISA Bus Pin
Member 163134214-Jan-05 18:59
Member 163134214-Jan-05 18:59 
GeneralRe: Help Needed to write WDM Drivers for ISA Bus Pin
Branislav14-Jan-05 21:41
Branislav14-Jan-05 21:41 

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.