Skip to content

ATL / WTL / STL

Discussions on ATL, WTL and STL programming

This category can be followed from the open social web via the handle atl-wtl-stl@forum.codeproject.com

3.1k Topics 9.9k Posts
  • Qustion About ATL Based Web Service

    question c++ com sysadmin help
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • ATL based COM fire-event client ?

    c++ question com
    3
    0 Votes
    3 Posts
    19 Views
    T
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/vcsmpatlfire.asp[^] Todd Smith
  • A question about #define WIN32 and "sbrk"

    question linux
    12
    0 Votes
    12 Posts
    44 Views
    G
    Oh, I am sorry about that, Michael. Yesterday, it is a very urgent case, my boss, ... I promise that case will not happen again. Cheers, George
  • A question about "size_t"

    question help
    8
    0 Votes
    8 Posts
    34 Views
    G
    Thanks for your advice Daniel pal! I am using Visual Studio 6.0. :-( Cheers, George
  • Windows service in ATL

    c++ question
    2
    0 Votes
    2 Posts
    16 Views
    V
    The easiest is to run Visual Studio Wizard and select ATL service. You'll get all necessary code to register and start the service. If your methods/functions are COM-based, then just insert COM objects (using ATL Wizard). If not, you'll have to do it yourself. (My advice: base your communication protocol with service on COM, it's really easy to implement). Vagif Abilov MCP (Visual C++) Oslo, Norway If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them. Jack Handey, Deep Thoughts
  • STL Container of classes

    c++ com docker tools tutorial
    6
    0 Votes
    6 Posts
    33 Views
    J
    Good advice, thanks. James Drinking In The Sun Forgot Password?
  • Deque's question

    question help
    7
    0 Votes
    7 Posts
    37 Views
    E
    Thanks, I forgot the HTML nature of this message board... "nobody knows it, but you´ve got a secret smile, and you use it only for me"
  • STL: keep order for map

    c++ html
    7
    0 Votes
    7 Posts
    21 Views
    P
    thanks for the suggestion, but I need both string-based lookup, and iteration in (temporal) order of insertion (although your class keeps the info, it would about O(n*n) to actually iterate in "sorted by count" order) I'll go with the list<> implementation and a linear search, and make some speed comparisons. [edit] some interesting results (not all to much surprising) times only for lookup with <= 10 strings, the list is faster, for 25 strings it's list is about factor 2 slower, factor 3 for 50. (map looses early for creation of a std::string from literal when doing the lookup, and additional comparison for equality) Having said that, With 25 strings in a list I get ca. 200.000 accesses / second on my 1.3GHz box, not astonishing, but fast enough for most uses. All this is just lookup, map insertion is of course much slower due to additional comparisons (and I might be stuck with thousands of inserts and just a few lookups), so list implementation is "perfect enough" One day I might find it quite amusing how touching tongues make life so confusing  Anne Clark again   [sighist]
  • ATL server exe and event interface

    help c++ com sysadmin question
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Deque

    c++ help question
    2
    0 Votes
    2 Posts
    12 Views
    D
    i changed the iterator initialzation, and changed the order of the include files, and the code worked... #include #include #include using namespace std; main() { string alpha[4] = {"nava", "dana", "lakshmi", "pavi"}; deque ids1; for (int i =0; i<4; i++) { ids1.push_back(alpha[i]); } deque::iterator id_iter1 = ids1.begin(); for (; id_iter1 != ids1.end(); id_iter1++ ) cout << *id_iter1 << "\n"; }
  • Drag & Drop into a CWindowImpl?

    question
    2
    0 Votes
    2 Posts
    14 Views
    M
    You need to call RegisterDragDrop() as well. --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm
  • set compiler error

    help question
    2
    0 Votes
    2 Posts
    13 Views
    M
    Add using std::set::iterator; --Mike-- Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer My really out-of-date homepage Sonork-100.19012 Acid_Helm
  • WTL FormBased APP with AX

    c++ question com performance help
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Property Sheet Wizard

    c++ com
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • CreateThread / CloseHandle cleanly

    c++ help question
    3
    0 Votes
    3 Posts
    14 Views
    P
    thanks so much
  • Regular Expression Template Archive

    regex tutorial question
    2
    0 Votes
    2 Posts
    15 Views
    N
    Idefix wrote: I think the parser works but how can i get the single items? Is that possible? Try: rpattern pat("{\\w+}\\."); iterate through your string and extract the text matching the {} tag. Note that I don't know Greta, but this is what you would do with a typical Regex. Idefix wrote: Where can I find more documention and information? Have you tried: http://research.microsoft.com/projects/greta/gretauserguide.htm[^] Neville Franks, Author of ED for Windows. www.getsoft.com
  • Activex which itself a control container?

    question c++ com docker
    5
    0 Votes
    5 Posts
    23 Views
    T
    Rashid here is what i did 1.create a composite control 2.put it on a VB form 3.choose a command button control from the VB toolbox and put it on the atl composite control the result is that the command button control didnot become a child control of the composite control,if i move the composite control the command button control stay in his place i just want to create a control like SSTab,of FRAME
  • ATL remove Apply button on Properties...

    c++ com docker question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • WTL 7 MTPad Example Errors

    c++ com beta-testing help tutorial
    4
    0 Votes
    4 Posts
    13 Views
    E
    If you don't have the latest SDK, change the WINVER define in stdafx.h to 0x0400 and that will eliminate the errors. However, you won't be able to use the IE-style chevron and a few other new toys.
  • stl and sprints/sscans

    c++ json help tutorial announcement
    4
    0 Votes
    4 Posts
    21 Views
    I
    thanks guys :)