Click here to Skip to main content
15,909,030 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Defining struct in IDL file Pin
Jonathan Davies17-Dec-08 3:03
Jonathan Davies17-Dec-08 3:03 
QuestionCCommand and CAccessor binding question Pin
forcewill14-Dec-08 13:12
forcewill14-Dec-08 13:12 
QuestionVS 2008 and ATL Web Service / Server Pin
Hadi Rezaee12-Dec-08 5:53
Hadi Rezaee12-Dec-08 5:53 
AnswerRe: VS 2008 and ATL Web Service / Server Pin
Stuart Dootson12-Dec-08 8:40
professionalStuart Dootson12-Dec-08 8:40 
GeneralRe: VS 2008 and ATL Web Service / Server Pin
Hadi Rezaee13-Dec-08 0:16
Hadi Rezaee13-Dec-08 0:16 
GeneralRe: VS 2008 and ATL Web Service / Server Pin
Stuart Dootson13-Dec-08 1:07
professionalStuart Dootson13-Dec-08 1:07 
QuestionSet in Visual Studio 2005! Pin
SanjaySMK11-Dec-08 23:22
SanjaySMK11-Dec-08 23:22 
AnswerRe: Set in Visual Studio 2005! Pin
Stuart Dootson12-Dec-08 8:32
professionalStuart Dootson12-Dec-08 8:32 
#include <set>
#include <iostream>

int main(int, char**)
{
   // Create an integer set and initialise it
   std::set<int> a_set;

   a_set.insert(10);
   a_set.insert(1);
   a_set.insert(4);
   a_set.insert(7);

   // This should say 8 is NOT in the set
   if (a_set.find(8) != a_set.end())
      std::cout << "8 is in the set" << std::endl;
   else
      std::cout << "8 is NOT in the set" << std::endl;

   // This should say 7 is in the set
   if (a_set.find(7) != a_set.end())
      std::cout << "7 is in the set" << std::endl;
   else
      std::cout << "7 is NOT in the set" << std::endl;

   // Remove 7 from the set
   a_set.erase(7);

   // This should say 7 is NOT in the set
   if (a_set.find(7) != a_set.end())
      std::cout << "7 is in the set" << std::endl;
   else
      std::cout << "7 is NOT in the set" << std::endl;

}


HTH!!!
QuestionWhy COM Pin
Varghese Paul M10-Dec-08 22:49
Varghese Paul M10-Dec-08 22:49 
AnswerRe: Why COM Pin
Stuart Dootson11-Dec-08 2:20
professionalStuart Dootson11-Dec-08 2:20 
QuestionRe: Why COM Pin
led mike11-Dec-08 5:03
led mike11-Dec-08 5:03 
QuestionPowerpoint Addin Using ATL (How do I deal with Events?) Pin
kalukaley10-Dec-08 8:14
kalukaley10-Dec-08 8:14 
QuestionHow to search elements in vector Pin
krishnakumartm10-Dec-08 0:12
krishnakumartm10-Dec-08 0:12 
AnswerRe: How to search elements in vector Pin
Michael Dunn10-Dec-08 9:22
sitebuilderMichael Dunn10-Dec-08 9:22 
GeneralRe: How to search elements in vector Pin
krishnakumartm11-Dec-08 4:09
krishnakumartm11-Dec-08 4:09 
QuestionBHO question: context menu item with "dynamic" title Pin
Dmitry Khudorozhkov9-Dec-08 14:55
Dmitry Khudorozhkov9-Dec-08 14:55 
QuestionRe: BHO question: context menu item with "dynamic" title Pin
led mike10-Dec-08 4:51
led mike10-Dec-08 4:51 
QuestionControl being created with a valid DC but no window until a refresh is made Pin
TClarke9-Dec-08 0:06
TClarke9-Dec-08 0:06 
AnswerFixed it Pin
TClarke9-Dec-08 1:21
TClarke9-Dec-08 1:21 
Questionwin32 version of rand() ? Pin
Member 56966976-Dec-08 4:29
Member 56966976-Dec-08 4:29 
AnswerRe: win32 version of rand() ? Pin
Michael Dunn7-Dec-08 20:34
sitebuilderMichael Dunn7-Dec-08 20:34 
QuestionHow to use the Aggregate COM object in client application Pin
KASR14-Dec-08 23:28
KASR14-Dec-08 23:28 
QuestionHow to create composite control Pin
KASR12-Dec-08 18:57
KASR12-Dec-08 18:57 
AnswerRe: How to create composite control Pin
Stuart Dootson2-Dec-08 22:12
professionalStuart Dootson2-Dec-08 22:12 
GeneralRe: How to create composite control Pin
KASR13-Dec-08 0:30
KASR13-Dec-08 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.