thank you very much
samira forooghi
Posts
-
equivalent of atoi and itoa functions in SDK -
equivalent of atoi and itoa functions in SDKI 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
-
equivalent of atoi and itoa functions in SDKI 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
-
equivalent of atoi and itoa functions in SDKhi every one What is the equivalent of atoi and itoa functions in Windows SDK platform? with special thanks
-
Clipboard [modified]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
-
clipboardi know it . but how can i empty clipboard when its opened by another program?:confused: with special thanks
-
clipboardHi 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
} -
Initialize variable in static library [modified]Thanks a lot
-
Initialize variable in static library [modified]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. -
Initialize variable in static library [modified]thanks for u i correct it ,but its not my problem.
-
Initialize variable in static library [modified]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
-
unhandle exceptionno
-
unhandle exceptionHi 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.
-
protected constructorthanks Mr Stuart Dootson
-
protected constructorcan you give me an example?
-
protected constructori 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'\*/
-
protected constructorhi 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
-
create x64 support ocx in visual c++ 6Hi my dear master :-D i will test it with special thanks Goodluck & Goodbye:rose:
modified on Sunday, December 7, 2008 2:12 AM
-
create x64 support ocx in visual c++ 6hi 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?
-
using lib in vbthanks but how is it about vb6?