Click here to Skip to main content
15,915,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create a dialog like this? Pin
Prakash Nadar12-Dec-04 17:21
Prakash Nadar12-Dec-04 17:21 
GeneralRe: How to create a dialog like this? Pin
Arcrest13-Dec-04 17:22
Arcrest13-Dec-04 17:22 
Questiondefinition file? Pin
nm_11412-Dec-04 11:48
nm_11412-Dec-04 11:48 
AnswerRe: definition file? Pin
Jack Puppy12-Dec-04 13:38
Jack Puppy12-Dec-04 13:38 
AnswerRe: definition file? Pin
bmzhao12-Dec-04 14:18
bmzhao12-Dec-04 14:18 
Generaltable like structure(multiple collumns) Pin
Spiritofamerica12-Dec-04 9:46
Spiritofamerica12-Dec-04 9:46 
GeneralRe: table like structure(multiple collumns) Pin
PJ Arends12-Dec-04 10:17
professionalPJ Arends12-Dec-04 10:17 
GeneralRe: table like structure(multiple collumns) Pin
lisoft12-Dec-04 13:55
lisoft12-Dec-04 13:55 
To use Excel function in VC++, you should first import Excel typelib From your office location and than use the code like:


CoInitialize(NULL); // Init COM
CLSIDFromProgID(L"Excel.Application",&clsid);
_Application ExcelApp; //Construct Excel object
if (FAILED(GetActiveObject(clsid, NULL, (IUnknown**)&pUnk)))
{
if (!ExcelApp.CreateDispatch("Excel.Application"))
{

AfxMessageBox("Failed to create Excel object!");
}
}
else
{
hr=pUnk->QueryInterface(IID_IDispatch, (void**)&pDispExcel);
ExcelApp.AttachDispatch(pDispExcel);
}


// and ...


See MSDN for detail reference.




Lisoft
GeneralRe: table like structure(multiple collumns) Pin
bmzhao12-Dec-04 14:11
bmzhao12-Dec-04 14:11 
GeneralCEdit select text highlight Pin
Anonymous12-Dec-04 8:26
Anonymous12-Dec-04 8:26 
GeneralRe: CEdit select text highlight Pin
PJ Arends12-Dec-04 9:14
professionalPJ Arends12-Dec-04 9:14 
QuestionCannot ever open fstream object in DLL? Pin
registering12-Dec-04 8:23
registering12-Dec-04 8:23 
AnswerRe: Cannot ever open fstream object in DLL? Pin
bmzhao12-Dec-04 14:04
bmzhao12-Dec-04 14:04 
GeneralRe: Cannot ever open fstream object in DLL? Pin
registering12-Dec-04 14:31
registering12-Dec-04 14:31 
GeneralConfused by the "Mapping Mode" Pin
LiYS12-Dec-04 4:41
LiYS12-Dec-04 4:41 
GeneralRe: Confused by the "Mapping Mode" Pin
PJ Arends12-Dec-04 9:55
professionalPJ Arends12-Dec-04 9:55 
GeneralPrinting Output Pin
BRIMID12-Dec-04 4:14
BRIMID12-Dec-04 4:14 
GeneralRe: Printing Output Pin
PJ Arends12-Dec-04 9:31
professionalPJ Arends12-Dec-04 9:31 
GeneralRe: Printing Output Pin
BRIMID12-Dec-04 14:01
BRIMID12-Dec-04 14:01 
Questionis this kind icon in an exe file possible? Pin
includeh1012-Dec-04 4:05
includeh1012-Dec-04 4:05 
AnswerRe: is this kind icon in an exe file possible? Pin
PJ Arends12-Dec-04 9:20
professionalPJ Arends12-Dec-04 9:20 
Generalras "error 632" Pin
mohsen nourian12-Dec-04 3:52
mohsen nourian12-Dec-04 3:52 
GeneralYahoo Messenger Pin
Member 141138912-Dec-04 3:08
Member 141138912-Dec-04 3:08 
GeneralBUG: ScrollWindowEx smoothscrolling, Child windows are drawn displaced Pin
Nalik12-Dec-04 2:03
Nalik12-Dec-04 2:03 
GeneralUpdateResource() ------ 2 Pin
includeh1012-Dec-04 0:49
includeh1012-Dec-04 0:49 

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.