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
A

Ahmad

@Ahmad
About
Posts
33
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FlexGrid again
    A Ahmad

    HI I use (Microsoft FlexGrid Control, version 6.0) which is active x control . It’s very useful, but some member functions are unclear . Now I’m interested in how useing two functions and maybe they will be the keys of the rest functions . 1 – void AddItem(LPCTSTR Item, const VARIANT& index) to add new rwo BUT HOW??? 2 - long GetRowData(long index) to get data from specific row BUT HOW??? I put this qustion befor and one told me look for (MsFlxGrd.hlp) I tried to find it but there is no file like this Thank you very much … AHMAD ALWASHALI

    C / C++ / MFC database json question announcement

  • Try and catch but there is debug
    A Ahmad

    Hi every one I use try and catch to initial some things or destroy when some thing wrong. It’s works fine ,but an debug assertion occurred when destroy window. My code like this : BOOL MyDlg::OnInitDialog() { m_dat = new CDaoDatabase; try { m_dat->Open("dat.mdb"); } catch (CDaoException* e){ delete m_dat; m_dat=NULL; e->ReportError(); e->Delete(); CDialog::OnCancel(); } } I hope for any one can help me to avoid that debug assertion and tell me more about it ... Thank you,,, AHMAD ALWASHALI

    C / C++ / MFC debugging help

  • What does 'handle' mean ?
    A Ahmad

    HI I’m confused between pointer to CWnd and handle also to CWnd .What’s the difference between handle and pointer in CWnd object .For example when I want to chat text color in text box control : HBRUSH CMyDlg::OnCtlColor(CDC*pDC,CWnd*pWnd,UINTCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); ////////////////////////////////////////////// CWnd* wnd=GetDlgItem(IDC_EDIT1); if(wnd==pWnd) // using pointers { pDC->SetTextColor(RGB(255,0,0)); } /////////////////////////////////////////////// return hbr; } this code doesn’t chang text color .But when I use handles like this example : HBRUSH CMyDlg::OnCtlColor(CDC*pDC,CWnd*pWnd,UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); //////////////////////////////////////////////// CWnd* wnd=GetDlgItem(IDC_EDIT1); if(wnd->m_hWnd==pWnd->m_hWnd) // using handles { pDC->SetTextColor(RGB(255,0,0)); } /////////////////////////////////////////////////// return hbr; } now this code do what I want to chang text color . Can any one tell me what difference between pointers and handles in CWnd objects ? Thank you … AHMAD ALWASHALI

    C / C++ / MFC tutorial question lounge

  • 'FlexGrid Control'
    A Ahmad

    HI I use (Microsoft FlexGrid Control, version 6.0) which is active x control .It’s very useful, but some member functions are unclear . Now I’m interested in how useing three functions and maybe they will be the keys of the rest functions . 1 – void AddItem(LPCTSTR Item, const VARIANT& index) to add new rwo BUT HOW??? 2 - long GetRowData(long index) to get data from specific row BUT HOW??? 3- How can I get data from multi row selection ? Thank you very much … AHMAD ALWASHALI

    C / C++ / MFC question database json announcement

  • ‘CdialogBar’?
    A Ahmad

    HI Is there any way to use or accommodate ‘CdialogBar’ with ‘Cdilalog ‘ ?How? I tried to do this but an error at runtime occurred ,my code like below : BOOL CmyDlg::OnInitDialog() { . . . . . m_DialogBar.Create(this, IDD_DLGBAR, WS_VISIBLE|WS_CHILD|CBRS_LEFT, 1); m_DialogBar.EnableDocking(CBRS_ALIGN_LEFT); } Thank you ,,, AHMAD ALWASHALI

    C / C++ / MFC help question

  • hmmm DAO !!! 3 question ???
    A Ahmad

    Thank you very much,your answer was very useful ...:) AHMAD ALWASHALI

    C / C++ / MFC c++ database question announcement

  • hmmm DAO !!! 3 question ???
    A Ahmad

    Hi :) I have some question about DAO : 1 - When I use MFC wizard there is three choice (Snapshot , Dynaset , Table),so what difference ... 2 - If my access file has two tables I have two problems : A- How I can determine which table I want to add record ... B- When I use code like this m_pSet->AddNew(); m_pSet->m_id=1; //table 1 m_pSet->m_name="Ahmad"; //table 1 m_pSet->m_id2=1; //table 2 m_pSet->m_phone=21598356; //table 2 m_pSet->Update(); a meesage box appeare and tell me that : Can't update. Database or object is read only 3- How I can use SQL statements with VC++ 6 ... Thank you AHMAD ALWASHALI

    C / C++ / MFC c++ database question announcement

  • Can I dialing from my programme ???
    A Ahmad

    Hi :) - Microsoft Communication Control which it as Active X control ,,, I think it's for dialing by FaxModm,so any one can tell me how I can use it ,,, I hope if you can tell me about any web site can give me a simple about that... - And if I used TAPI function , is it must the DIALER(MICROSOFT) programe run to do the function like Address Book project which you can find it in codeproject(Home >> Samples >> General )??? And I hope if you can tell me about any web site can give me a simple and explain about TAPI... Thank you AHMAD ALWASHALI

    C / C++ / MFC question lounge learning

  • e - Book
    A Ahmad

    Hi Just go to (www.maxcode.com) then go to visual c++ tutorial section or go (www.viet-learn.com) here you can get alot of free e-book :) AHMAD ALWASHALI washali@yahoo.com

    C / C++ / MFC c++ question learning

  • TolTip
    A Ahmad

    you are in codeproject you find sample about that go to Dialog and Windows Programming , then Tooltips in modal dialog boxes :) AHMAD ALWASHALI

    C / C++ / MFC

  • Printing question
    A Ahmad

    go to www.maxcode.com and then go to visual c++ toturials you find free e-book abou visual c++6 and you find whole chapter about Printing and you find the answer about your question... AHMAD ALWASHALI

    C / C++ / MFC question tutorial

  • CFile and my class
    A Ahmad

    CFile and my class some problem when I use Cfile to write and read my class I write this class : class omega { public: CString o_str; omega(); virtual ~omega(); }; after that (write work) in functio with button control : void CMyDialog::OnButWrite() { char name[]="mydata.dat"; CFile cfl(name,CFile::modeCreate | CFile::modeWrite); omega om; om.o_str = "OMEGA"; cfl.Write(&om,sizeof(om)); cfl.Close(); } then (read work) in functio with button control : void CMyDialog::OnButRead() { char name[]="mydata.dat"; CFile cfl(name,CFile::modeRead); omega om ; cfl.Read(&om,sizeof(om)); MessageBox(om.om2.o_str,"DATA FROM mydata.dat " ); } now the problem here ... the program was compiled without any errors but in run time , when you do write work and then read work error message apeare and tell me that : that's caused an error in MSVCRTD.DLL then another message apeare and tell me that : Debug Assertion Failed! FILE:dbgheap.c LINE:1017 Expression : _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) this problem is apeare when I use CString in my calss and didn't apear when I use base types like char,int...etc any one can helpe me... AHMAD ALWASHALI

    C / C++ / MFC help debugging

  • Strange kind of class
    A Ahmad

    Thank you lauren but (CImage)class defined in cimage.lib which I append it in my project can you tell me please AHMAD ALWASHALI

    C / C++ / MFC help question

  • Strange kind of class
    A Ahmad

    HI Strange kind of class Some times I see this class like below : LINE 1 : class CImage; LINE 2 : class CTestpicDlg : public CDialog LINE 3 : { LINE 4 : // Construction LINE 5 : public: LINE 6 : void draw(); LINE 7 : CImage *image; LINE 8 : CTestpicDlg(CWnd* pParent = NULL); // standard constructor LINE 9 : } So my question is about two thing's : 1- (CImage)class ,it hasn't any braces and !!! 2- The (CImage)class defined in cimage.lib which I append it in my project so why I must write LINE 1, if I omit this line I get alot of errors like : error C2143: syntax error : missing ';' before '*' error C2501: 'CImage' : missing storage-class or type specifiers Thank you ... AHMAD ALWASHALI

    C / C++ / MFC help question

  • ominous message
    A Ahmad

    HI One day ,the weather is very nice ,every thing working properly . When I work in my project by visual c++6 , but!!! suddenly ominous message appeared it's tell me that : Out of memory I don't know what I did ,my project is very small. When I open my project by (.dsw) nothing appear and by (.dsp) the ominous message appear ... any one can help me please ... Thank you ... AHMAD ALWASHALI

    C / C++ / MFC c++ performance help

  • Question about IPicture
    A Ahmad

    HI Question about IPicture As I know IPicture class can work whith custom types which I can find it in PICTYPE enumeration (look in MSDN) but when I went to codeproject>> Bitmaps & Palettes >> Bitmaps and then( Simple class for drawing pictures ) I found I can load other types like jpg, tif, gif(but tif didn't work) Is this secrets so it most didn't apear in MSDN or what !!! Thank you ... AHMAD ALWASHALI

    C / C++ / MFC graphics question

  • How I can play mp3 files from my program
    A Ahmad

    HI ALL :) How I can play mp3 files from my program any one can tell me how I can play mp3 files from my program (by visual c++6) or tell me about web sites about mp3 files THANK YOU AHMAD ALWASHALI

    C / C++ / MFC c++

  • bitwise left shift and sight shift Operators << , >>
    A Ahmad

    Thank you very much AHMAD ALWASHALI

    C / C++ / MFC tutorial

  • pointer of pointer(char** ch)
    A Ahmad

    Thank you very much AHMAD ALWASHALI

    C / C++ / MFC tutorial

  • some thing is strang in double type
    A Ahmad

    Thank you very much :) AHMAD ALWASHALI

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

  • Don't have an account? Register

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