|
C# looks like the best bet for writing .NET applications at the moment. C++ doesn't seem to be integrated well enough into the .NET framework for my liking. Hopefully this will change but for now if I have to write any .NET apps then C# is the nearest thing to C++.
VB is not for me, (because I keep putting ; on the end of lines and it complains ). C# is easy to use and seems to meet my needs for writing MIS systems for .NET. C++ will always remain my first choice for Windows apps but until Microsoft improve the .NET support in it C# is the nearst language to my skill set for writing .NET apps.
Michael
|
|
|
|
|
I encountered a problem with the CGridCellDateTime picker, which comes with the MFC Grid by Chris. It chrashes when the user enter a bad year (out of range like 3010).
Did anyone fix this? Or have an Idea how to?
Thank You
XP
|
|
|
|
|
if ((nYear < nMinYear) || (nYear > nMaxYear))
MyOutOfRangeFunction();
|
|
|
|
|
could someone please point me in the direction of creating lnk files on the desktop, start menu, things like that, i've search here, msdn... thanks
shotgun
|
|
|
|
|
You need to use the IShellLink interface. Mike Dunn's excellent article Introduction to COM - What It Is and How to Use It uses it in one of his examples.
HTH
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|
|
Has anyone else seen anything like this:
I create a simple MFC app, use the CFileDialog, just passing in TRUE, and accepting the rest of the defaults, and then when I call
DoModal() I get a bunch of user breakpoint mesasge boxes that come up
and warnings in the output window like so:
HEAP[TextStuff.exe]: Heap block at 0014A9A8 modified at 0014A9DC past requested size of 2c
HEAP[TextStuff.exe]: Invalid Address specified to RtlFreeHeap( 130000, 14a9b0 )
( I beleive I get 11 of these little dialogs that come up)
Then the Open dialog comes up and evything seems to work. In Release mode nothing happens. If I adjust the release mode settings to output debug info and then run the app in the debugger, same behaviour. This did NOT use to happen. Is it possible for another app to have overwritten some system dll ? Is it safe to just ignore this ?
On Win2K 256 MB Ram, VC 6, sp4
I can fiddle with the settings of the OPENFILENAME struct, even make the call using the raw API, and I get the same results.
Thanks
|
|
|
|
|
Hi!
I had the similar problem. CFileDialog caused crashes in release builds, and in debug it caused access violation exception. I did not find a clue. I had no service pack for win2k.
I changed win2k into xp and it works good now
|
|
|
|
|
I am attempting to retrieve the contact list from Outlook 97. I am uncertain which dll and typelib to use. I have been able get Outlook 2000 to work with MSO9.dll and MSOUTL9.OLB, but that does not seem to work with Outlook 97. Or is there a DLL and typelib I can use that works with Outlook 97, 2000 and XP?
thanks in advance
|
|
|
|
|
Hi,
Take a look at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q259298
which explains what to #define and #import for each Outlook version. I don't know
if it is possible to detect the Outlook version at runtime and do some late binding.
Regards,
Alwin
|
|
|
|
|
I'm having trouble updating the filename with the new file extension. Do I need to send a message or something to the window to update.
Thanks
|
|
|
|
|
Your question is a little vague, but have you looked at the lpstrDefExt member of the OPENFILENAME structure (CFileDialog::m_ofn)?
HTH
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
It may be that your sole purpose in life is simply to serve as a warning to others.
|
|
|
|
|
I have been looking for a good algorithm to sort
in other language then english, like names and etc.
The english alphabet is A-Z as we know but other countries
have more characters in theyr alphabet like german, danish,
icelandic and etc.
Do any of you guys have a code that can help me?
Any help would be nice
Thank you
|
|
|
|
|
Have a look at the appendice of "Effective STL" by Scott Meyer, there's a discussion on how to do this, in regard to STL.
You need to take into account the locale, and and regional specification, it's not only an ASCII thing!.
BTW, I haven't been able to build that example into VC++6 !
Max.
|
|
|
|
|
Hi Max
and thanks for your fast reply
Do you know where I find this example to download
or do I need to buy the book?
|
|
|
|
|
The CompareString Windows API routine allows you to specify a locale that will be used for sorting.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Thank you Tim,
this is just what I needed
|
|
|
|
|
Hello guys,
I'm quite new on COM and maybe what I'm asking it's stupid : in VC++ is there an automatic way to add another interface to an existing class which already has one or I have to do it by hand? If so, in which file I have to add it (idl, header file of the class)?
Thank you very much,
Thomas
|
|
|
|
|
You can go to the class view tab in the workspace manager, then right click on your com class. There should be a number of options to help you manage the functions and the interfaces in your object, whether you are using MFC or ATL to create your object.
|
|
|
|
|
There are a lot of options in that popup menu but none of it is dealing with adding a new interface ...
|
|
|
|
|
It's a good practice to always start in the IDL file. try the IDL interface keyword.
#define MOSTLY_LEAN_AND_MEAN
|
|
|
|
|
Sorry for asking : what is all about #define MOSTLY_LEAN_AND_MEAN ?
|
|
|
|
|
I want to give the user the opportunity to adjust the dpi before printing. I have overridden CPrintInfo and can get my CMyPrintInfo to display instead. I'm confused with the dpi in the DEVMODE structure. Is dmPrintQuality just the horizontal resolution? Can I set dmYResolution to be any value between 1 and pDC->GetDeviceCaps(LOGPIXELSY) or are there specific hardware dependant values?
When I do a "GetDevMode()->dmPrintQuality = DMRES_DRAFT", nothing changes on the output.
If anyone can shed some light on any of these issues, I'd be very grateful.
|
|
|
|
|
I want to repaint a WebBrowser control placed in a dialog window, after a resize operation (MoveWindow). I've tried with InvalidateRect and nothing happened.
rechi
|
|
|
|
|
bogdan_rechi wrote:
I want to repaint a WebBrowser control placed in a dialog window,
You can't actually repaint the webbrowser,
But you can Refresh() ;
This can cause another navigation,
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I think it's interesting that we often qu-ote each other in our sigs and attribute the qu-otes to "The Lounge". --- Daniel Fergusson, "The Lounge"
|
|
|
|
|
Anybody know how to create a shortcut to "My Computer" & "My Network Places" using MFC?
Any help would be appreciated...
|
|
|
|