|
hendry197 wrote: that error occurs. note that the "create" function is a static function. it is defined in other class in other project.
Is this other project a library? If so, you need to include the header and add that lib to your project.
|
|
|
|
|
maybe you need to import library(lib) in your program
whitesky
|
|
|
|
|
I just tried it. I just tried to add the path to the .obj (.obj is like lib too, right?) files too. it seems work. thank you guys ^_^
regards,
Hendry
|
|
|
|
|
hi all
i have a problem .
In Listbox by typing the first character of a selection the item can be selected
is it possible to restrict this property of list box
if possible how??
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
|
Can you be more specific
whitesky
|
|
|
|
|
hiiiiiiiiiii,
this is the solution...
u have to do is:
1) u need to Dervie a class from CListBox
2) map the listbox in ur application to Derived listbox class.
3)Override the virtual function OnChar in ur Derived class.
void CMyListBox::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
//CListBox::OnChar(nChar, nRepCnt, nFlags); important
}
comment this code
CListBox::OnChar(nChar, nRepCnt, nFlags);
Regards
Prashanth.v
|
|
|
|
|
thanks
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
Try this way. Using Add Class command, add a new MFC class derived from CListBox . Then add to this class a handler for WM_CHAR notifications. In this handler, return without calling anything.
In the dialog box where list box is used, select the list-box and then use Add Variable in order to add a control variable. In the Variable Type field, specify the name of your list-box class.
If you already have a variable for your list, then open the header file of your dialog and replace CListBox type with the name of your list-box class.
Hope it helps.
|
|
|
|
|
I use NcAPI & Netcard2280 to programm for USB device. How determine a packet is NULL packet when Netcard get packet form host PC
-----------------
conglt
|
|
|
|
|
I've written an application which will use virtual COM port (USB-to-Serial) to communicate with my device. I am using CreateFile/ReadFile/WriteFile functions. It is running fine until one issue found.
With the application open, when (somehow) the USB driver reload, my application fail to perform read/write. Even after I close the application and reopen it, it fails to get the handle.
Why is it happen? Are there anything that my application need to do when the USB driver is re-loaded?
Thanks.
TC
|
|
|
|
|
hi all,
How can i run C++ code in BREW application because brew has it's own function and i want to generate my own function in BREW and pass the string.
and that string i pass another string after click in emulator.can you help me out for that.
Thanks...........
Nitin Dalal.
nitin
|
|
|
|
|
:(CString FilePath;
FilePath = writeFilePath+ DMID + "." + test;
// then FilePath = c:/temp/1234.jpg
objEWFFile.Open(FilePath, CFile::modeCreate | CFile::modeWrite, NULL);
It doesn't work...
How can FilePath change to LPCTSTR ??
|
|
|
|
|
mimimimilaw wrote: It doesn't work...
In what way? What errors do you get? When do you get them, compile time or runtime?
Did you debug your source code?
|
|
|
|
|
You can do this as
CString str="abcd";
const char* data_char = (LPCTSTR) str;
//However you shouldn't be having any errors with opening the file using a CString type filename
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
-- modified at 2:24 Tuesday 20th June, 2006
|
|
|
|
|
CString has a LPCTSTR cast operator, which means you can safely do
LPCTSTR lpStr = (LPCTSTR)oMyCStringObj;
|
|
|
|
|
mimimimilaw wrote: It doesn't work...
How can FilePath change to LPCTSTR ??
What is the type of objEWFFile ??
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
Are you sure the // FilePath = c:/temp/1234.jpg path is correct?
check it and try following for opening file.
objEWFFile.Open((LPCTSTR)FilePath.GetBuffer(0), CFile::modeCreate | CFile::modeWrite, NULL);<br />
FilePath.ReleaseBuffer();
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
can you explain for me whats wrong in this code
<br />
CString FilePath;<br />
CString writeFilePath;<br />
writeFilePath=_T("e:\\");<br />
CString DMID;<br />
DMID=_T("123");<br />
CString test;<br />
test=_T("jpg");<br />
CFile objEWFFile;<br />
FilePath = writeFilePath+ DMID + _T(".") + test;<br />
objEWFFile.Open(FilePath, CFile::modeCreate | CFile::modeWrite, NULL);<br />
whitesky
|
|
|
|
|
here i have a problem to access the portnumbers of different applications running in my project
#sankar#
|
|
|
|
|
|
Hi,
Iam writing a ComPort related program. Iam setting the state of the com port using SetCommState(). Iam considering stop bits also. When I use 1 or 2 stop bits , SetCommState is working fine. But when I use 1.5 (ONE5STOPBITS), SetCommState() is not working, i.e its returning 0.
Why is it not working?What changes should I make?
Thank you.
Ayesha
|
|
|
|
|
Hi All,
Once I have seen a plugin in codeproject which helps visual studio 6 to load MSDN on "F1" button press. I just forgot its name. Could you help me to find it out?
SaRath.
"Do Next Thing..."
Understanding State Pattern in C++
|
|
|
|
|
hi,
can anbody tell me which header file i include in C++ when i work on BREW application.I develop Brew set-up and make helloworld project and under that project name i want to build C++ code.I write the code but the error will come and tell me Fatal error with header file.i include "iostream" file but it doesn't work.so which i include in header file.please help me out for that.
Thanks...
Nitin Dalal
nitin
|
|
|
|