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
G

goutom roy

@goutom roy
About
Posts
8
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MFC CSocketFile
    G goutom roy

    i am making chat application .for this why i wrote the following code to receive data. now i want to know how to send data using CSocketFile and CARchive. can any one can send me the code to send data? is it possible to send or receive following data using CSocketFile and CARchive. " help me friend, if u can." BOOL CMainFrame::RetriveMessage(CServerSocket *svr_sock, CString& msg_out) { CSocket sock; // This thing just won't die if ( !svr_sock->Accept(sock) ) return FALSE; CSocketFile sockfile(&sock); CArchive ar_in(&sockfile, CArchive::load); CString temp; do { ar_in >> temp; msg_out += temp; }while ( ! ar_in.IsBufferEmpty() ); CView* view = GetActiveView(); if ( NULL != view) { ( (CImportListenerView*) view)->m_EditMsgRcv.SetWindowText(msg_out); } ar_in.Abort(); sockfile.Close(); sock.ShutDown(2); sock.Close(); return TRUE; }

    C / C++ / MFC c++ help tutorial question lounge

  • where is my fault?
    G goutom roy

    ************************************** //#include "simple calculator.h" ->code class CExerciseApp : public CWinApp { public: virtual BOOL InitInstance(); }; class CMainFrame : public CFrameWnd { //CString s = _T("1032"); //int n = ParseInt( s ); public: CButton b1, b2, b3, b4, b5; CEdit text1, text2, res; CString str1, str2; //CFont font; long a, b, c; CMainFrame(); void addition(); void substruction(); void production(); void dividation(); void modulation(); DECLARE_MESSAGE_MAP() }; ******************************* #include #include #include #include #include "simple calculator.h" #define plus 11 #define minus 12 #define product 13 #define divide 14 #define mod 15 #define textone 500 #define texttwo 600 #define result 700 char str[50]; CMainFrame::CMainFrame() { Create(NULL, L"MENU BUILDING"); text1.Create (WS_CHILD | WS_VISIBLE | WS_BORDER, CRect(5,10,120,30), this, textone); text2.Create (WS_CHILD | WS_VISIBLE | WS_BORDER, CRect(140,10,255,30), this, texttwo); res.Create (WS_CHILD | WS_VISIBLE | WS_BORDER, CRect(275,10,390,30), this, result); text1.GetWindowText(str1); text2.GetWindowText(str2); wsprintf (str,L"%s",str1 ); a=atol(str); wsprintf (str,L"%s",str2 ); b=atol(str); //wsprintf ( a,L"%s",str1); //wsscanf(str1,"%ld",&a); //a=atol(str); //wsprintf ( (LPWSTR)str,L"%c",str2 ); //wsprintf ( b,L"%s",str2 ); //b=atol(str); //wsscanf(str2,"%ld",&b); b1.Create (L"+", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, CRect(5,50,30,70), this, plus); b2.Create (L"-", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, CRect(45,50,70,70), this, minus); b3.Create (L"*", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, CRect(85,50,110,70), this, product); b4.Create (L"/", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, CRect(125,50,150,70), this, divide); b5.Create (L"%", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, CRect(165,50,190,70), this, mod); //font.CreateFont(20,0,0,0,20,0,0,0, ANSI_CHARSET,OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE,L"arial"); //sta.SetFont(&font); } BEGIN_MESSAGE_MAP( CMainFrame, CFrameWnd) ON_BN_CLICKED (plus, addition) ON_BN_CLICKED (minus, substr

    C / C++ / MFC question

  • making calculator using MFC c++
    G goutom roy

    i am new in c++ MFC.i want to make a simple calculator using mfc with user interface . may i have a ready source code from u friend or any suggesion? please send me full source code.i want to analyse it. plzzzzzzzzzzzzzz........

    C / C++ / MFC c++ design question

  • i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code
    G goutom roy

    i want to create MFC based project in visual studio c++ 2005 and want to run and see my window(such as add buttons, sample text boxes, and other control objects) that i have write code. plz help me. i want to create MFC based project and run..........

    C / C++ / MFC c++ csharp visual-studio help

  • visual studio c++ 2005...how to open MFC project and run
    G goutom roy

    hello , i dont understand what u have said.plz i am new in visual studio c++ 2005.i want to open project and add a cpp file to write c++ MFC code.now how can i open MFC project and .cpp file to write my MFC code in visual studio c++ 2005.tell me plz detail such as menu->project->--------like this. thanks in advance.........

    C / C++ / MFC c++ visual-studio csharp help tutorial

  • visual studio c++ 2005...how to open MFC project and run
    G goutom roy

    hello , i am new in c++ and i am learing vs c++ MFC.how can i open MFC project in vs c++ and compile and run and want to view my window what i have wrote.i can anyone explain me detail how can i open MFC project in vs c++ 2005.i want to see my created window. plz help.

    C / C++ / MFC c++ visual-studio csharp help tutorial

  • HELP ME ABOUT - chat engine
    G goutom roy

    its a web chat engine like yahoo messengers.i dont need clone of messenger. only need to transfer a string and receive a string between two people.i want to use c++ MFC. now list me plz needed c++ MFC classes/functions to build it.plz tell me detail how i have to go ahead.tell me step by step to build this web chat engine.

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

  • HELP ME ABOUT - chat engine
    G goutom roy

    hello, i want to build a chat engine using MFC c++. what classes of MFC i need can anyone tell me? and i need using procedure of these classes. plz tell me detail about procedure of building chat engine.i want to use MFC classes. plz help me.

    C / C++ / MFC c++ help question lounge
  • Login

  • Don't have an account? Register

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