Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
O

Optimus Chaos

@Optimus Chaos
About
Posts
39
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Need a clue with Configuration Sections
    O Optimus Chaos

    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

    C# help question workspace

  • The classic Case bug
    O Optimus Chaos

    Yup, this one is a real classic ;)

    Clever Code c++ com architecture help

  • C++ Refactoring Add In needed
    O Optimus Chaos

    Thanks, I will try this.

    Visual Studio csharp c++ algorithms question

  • C++ Refactoring Add In needed
    O Optimus Chaos

    Hi 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.

    Visual Studio csharp c++ algorithms question

  • Who finds it first... [closed] : [modified]
    O Optimus Chaos

    Never worked that much with std::string but I will keep track :-D

    Clever Code com help

  • Who finds it first... [closed] : [modified]
    O Optimus Chaos

    I'm not sure but doesn't push_back already take a reference while you are passing a pointer to it?

    Clever Code com help

  • Who finds it first... [closed] : [modified]
    O Optimus Chaos

    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.

    Clever Code com help

  • WinExec() Function
    O Optimus Chaos

    Hi, 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

    C / C++ / MFC tutorial

  • Linking to ODBC.dll
    O Optimus Chaos

    I 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.

    C / C++ / MFC question c++ delphi com algorithms

  • Linking to ODBC.dll
    O Optimus Chaos

    I 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" )

    C / C++ / MFC question c++ delphi com algorithms

  • How to get homeDirectory
    O Optimus Chaos

    SHGetFolderPath, just pass in the CSIDL for the desired folder.

    C / C++ / MFC json tutorial

  • CString Splitter?
    O Optimus Chaos

    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.

    C / C++ / MFC question help tutorial

  • he he
    O Optimus Chaos

    Marvelous, a real beauty. Let me guess what comes after the method call... .ToString()?!? :laugh:

    The Weird and The Wonderful com

  • CString::Format
    O Optimus Chaos

    because nSum has data type int. :)

    C / C++ / MFC question

  • Is this called Buffre overrun
    O Optimus Chaos

    Hi, 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") );
    }

    C / C++ / MFC performance help workspace

  • virus
    O Optimus Chaos

    I think if virus detection would be that easy then we wouldn't have to pay companies for writing anti virus software :-D

    C / C++ / MFC c++ question

  • Trouble making a custom mfc control...
    O Optimus Chaos

    Hi there, did you actually create your PieChart control. If you did, can you post the location of your debug assertions? Best regards

    C / C++ / MFC c++ data-structures debugging help tutorial

  • Unselecting a bitmap in a context
    O Optimus Chaos

    Before you make a call to GetDIBBits call SelectObject again to release your selected bitmap.

    C / C++ / MFC graphics help tutorial question

  • HELP
    O Optimus Chaos

    I don't think you will get better chances of an answer if you continue to insult people who are trying to give you tips in how to behave in this forum. Read the forum Rules[^] and try posting your question again.

    C / C++ / MFC c++ help question

  • Why do some people code at all?
    O Optimus Chaos

    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!

    The Weird and The Wonderful question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups