|
SerilizeElemets will not compile in the VC.Net 2003 version. It worked fine in .Net 2002.
const CIntArray& C2DIntArray::ElementAtConstRef(int nIndex) const
give this error
'SerializeElements' : illegal use of explicit template arguments
|
|
|
|
|
I need to extend File Explorer (in windows XP Pro), and add some custom columns.
Name, size, type, date modified...are all standard in deatail view, and if you right click on them you can bring up a list of available columns.
I need to add some custom columns.
If anyone has any sample code, instructions, references, links, etc. that could help with this project I'd be very greatful.
Thanks,
Josh
|
|
|
|
|
|
Thanks Mike!
That is exactly what I was looking for.
I appreciate it.
Josh
|
|
|
|
|
This is a weird hacky question, so I thought this would
be a good forum to ask
I have a DOS application running in a dos window under
MS Windows (98SE). I need to dig into it to send keystrokes
and read the text on the screen. Does anyone have any
idea how to do this, or can anyone even offer any pointers
as to where I could find out how to do it?
Thanks,
NDP.
|
|
|
|
|
You could probably use mutexes to alert you when something happens, and a file to explain what happened.
Ken Maz
|
|
|
|
|
I assume you are spwaning the "DOS" prog from a Windows prog, if so have a look at:-
In the MSDN
HOWTO: Spawn Console Processes with Redirected Standard Handles
ID: Q190351
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
How can I do to mix C and C++ code?
I have a DLL project with some classes and I have tryed to include a pure C code file with the header... The compiler starts with "fatal error C1010: unexpected end of file while looking for precompiled header directive". Missing some details in the header file?
How can I do to call functions existing in the C code?
TIA
Cesario
Cesario Simoes, jr
Working with computers since 1970 (Burroughs, GTE, etc.) Programming in assembly DSP (TMS320c2x and TMS320c5x), C and C++. Using C++ and MFC, developping GUI to telecommunication equipment (PABX, ACD, RAS, etc.)
|
|
|
|
|
The first line of all the modules need to be #include "StdAfx.h" if you used the class wizard in the creationof the program
Ken Maz
|
|
|
|
|
You need to turn off precompiled headers for this file. Select the file in the workspace, right-click -> Settings -> C/C++ -> Precompiled Headers. Then select "Not using precompiled headers".
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
Yess! Exactly! It works!
Thanks, Dave!
And regards from the lower south of Brazil!
Cesario
Cesario Simoes, jr
Working with computers since 1970 (Burroughs, GTE, etc.) Programming in assembly DSP (TMS320c2x and TMS320c5x), C and C++. Using C++ and MFC, developping GUI to telecommunication equipment (PABX, ACD, RAS, etc.)
|
|
|
|
|
I have question,
If I have a container and then I insert excel into my application, using insert object,when the excel is incrusted the buttons, save, open, print are unhabilitated, What is what I have to do to habilitate this buttons?
Does somebody work with Excel Automation?
|
|
|
|
|
Read MSDN to learn the differences between an ActiveX control, and an OLE Document.
|
|
|
|
|
Can anybody tell me a resource for adding a Splash screen to a DLL. Splasher and other classes require a CWinApp or CMainFrm object - my DLL does not have these.
Basically, I want to display an intro or splash screen to a library DLL when not properly registered. It would go away after a short period.
Thanks
|
|
|
|
|
One solution is to simply implement an MFC DLL. As for the splash screen, one solution is a dialog box.
Kuphryn
|
|
|
|
|
Since you don't know how the caller is going call your DLL, this is a really bad idea. It's best to return an error code and then let the calling application notify the user.
|
|
|
|
|
I really need some help here folks.
Im using VC++.net (vc++ v7.x)
Im trying to create a simple wizard based program. However nowhere can i find a decent tutorial or guide to help me work it out.
lots of tutorials, sorry a few tutorials talk about property pages and property sheets. Others about Cdialog and classes. Also alot make you click on a menu toolbar to bring up the wizard. I dont want this, what i want is when you click the .exe a single dialog screen appears straight away and then you use the Next and Back buttons to navigate between the pages.
Can anyone give me some help please, either some advice or a best way to do it tip, or a link to a decent tutorial one that MSN search cant find as ive looked. Im not looking for anyone to do it for me, just a big kick in the right direction please.
One problem that i have also found is that a couple of articles say i need to change the base class from one thing to something else but i dont see how i can do this it just doesnt let me.
Any advice, please im pulling my hair out.
Kind regards
Dave Long
|
|
|
|
|
Use the CPropertySheet class. Follow the same steps you would follow to create a standard property sheet, but call SetWizardMode() before you call DoModal().
|
|
|
|
|
hi
i want to display my application's icon in system tray
please guide me that how can i do it
and also that how can i load a .jpg or .bmp in an sdi application
and another problem !!!
i made an sdi application
when ever i run the program it sizes the window in default size of vc++ which is normally in all cases ... now what i want to do is to reduce the size .... and have size of my own how can i do it ... and how can i give specific shape to window e.g circular or oval etc.
kindly answer as soon as possible
regards
Nauman Ghazi
Bahria University
|
|
|
|
|
djghazi wrote:
i want to display my application's icon in system tray
please guide me that how can i do it
Use Shell_NotifyIcon().
djghazi wrote:
i made an sdi application
when ever i run the program it sizes the window in default size of vc++ which is normally in all cases ... now what i want to do is to reduce the size
Change your app's initial size/position in CFrameWnd::PreCreateWindow().
|
|
|
|
|
I need help with some file operations.
What I want to do is replace a file with a modified version of that file and have the original filename retained.
For example:
Original.txt --> Modified_Original.tmp --> Original.txt
I know the complete pathname of the Original. The Original.txt file property is Read-Only, and this is where I get a problem.
What I have done is:
remove(szOriginalFilename);
// Rename the temporary file (modified version) to the original
CFile::Rename(szTempFilename,szOriginalFilename);
This works ONLY when the Original is Write-able. How do I change a file's R-W properties from code??
Thanks
Johnny
|
|
|
|
|
Use the CFile::SetStatus() method, or use SetFileAttributes().
|
|
|
|
|
Thanks! I'll try them out.
|
|
|
|
|
Is there a way to change the fonts inside a listview control.
Thanks
|
|
|
|
|
See SetFont method of CWnd or WM_SETFONT msg.
|
|
|
|