Hi Sorry for the top-pos (I can't be bothered to plug in a mouse to my laptop).
Have a look in MSDN at LoadLibrary. Then use a factory class to create you objects dynamically. If you want details, let me know. Regards Paul Paul Grenyer Email: [EMAIL PROTECTED] Web: http://www.paulgrenyer.co.uk Have you met Aeryn: http://www.paulgrenyer.co.uk/aeryn? ----- Original Message ----- From: "Divya Rathore" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, February 06, 2005 8:27 PM Subject: [msvc] DLL (dynamic loading) > Hi! Everybody, > > Could somebody suggest me how to dynamically load > a class from a dll in my app? I am working under the > constraint that: > > 1. "the main program does not have access to either > the .cpp, the .obj or .lib files of the class to > import/export" > 2. I DO HAVE the dll's header file. > > I am quoting point-1 above from a querry/comment to > following www.codeguru.com article: > > "Explicitly Linking to Classes in DLL's" > http://www.codeguru.com/Cpp/W-P/dll/importexportissues/article.php/c123/ > > QUERRY/COMMENT to above- > "!! doesn't work in a real context !!" > http://www.codeguru.com/Cpp/W-P/dll/importexportissues/comments.php/c123/?thread=2106 > > > warm regards, > - Divya Rathore > www.ryze.com/go/divyarathore > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > > _______________________________________________ > msvc mailing list > [EMAIL PROTECTED] > See http://beginthread. commailmanlistinfomsvc_beginthread.zl6forsubscriptionchanges,andlistarchive. > _______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
