Hi folks, I could please need some help with custom Configuration Sections: Let me first describe what I want to acheive: I want to have a Configuration section which consists of several items (I already managed that, it's working fine) Now each of these items can should have another list of subsitems. The resulting config file should look like this: + section - parentitem - childitem - childitem ... - parentitem - childitem ... As I said I already managed add the section and create the "parent items". Now I tried using a ConfigurationElementCollection derived class for the collection of "childitems" but they won't show up. Does anyone have an idea how I can acheive my goal? Many thanks in advance. Stefan
Optimus Chaos
Posts
-
Need a clue with Configuration Sections -
The classic Case bugYup, this one is a real classic ;)
-
C++ Refactoring Add In neededThanks, I will try this.
-
C++ Refactoring Add In neededHi everybody, does anybody know a good C++ Refactoring Add In? I'm searching for one that is just like Visual Assist but C++ only, because I already have ReSharper for refactoring .Net code. Many thanks.
-
Who finds it first... [closed] : [modified]Never worked that much with std::string but I will keep track :-D
-
Who finds it first... [closed] : [modified]I'm not sure but doesn't push_back already take a reference while you are passing a pointer to it?
-
Who finds it first... [closed] : [modified]VuNic wrote:
if((stSourcePath.size==0)||(stDestPath.size==0)) { ... }
I guess the bug is here as the method continues when either of the strings is of zero length which wouldn't make sende after all. So if stSourcePath has zero length then I'm curious what examineFile will return.
-
WinExec() FunctionHi, The question is what do you want to achieve? Do you just want to open a browser window (user default browser or specifically IE?) or do you want to display a web site. You should also take ShellExecute into consideration. This method allows you to also open a website using the default browser or IE directly and it shouldn't matter where your browser is installed. Hope this helps. Best regards
-
Linking to ODBC.dllI just tried a project which links with other libs that are shipped with the source code: It seems that you can simply add the *.lib file to your project. However I don't know if this will work with Platform SDK libraries. Yes, this is a way that worked in my project when linking against shell32.lib. I just placed it in the source code where I needed the API call.
-
Linking to ODBC.dllI don't know right now if there is any option dialog for this (currently working with VC++ Builder 6.0) but you can also include the
#pragma
preprocessor directive, assuming you have set the additional library (something like: "\lib\psdk") path in a way, that odbc32.lib can be found:#pragma comment ( lib, "odbc32.lib" )
-
How to get homeDirectorySHGetFolderPath, just pass in the CSIDL for the desired folder.
-
CString Splitter?You can use the String splitting functions of CString Left, Right, Mid. For searching after certain characters you can use the Find methods. But you have to keep in mind that those are index based functions, so you have to either rely on fixed index positions or your string has to contain nearly the same content.
-
he heMarvelous, a real beauty. Let me guess what comes after the method call... .ToString()?!? :laugh:
-
CString::Formatbecause nSum has data type int. :)
-
Is this called Buffre overrunHi, I think you should consider taking COleDatetime for this. Because you could either use GetCurrentTime or construct a new COleDateTime from your SYSTEMTIME structure. Afterwards you can use the Format method to assign it to your CString. example:
CString CLogger::GetCurrentDateTime()
{
COleDateTime dtCurrent = COleDateTime::GetCurrentTime();return dtCurrent.Format ( _T("%d/%m/%Y %H:%M") );
}or
CString CLogger::GetCurrentDateTime()
{
SYSTEMTIME stCurrent,stLocal;
GetSystemTime(&stCurrent);
SystemTimeToTzSpecificLocalTime(NULL, &stCurrent, &stLocal);COleDateTime time ( stLocal );
return time.Format ( _T("%d/%m/%Y %H:%M") );
} -
virusI think if virus detection would be that easy then we wouldn't have to pay companies for writing anti virus software :-D
-
Trouble making a custom mfc control...Hi there, did you actually create your PieChart control. If you did, can you post the location of your debug assertions? Best regards
-
Unselecting a bitmap in a contextBefore you make a call to GetDIBBits call SelectObject again to release your selected bitmap.
-
HELP -
Why do some people code at all?Not long ago my company hired another software company to develop a tool for us, because we didn't have the resources to do it ourselves at that time. After they delivered several versions that were all buggy and did not work properly we took the code and I had to finish it. Some endless loops and horrible
try { ... } catch { // do nothing here }
later I discovered the following beauty in the code:public bool AskForSureBox(string Message, string Title) { MessageBox.Show(Message, Title, MessageBoxButtons.YesNo); if (DialogResult.Yes.ToString() == "Yes") return true; else return false; }
I afterwards took the liberty to write to the CEO of that company, asking him how long the programmer who wrote the code was already coding for his company... Until today I didn't get an answer. Have fun coding!