I am using .NET framework 1.1 (Visual studio 2003.NET) and I have written some codes in VC and VC++. I want to add some XML tags to make documentation out of it. But it only supports XML tags for C#. As far as know Visual Studio 2005 (.NET framework 2) supports XML tags for VC, but I can not switch to it. I want to know if there are some tools that help me to make some documents with .chm extension out of the XML tags I have written or not?(in C#.NET I have written these tags and then I made the XML file out of them and by using NDOC, I have created files in .chm extension. Is there any way to make such documentation out of VC and VC++.NET?)
The ::SHGetSpecialFolderPath() function is available as part of Internet Explorer 4.0. I would like to emulate this function, on systems with an earlier version of Internet Explorer. Typically, I need my software to run on plain vanilla Windows NT 4.0.
I would like to know if it's possible to emulate this function using ::SHGetSpecialFolderLocation() which is available on my target platform?
The problem is :
::SHGetSpecialFolderLocation(CSIDL_APPDATA) returns an ITEMIDLIST that contains something like "Document and Settings" on my XP box, instead of something more like I would expect, something like "C:\Document and Settings\UserName\Application Data".
Should I revert to using an environment variable? Is there a better solution?
(Still not sure why you're creating a table for each name though...)
Well, the program is such that certain set of 'budget' data should be in one table. And when the user creates another 'budget' a new table with the new budget name has to be created. So if the user wants to delete the old 'budget' all I have to do is delete the table with that name. Makes life easy for me!
Whenever the item must be drawn Windows sends the WM_DRAWITEM message to the window procedure of the item’s owner window. This message contains a pointer to
a DRAWITEMSTRUCT structure.The application can customize the controls by handling this message.
I'm trying a double indirect look-up table for some function pointer in my app (yep, I have good reason).
I'm trying to use std::map for the table but (because of the double indirection) I need to use a "std::map*"
Which I don't know how to map[index] (with a pointer)
Now perhaps I'm misusing it, I'm not sure (I know nothing of STL and I have some problem understanding its header)
Anyway here is my code (problem explained in red), if you could give me some tips.....
static std::map<const char*, SEL> map_sels;
static std::map<OClass, std::map<SEL, IMP>*> map_imps;
void id::GetImpAlways(const char* name, SEL& sel, IMP& imp)
if( !_handle )
throw gcnew ObjectDisposedException(Class()->Name);
if(map_sels.find(name) == map_sels.end())
sel = sel_register_name(name);
map_sels[name] = sel;
sel = map_sels[name];
std::map<SEL, IMP> * class_imps; <font color="red">// here I get the problematic "map *"</font>if(map_imps.find(_handle->class_pointer) == map_imps.end())
class_imps = new std::map<SEL, IMP>();
map_imps[_handle->class_pointer] = class_imps;
class_imps = map_imps[_handle->class_pointer];
if(class_imps->find(sel) == class_imps->end())
imp = get_imp(_handle->class_pointer, sel);
if( !imp )
throw gcnew ObjectiveCException("No such method");
class_imps[sel] = imp; <font color="red">// can't do that with 'map*', what should I so?</font>
imp = class_imps[sel]; <font color="red">// can't do that with 'map*', what should I so?</font>