|
You could use CSimpleArray.
|
|
|
|
|
I would like to know how to implement a schedule in VC. I am familiar Java than VC. In Java I did use Timer and Thread. But in VC, I dont know.
Please drop to me some line if you know!
Thanks
|
|
|
|
|
What sort of schedule ? Windows works on a message pump, the timer message is WM_TIMER. www.msdn.microsoft.com is the online help that will tell you all you need to know about it.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Maybe, if it will fit into your needs, you can use integrated scheduler installed in windows. Good starting point for this is ITaskScheduler, you should probably find it in index of MSDN. There is a whole documentation, so you can examine it.
|
|
|
|
|
I've been developing a shell extension to 'touch' files -- following from Chris M's recent post. Anyway, it builds fine as a debug project. If I then try to build it in any of the release configurations (MinSize etc.) it comes back with two errors:
error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
fatal error LNK1120: 1 unresolved externals
I'm feeling like such a dumbass! Any suggestions would be very much appreciated
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
check this out: http://www.codeproject.com/cpp/cppforumfaq.asp#cl_errormain
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
[^]
|
|
|
|
|
Thanks very much.
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Hi All,
Hope every one is fine out there. I have a problem using STL queue. May be so,e of your have a solution for it. I am using Stl queue with customized struct element as it member, when I push element on queue it increases memeory in Task manager, but when it pops the element it did't seems to release memory. Why is this so ? . Do i need to implement my own meeory releasing schemes. or whats the solution for it ??
Regards
Rizi
|
|
|
|
|
Rizi wrote:
Why is this so ? . Do i need to implement my own meeory releasing schemes. or whats the solution for it ??
The STL itself handles the destruction of its processes (that is one of the reasons why it is so nice), I suppose you won't see the memory being released in task manager until the queue itself is destroyed. Otherwise the overhead on the task manager may go to an extreme and I think you would see performance degredation across the OS, (possibly?).
Nick Parker
May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing
|
|
|
|
|
I answered this last night - where did it go ?
Anyhow, you can't pass just anything via COM, but I believe you can pass an IUnknown * or IDispatch *.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Hehe, it's here[^]
We all love crossposts, don't we?
|
|
|
|
|
Well, at least it's on topic in both.....
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Sorry ,never again.
Scratch
|
|
|
|
|
I guess you have to import somehow the IXMLDomNode definition into your IDL definition. This is more clear than just passing the IDispatch or IUnknown pointers (more typecontrol, passing IUnknown is similar to using void* pointers in the C/C++).
You can probably achieve this by adding the following line to the beginning of idl:
import "msxml.idl";
or something similar
|
|
|
|
|
Hi,
I've written a simple ActiveX control using ATL 3.0 ... and everything works fine... until I want to print the document that is hosting my control. In this case, its Excel. Everything on the excel sheet prints EXCEPT my activeX control. What am I missing here? Any ideas? I've tried searching online, in MSDN, etc etc... nothing.
Any help would be greatly appreciated...
Thanx
-------------------------------------------
99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
|
|
|
|
|
I have meet the same problem, and I am working on it.
Here, I want to introduce my idea.
In the OnDraw(ATL_DRAWINFO& di) proceed, the default di give the HDC of the CRT. So, we should change it to the print device HDC.
I still have no answer on it yet.
|
|
|
|
|
Ok... heres to solution to getting your ATL components to print from within Office Applications. It seems as if Office Applications still use the old 16bit Metafile format when printing. This is a problem because it limits you to using only the GDI functions that are supported by the old Metafile DC.
For a list of functions that you CAN use, see this Microsoft document.
I've rewritten all my drawing code to support these functions and my control is printing fine Should work for yours aswell.
Thanx to Microsoft for documenting this little issue so nicely *sarcasm* :P
Cheers,
Peter
-------------------------------------------
99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
|
|
|
|
|
Help! I have use the function
SetGraphicsMode(hDC,GM_ADVANCED)
and I must use it! What could I do?
I make a defalut ATL peoject, and the draw item just is a Textout(), and I print it in document of word. But, failed, the text "ATL 3.0:xxx" is much larger than it on the display CRT.Will you please sent me your Ondraw() code, I want to have an experiment.
Thank you
|
|
|
|
|
What I can suggest is this. The GM_ADVANCED flag is not supported in anything below Windows 2000, so first, get your OnDraw() function to check if you're drawing to an old style metaDC. You can do this like this :
bool bMetaDC = false;
if ( GetObjectType(hdc) == OBJ_METADC )
bMetaDC = true;
Now that you know that you're rendering to an old metaDC, create another DC, do all your drawing to that and then BitBlt() to your metaDC. I don't know if it will work, but its worth a try...
-------------------------------------------
99 little bugs in the code, 99 little bugs,
Fix 1 bug, recompile....
101 little bugs in the code...
|
|
|
|
|
After doing several weeks of "practice" with ATL I've just realized that there are quite a lot of com components referenced in my registry that no longer exist.
Is it best to manually remove them, or is there some tool / feature in VS.net or elsewhere that would do this cleanly?
(I've heard about regclean utility, but rumor has it that it's a bad thing to run on Windows 2000)
|
|
|
|
|
There are 3rd-party tools for finding broken reg entries (Norton Utilities has one). It wouldn't be hard to make a program that iterates through HKCR and HKCR\CLSID, looking for EXE/DLL names (such as in the InprocServer32 keys) and seeing which ones point to binaries that don't exist.
--Mike--
Thing #9 to say when mad at work: "Therapy is expensive. Popping bubble plastic is cheap. You choose."
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Follow MSDN I modify ocidl.idl but that have not effect.
|
|
|
|