Click here to Skip to main content
15,916,527 members
Home / Discussions / COM
   

COM

 
Generalhelp for directx Pin
includeh1013-Aug-03 7:51
includeh1013-Aug-03 7:51 
Generalprogramming autocad : GetAttributes Pin
JP GOBLET12-Aug-03 6:29
JP GOBLET12-Aug-03 6:29 
GeneralRe: programming autocad : GetAttributes Pin
Steve S12-Aug-03 22:11
Steve S12-Aug-03 22:11 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET12-Aug-03 22:52
JP GOBLET12-Aug-03 22:52 
GeneralRe: programming autocad : GetAttributes Pin
Steve S12-Aug-03 23:38
Steve S12-Aug-03 23:38 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET13-Aug-03 0:28
JP GOBLET13-Aug-03 0:28 
GeneralRe: programming autocad : GetAttributes Pin
Steve S13-Aug-03 0:40
Steve S13-Aug-03 0:40 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET13-Aug-03 1:15
JP GOBLET13-Aug-03 1:15 
once again tank you for your commitment, i must say i'm completely
lost at this point, but you seems to know what you're talking about ...

where do come from the autocad stuff :

in the class wizard of visual studio, i did 'import class from a type library'
and then choosed acad.tlb in the autocad directory. The class wizard generated then
the file acad.tlh (see attached file). This file contains definitions of all the functions
exposed by autocad.

the autocad program is started this way :

HRESULT hr;
// chercher un Acad en train de tourner
hr = m_acadApp.GetActiveObject("AutoCAD.Application.15");
if( FAILED(hr) )
{
TESTHR( hr= m_acadApp.CreateInstance( "AutoCAD.Application.15", NULL, CLSCTX_LOCAL_SERVER ));
if(hr == REGDB_E_CLASSNOTREG)
{
AfxMessageBox("AutoCAD is not registered on this machine");
goto End;
}
if(m_acadApp == NULL)
{
Erreur = 1;
goto End;
}
...


GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET18-Aug-03 6:17
JP GOBLET18-Aug-03 6:17 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET18-Aug-03 6:46
JP GOBLET18-Aug-03 6:46 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET18-Aug-03 21:23
JP GOBLET18-Aug-03 21:23 
GeneralRe: programming autocad : GetAttributes Pin
Steve S18-Aug-03 22:09
Steve S18-Aug-03 22:09 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 0:25
JP GOBLET19-Aug-03 0:25 
GeneralRe: programming autocad : GetAttributes Pin
Steve S19-Aug-03 0:38
Steve S19-Aug-03 0:38 
GeneralRe: programming autocad : GetAttributes Pin
Steve S19-Aug-03 0:44
Steve S19-Aug-03 0:44 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 2:58
JP GOBLET19-Aug-03 2:58 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 3:44
JP GOBLET19-Aug-03 3:44 
GeneralRe: programming autocad : GetAttributes Pin
JP GOBLET19-Aug-03 4:02
JP GOBLET19-Aug-03 4:02 
GeneralRe: programming autocad : GetAttributes Pin
Steve S19-Aug-03 4:37
Steve S19-Aug-03 4:37 
QuestionWhat is wrong with this code!!! Pin
adsilva12-Aug-03 0:36
adsilva12-Aug-03 0:36 
AnswerRe: What is wrong with this code!!! Pin
Stephane Rodriguez.12-Aug-03 0:51
Stephane Rodriguez.12-Aug-03 0:51 
AnswerRe: What is wrong with this code!!! Pin
Steve S12-Aug-03 0:51
Steve S12-Aug-03 0:51 
GeneralRe: What is wrong with this code!!! Pin
Stephane Rodriguez.12-Aug-03 1:00
Stephane Rodriguez.12-Aug-03 1:00 
GeneralRe: What is wrong with this code!!! Pin
Steve S12-Aug-03 1:01
Steve S12-Aug-03 1:01 
GeneralTree Control context menus Pin
Steven M Hunt11-Aug-03 12:36
Steven M Hunt11-Aug-03 12:36 

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.