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
S

samira forooghi

@samira forooghi
About
Posts
90
Topics
54
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • equivalent of atoi and itoa functions in SDK
    S samira forooghi

    thank you very much

    C / C++ / MFC question

  • equivalent of atoi and itoa functions in SDK
    S samira forooghi

    I am grateful to help you. I test this method, but It is not my problem. When using library, this error message is displayed:

    Build
    [Error] Unit1.pas(130): Unsatisfied forward or external declaration: 'atoi'
    [Error] Unit1.pas(130): Unsatisfied forward or external declaration: 'itoa'
    [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

    but when calling the "atoi" function be deleted from the lib error does not occur. This problem when using "strcpy" function also occurred. But replacing it with the "lstrcpy" function This problem was solved I'm hoping to find a function equivalent to the "atoi" function to this problem be solved. Thanks!

    modified on Monday, January 18, 2010 6:29 AM

    C / C++ / MFC question

  • equivalent of atoi and itoa functions in SDK
    S samira forooghi

    I am grateful to help you I am using these functions, but have not the correct answer. I've created a library in visual c++ and for use it in Delphi, convert it to OMF format. But when I add lib to Delphi ,get an error message where the atoi function is called. Please help me Thanks and respect

    C / C++ / MFC question

  • equivalent of atoi and itoa functions in SDK
    S samira forooghi

    hi every one What is the equivalent of atoi and itoa functions in Windows SDK platform? with special thanks

    C / C++ / MFC question

  • Clipboard [modified]
    S samira forooghi

    Hi every one There is one application on my system that it’s opened my Clipboard and Empty it. but didn’t close Clipboard until closing the application . I want attach to application by my application and send closeclipboard api to it. Its my code but don’t work . how can i empty clipboard when it has been opened by another program? Plz help me.

    CWnd *pWnd=new CWnd();
    BOOL bo,be,bc;
    //========================================================
    // get application Wnd pointer
    //========================================================
    pWnd= GetOpenClipboardWindow();

    //OR
    pWnd=FindWindow("Application class name","Application title");
    //======================================================
    //open , empty and close clipboard
    //======================================================
    if(pWnd)
    {
    bo=pWnd->OpenClipboard(); // return false
    be=EmptyClipboard(); //return false
    bc=CloseClipboard(); //returnfalse
    }

    modified on Saturday, July 11, 2009 8:01 AM

    C / C++ / MFC question json help

  • clipboard
    S samira forooghi

    i know it . but how can i empty clipboard when its opened by another program?:confused: with special thanks

    C / C++ / MFC json help

  • clipboard
    S samira forooghi

    Hi every one There is one application on my system that it’s opened my Clipboard and Empty it. but didn’t close Clipboard until closing the application . I want attach to application by my application and send closeclipboard api to it. Its my code but don’t work . I am cant open clipboard from my application Plz help me.

    CWnd *pWnd=new CWnd();
    BOOL bo,be,bc;
    //========================================================
    // get application Wnd pointer
    //========================================================
    pWnd= GetOpenClipboardWindow();

    //OR
    pWnd=FindWindow("Application class name","Application title");
    //======================================================
    //open , empty and close clipboard
    //======================================================
    if(pWnd)
    {
    bo=pWnd->OpenClipboard(); // return false
    be=EmptyClipboard(); //return false
    bc=CloseClipboard(); //returnfalse
    }

    C / C++ / MFC json help

  • Initialize variable in static library [modified]
    S samira forooghi

    Thanks a lot

    C / C++ / MFC c++ help

  • Initialize variable in static library [modified]
    S samira forooghi

    i havent any problem with new delete , occur exception even this case

    void CUseTestLibDlg::OnBinitlib2()
    {
    CTest pcTest;
    }// Unhandled exception in UseTestLib.exe: 0xC0000005: Access Violation.

    C / C++ / MFC c++ help

  • Initialize variable in static library [modified]
    S samira forooghi

    thanks for u i correct it ,but its not my problem.

    C / C++ / MFC c++ help

  • Initialize variable in static library [modified]
    S samira forooghi

    hi every one I create a static library with visual c++ 6.0 App wizard. I create a new generic class and declared my variables in its header file. Then I initialized my variables in class constructor. I want to use it in a new dialog based project, so I add related header file and write my library name in linker tab at project setting. I create one object of this class in my function, But at the end of function when application exits from function occurs an exception. I can't handle this exception. Note : when I comment initialized this exception don’t happen. Please help me //////////////////////////////////////////////////////////////// // static library class (Test.h) ///////////////////////////////////////////////////////////////

    class CTest
    {
    public:

    CTest();
    virtual ~CTest();
    
    int		 m\_i1;//or INT   
    int		 m\_i2;   
    
        bool		 m\_b1;//or BOOL
    bool		 m\_b2;
    
    unsigned int	 m\_ui1;//or DWORD32
    unsigned int	 m\_ui2;
    
    unsigned short   m\_us1;//or USHORT
    unsigned short   m\_us2;
    
    BYTE		 m\_bte1;//#include  in stdafx.h for BYTE data type
    BYTE		 m\_bte2;
    
    CString	 m\_str1;//#include  in stdafx.h for CString data type
    CString	 m\_str2;	
    

    };

    // (Test.cpp)
    ///////////////////////////////////////////////////////////////
    #include "stdafx.h"
    #include "Test.h"

    //////////////////////////////////////////////////////////////////////
    // Construction/Destruction
    //////////////////////////////////////////////////////////////////////

    CTest::CTest()
    {

    m\_i1=0;
    m\_i2=0;  
    	
    m\_b1=true;
    m\_b2=true;
    	
    m\_ui1=0;
    m\_ui2=0;
    	
    m\_us1=1;
    m\_us2=1;
    	
    m\_bte1=0;
    m\_bte2=0;
    	
    m\_str1="";
    m\_str2="";
    

    }

    CTest::~CTest()
    {

    }

    //////////////////////////////////////////////////////////////// // My dialog base application ///////////////////////////////////////////////////////////////

    void CUseTestLibDlg::OnBinitlib()
    {
    CTest *pcTest=new CTest();

        delete pcTest;
    pcTest=NULL;
    

    }// Unhandled exception in UseTestLib.exe: 0xC0000005: Access Violation.

    void CUseTestLibDlg::OnBinitlib2()
    {
    CTest pcTest;

    }// Unhandled exception in UseTestLib.exe: 0xC0000005: Access Violation.

    modified on Wednesday, April 29, 2009 6:26 AM

    C / C++ / MFC c++ help

  • unhandle exception
    S samira forooghi

    no

    C / C++ / MFC help c++

  • unhandle exception
    S samira forooghi

    Hi to all, I am facing one problem is that I am used VC++ 6 in that i have created one MFC based application,In that i added the static library but when I create one object from one its class in one function ,the function at the time of exit it gives me error followed, Unhandled exception at 0x... (mfc42.dll) in test.exe: 0x.... : Privileged instruction. So plz check that I hope that I will reach towards answer by using ur help.

    C / C++ / MFC help c++

  • protected constructor
    S samira forooghi

    thanks Mr Stuart Dootson

    C / C++ / MFC question help

  • protected constructor
    S samira forooghi

    can you give me an example?

    C / C++ / MFC question help

  • protected constructor
    S samira forooghi

    i test it but i get this error: error C2248: 'CAsynlstn::CAsynlstn' : cannot access private member declared in class 'CAsynlstn' [path]: see declaration of 'CAsynlstn::CAsynlstn'

    class CMyCtrl : public COleControl
    {

    private:
    friend class CAsynlstn;
    CMyCtrl();
    ~CMyCtrl();
    }

    //////////////////////////////////////////
    class CAsynlstn : public CAsyncSocket
    {

    private:
    CAsynlstn(COleControl* pDlg);
    virtual ~CAsynlstn();

    };
    ///////////////////////////////////////
    //CMyCtrl.h
    ///////////////////////////////////////
    public:
    CAsynSvSk* m_pSrvrSock;
    ///////////////////////////////////////
    //CMyCtrl.Cpp
    ///////////////////////////////////////

    m\_pLstnSock = new CAsynlstn(this) /\*error C2248: 'CAsynlstn::CAsynlstn' : cannot access private member declared in class 'CAsynlstn' \[path\]: see declaration of 'CAsynlstn::CAsynlstn'\*/
    
    C / C++ / MFC question help

  • protected constructor
    S samira forooghi

    hi every one How can i create object of a class with protected constructor? i dont want drived it from base class. is it possible using friend class? Plz Help me

    C / C++ / MFC question help

  • create x64 support ocx in visual c++ 6
    S samira forooghi

    Hi my dear master :-D i will test it with special thanks Goodluck & Goodbye:rose:

    modified on Sunday, December 7, 2008 2:12 AM

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

  • create x64 support ocx in visual c++ 6
    S samira forooghi

    hi every one i have one ocx that build it in mfc6. i useed it in all Developers at 32 bits windows. but when i drag control on the form in x64, crash the application. i rebuile it in x64 and test it again but it didnt work. pls help me. how i can create x64 support ocx in visual c++ 6?

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

  • using lib in vb
    S samira forooghi

    thanks but how is it about vb6?

    Visual Basic tutorial question
  • Login

  • Don't have an account? Register

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