|
How do I list the classes / methods / properties defined in a com component programatically?
(something similar to object browser / intellisense feature found in VB)
regards and thanks
M$
|
|
|
|
|
VB does it by reading the type library (typelib) that is included in the DLL with the COM object that you have. I have never really messed with the typelib directly, but maybe that will get you started on your search.
|
|
|
|
|
Look into the ITypeLib, ITypeLib2 and ITypeInfo.
Using these interafaces you can enumerate the
contents of a typelibrary.
|
|
|
|
|
I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box?
TIA!
|
|
|
|
|
If it's just a macro, then just #define it to do nothing, after including the header that defines it to start with.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
It compiles to nothing when you compile in release mode.
|
|
|
|
|
Thanks! However, I have been using debug builds and switching between a GUI app so I can step through code and the ASP pages. I missed redefining if after the header, I was trying to do it before the include. That redifined the macro however I am still getting assertion dialogs somewhere. Do you guys know off the top of you head any other assert macros that would get called from the ATL internals?
Thanks again!
|
|
|
|
|
ATL makes heavy use of ATLASSERT internally.
|
|
|
|
|
#ifdef ATLASSERT
#undef ATLASSERT
#endif
#define ATLASSERT ....
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
Hi, I am a beginner and I need to know how do I go about printing a dialog box.
Please answer my question asap
thank you!
|
|
|
|
|
atomicluis wrote:
Please answer my question asap
But of course, we live to serve.
Saying things like 'please answer quick' and 'urgent' is just plain annoying. You can say that when you're paying for the service.
You need to get a device context for a printer, which the print dialog will help you do ( you don't need to display it for this ), then you can do a bitblt right across. If you want to print the entire dialog ( caption bar, etc. ) you'll need to use GetWindowRect, then you can draw the entire dialog after doing a screen capture ( which is just creating a HDC with "DISPLAY" as the first paramenter, or MFC has a class for it which escapes me ).
Be warned, unless you do a stretchblt, it will be VERY, VERY small.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
The chances of your answer making sense to the requester are slim, i think.
Therefore, you must write a lengthy tutorial on Device Contexts, MFC, Printers, The DDK, um... .NET, er.... pointers as well.
Please do this ASAP it's incredibly urgent.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
ROTFL !!!
Actually, I fully expected to have to expand on my reply, but I wanted first to know if he wants to print a dialog box, or just the client area.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Check this.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
hi,
i have just a couple of questions.
1. Does anybody know how to read pdf files or a class that exists to download?
2. Does anybody know how to control Word and / or explorer from within a program
Cheers
Dor
|
|
|
|
|
I don't know about your first question but for your second take a look at this article in MSDN:
Interacting with Microsoft Excel: A Case Study in Automation
Yeah, its about Excel but I belive that the same ideas can be applied to Word.
Hope it helps.
|
|
|
|
|
How do i get started in DirectX? What files do i need to read and/or important info i should know before starting?
Thanks all!
~SilverShalkin
|
|
|
|
|
You need to install the latest DirectX SDK, which will also add help files to your MSDN installation. If you don't have MSDN, I don't know if it installs help just for DX, you may need to read it online instead.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Christian Graus wrote:
You need to install the latest DirectX SDK
But that thing is 172 MB's or em i looking at the right thing?
Thanks
~SilverShalkin
|
|
|
|
|
Your looking at the right thing.
I do not know if you can still do this, but about two years ago I went to Microsofts website and they sent me a disk with the DirectX SDK on it. They may still do that.
Once you get the SDK though, there are many sample programs in the SDK to get you started.
|
|
|
|
|
Dont worry ive downloaded 35% already. "Its just alot!" Oh well, when im done with installation and stuff, ill be back
with questions like, how do i make a window using Direct Draw enstuff like that if i dont find it in the help files
Thanks!
~SilverShalkin
|
|
|
|
|
As we said yesterday, you DON'T create a window using directx. You may well make a window display a directx surface, but you'll use Win32, WTL or MFC to do so.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
Oh fine.... Then my next question would be, how do you make a windo using Win32?
Dont you hate it when you download somthing and it stops at the last second, like at 99%? Well i do. I have now downloaded DirectX8.1 SDK twice. But somthing happends at the last second and it doesnt save the info to the intended folder
oi, i guess i could try it again
~SilverShalkin
|
|
|
|
|
SilverShalkin wrote:
Oh fine.... Then my next question would be, how do you make a windo using Win32?
Ask Visual C to build a Win32 app for you, it will give you all the core code you need. It will define a WndProc, which is where you process windows messages, and a WinMain, which is the entry point.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
|
|
|
|
|
SilverShalkin wrote:
Dont you hate it when you download somthing and it stops at the last second, like at 99%? Well i do. I have now downloaded DirectX8.1 SDK twice. But somthing happends at the last second and it doesnt save the info to the intended folder
oi, i guess i could try it again
Get a download manager like gozilla. It does the downloading in pieces, and it saves the state of your downloads if you get disconnected or an error occurs.
|
|
|
|