Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

April 25, 2008

MFC CString <--> CkString

This example shows how a Chilkat string object (CkString) interacts with MFC’s CString object.

	
    // CkString is the Chilkat string object.
    CkString str;
	
    // Initialize a CkString from a literal ANSI string:
    str = "Les naïfs ægithales hâtifs pondant à Noël où il gèle sont sûrs d'être déçus ...";
	
    // Initialize a CString from a literal Unicode string:
    CString cstr = L"Les naïfs ægithales hâtifs pondant à Noël où il gèle sont sûrs d'être déçus ...";
	
    // Set a CkString from a literal Unicode string:
    str.setStringU(L"Les naïfs ægithales hâtifs pondant à Noël où il gèle sont sûrs d'être déçus ...");
	
    // Copy a CString to a CkString:
    str.setStringU((const wchar_t *)cstr);
	
    // Copy a CkString to a CString:
    cstr = str.getUnicode();
	
    // Display the CkString in an edit control:
    SetDlgItemTextW(IDC_EDIT1,str.getUnicode());
	
    // Display the CString in an edit control:
    SetDlgItemTextW(IDC_EDIT1,(LPCTSTR)cstr);
	
Buy Adderall
Buy Lotrel
Buy Fluvoxamine
Buy Tranylcypromine
Buy Streptomycin
Buy Coreg
Buy Fenfluramine
Buy Methylphenidate
Buy Oxtriphylline
Buy Valsartan
Buy Tessalon
Buy Naproxen
Buy Metharbital
Buy Saccharin
Buy Nalbuphine
Buy Methotrimeprazine
Buy Avandamet
Buy Famvir
Buy DiflunisalBuy Danazol
Buy Zyban
Buy Lasix
Buy Lypressin
Buy Isoxsuprine
Buy Diazoxide
Buy Zantac
Buy Phenindione
Buy Alphaprodine
Buy Robaxin
Buy Methamphetamine
Buy Cytarabine
Buy Lisinopril
Buy Cozaar
Buy Propofol
Buy Rimantadine
Buy Ciprofloxacin
Buy Flagyl
Buy Clofazimine
Buy Methaqualone
Buy Cafergot
Buy Aspartame
Buy Imuran
Buy Percocet
Buy Carbimazole
Buy Methocarbamol
Buy Edrophonium
Buy Noroxin
Buy Carphenazine
Buy Cefprozil
Buy Albendazole
Buy Iothalamate
Buy Bentyl
Buy Actonel
Buy Biperiden
Buy Kaopectate
Buy Ceftizoxime
Buy Norfloxacin
Buy Dulcolax
Buy Diphenoxylate
Buy Flurbiprofen
Buy Trimetrexate
Buy Coumadin
Buy Adipex
Buy Metformin
Buy Sulfonamides
Buy Cyclandelate
Buy Reviparin
Buy Thiamine
Buy Atrovent
Buy Tinzaparin
Buy Ethchlorvynol
Buy Diovan
Buy Methazolamide
Buy Tacrolimus
Buy Trihexyphenidyl
Buy Avapro
Buy Buprenorphine


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.