|
- Thanks for your reply pal!
- I still have a question. I think Dll can use its own local variable. Why should Dll use a storage in the thread? What is the advantage of TLS?
- Can you help?
- Regards,
Maer
|
|
|
|
|
- How to make the MSFlexGrid Control be able to input data in Visual C++? Are there any articles or posts?
- Can you help?
Regards,
Maer
|
|
|
|
|
See this article in MSDN
EditGrid.exe: Edit Cells in MSFlexGrid ActiveX Control
I hope that this is all u r looking for. I have modified this article to even dynamically show lists on Grids.
|
|
|
|
|
- Thanks for your reply pal!
- But I can not find the topic in my MSDN. Is the topic "EditGrid.exe: Edit Cells in MSFlexGrid ActiveX Control"?
My MSDN is January 2001 version.
- Can you tell me where can I find the article? From MSDN and from the web are also OK.
- Regards,
Maer
|
|
|
|
|
It was in there two years ago when I used MSFlexGrid, and it's in my July 2001 edition MSDN. Have you installed it all ?
FWIW I use Chris Maunders grid control now, it smokes MSFlexGrid.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
- Thanks pal!
- You must be an experienced programmer, I thought. Can you show me some articles about the topic?
- My MSDN is January 2001, it is older than yours.
- Regards,
Maer
|
|
|
|
|
The only article I ever read was the one in question, if you get stuck I'm happy to dig up my backup CD's and find some code for you.
Like I said, my current MSDN is newer than yours AND when I needed the info my MSDN was much older, therefore unless it was taken out and put back in, it must be in your MSDN as well.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
- Thanks my pal!
- I have found the article you mentioned under your directions.
- Regards,
Maer
|
|
|
|
|
The Article is a Knowledge Base article with the ID: Q196833
I am sure it is in the MSDN.
|
|
|
|
|
- Thanks pal!
- If I have further questions, I will contact you.
- Have a nice day,
Maer
|
|
|
|
|
I am building my first MFC application which has MFC statically linked. A colleague says that I am not allowed to release a debug version of this to machines in the organisation that don't have a VC++ licence. He has pointed to an article in MSDN that says "..Note that debug versions of an
application are not redistributable and that none of the debug versions of various Visual C++ dynamic-link libraries (DLLs) are redistributable." Can anyone confirm my colleagues view and say why Microsoft are bothered about what version of my app I distribute?
|
|
|
|
|
Why on earth would you *want* to release a debug version - it is going to be bigger and slower than a release version.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
The increased size and the performance hit haven't been issues to date. The user machines are over-spec'd. They'd probably run XP without blinking...
I've used assert to stop the program with a hint, when "that should never happen" happens. To date typically this is because rogue data is coming in from another system. I rather not re-invent that wheel if I can get away with it
|
|
|
|
|
Either way, it is wrong in my opinion to release crippled code just because the system can handle it. The debug version is different in many ways, and designed for debugging, not for release.
What wheel do you not want to reinvent, assert ? It's just a macro, have a look at it, it is about five minutes work. Your code should handle the case of rogue data, that's what programming for the real world is all about. It should do it in a prettier way for the end user than an assert message, you should assert liberally to help you debug and release the product when the debug version gives no asserts because everything is being dealt with correctly.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
For debug release a lot of DLL's will be required and debugging errors can pop up after distribution.
Release is the best option for distributing the appl. It is smaller and requires less DLL's of MFC.
|
|
|
|
|
|
Why would you think that ?
The beauty is we can keep using it even if it is, if we want to. We have the source, after all.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
- I want to change the drive letter of my CDROM.
I want to implement it in VC. How to do that?
- Can you help?
Thanks,
Maer
|
|
|
|
|
Define operating system (unless you _really_ want to implement it inside VC in case you're trolling).
You should however have a look at QueryDosDevice and get some ideas from that.
|
|
|
|
|
- Thanks for your reply, my Pal!
- I am not very familiar with "QueryDosDevice". Can you show me an example in my case?
- Regards,
Maer
|
|
|
|
|
I'm trying to draw control programmatically in the 1st sub item of a
listview row when the user sets the focus to that item.
I have a handful of questions.
Currently I'm doing this in the OnItemChanged and seeing if the items
uNewState is SELECTED. Is this the best place to do this? Seems to work.
Next, I use GetSubItemRect in combination with pNMLV-iItem to get the rect
of the subitem I want to put the control over.
This seem to work ok...except..with a combobox.
GetListCtrl().GetSubItemRect(pNMLV->iItem,1,LVIR_BOUNDS,itemRect);
CComboBox *pCombo = new CComboBox;
pCombo->Create(WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_CLIPCHILDREN,
itemRect, this,190);
The combobox shows up to big. It must have a minmum size or something? when
I do the same thing with CEdit and CButton they work perfect. Also isn't the
size difference in a combobox's CRect top and bottom the amount the combbox
will drop down?
Also, is there a way to create the combobox without a boarder so it will
show up over the subitem better?
Is there a style to make CButton flat?
thanks
mike
|
|
|
|
|
I believe you can make the buttons flat in the resource editor.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
I have a full com serverwith three interfaces. A different client will access each of the three interfaces at overlapping times. I only want one instance of the .EXE to be running. As each of the client apps performs its _CreateInstance, a new instance of the app is launched. Giving me three altogether.
Is this possible?
How is it done?
I am familiar with the technique of using FindWindow and setting the focus to the already existing window to ensure only one copy of an app runs at a time. I don't think it applies here because 1) No window, the client apps are NT services. and 2) I don't think the interface would be attached if I simply re-directed the focus and exited.
Can anyone help, please?
Thanks for the help,
Bill
|
|
|
|
|
Try searching
http://discuss.microsoft.com/archives/atl.html
for singleton
Todd Smith
|
|
|
|
|
How can I launch multiple views fron one SDI and make them totally independent???
I can launch multiple views, but if I close the first one the others get closed!!
|
|
|
|