|
Hi Gurus,
My CListView-based control doesn't display items more than 200. Why? I've got no error while calling CListCtrl::InsertItem().
Moreover, CListCtrl-based control in the same application but on different dialog box works without above problem.
I can't realize why. Please, help.
Sincerely Yours,
RadioShark
|
|
|
|
|
What does InsertItem() return when inserting the 201st item?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi All,
I am using .Net 2002 environment in windows 2000 OS. I am try to convert unicode(Japanese) string to CString. I can convert the unicode string to ansi string(CString) when i set the locale(japanese) in regional options. That was showed like come ascii chars(,"êÜ). If i set the locale to english, then the ascii chars showed as ??? marks. But the need is the unicode convert into some ascii chars like from japanse locale. I tried to set the locale using setlocale() method. But there is no effect. I wrote the code is
setlocale(0,"Japanese");
The default locale is not set. I want to set the default locale dynamically. If anyone have the solution about this problem, please let me know.
Maharaj.M
|
|
|
|
|
In this case, what does setlocale() return?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi DavidCrow,
The setlocale returns Japanese_Japan.932, that means its taken Japanese locale. I want to remind you that if set the default locale then its working fine(Japanese locale set).
Thanks and Regards,
Maharaj.M
|
|
|
|
|
Hi DavidCrow,
The setlocale returns Japanese_Japan.932, that means its taken Japanese locale. I want to remind you that if set the default locale then its working fine(Japanese locale set).
Thanks and Regards,
Maharaj.M
|
|
|
|
|
I am using code given in Code Project "Skining Slider control by Ashok Jaiswal"
But it shows skin only when i clicks on it.
please solve my problem
Learner always
|
|
|
|
|
hello,
when i started making a wrapper for clucene in MFC, i made the frontend of searching files and directory using the system namespace.
using namespace System;
using namespace System::Collections;
using namespace System::IO;
but then when passing the "path" arguments to functions defined in clucene there is a mismatch of type.path in clucene is of type char[] and the directory specified in my frontend is of type System::String * __gc.
is there nething that i am doing in a wrong manner.or is there some other way to create a wrapper for clucene in MFC.
i may be wrong in my "coding" as i have started this coding buisness very recently.please correct me.ne help will be deeply appreciated..
thanking you all...
rakesh.
|
|
|
|
|
Hi,
On my application ( eVc++ 4.0 - PocketPC2003 ) I use a Dialog that cuts the task bar and fits the screen the code to do that is:
void FitIt(HWND Form)
{
CWnd* TaskBarWnd = CWnd::FindWindow(_T("HHTaskBar"), _T(""));
if (TaskBarWnd) TaskBarWnd->ShowWindow(SW_HIDE);
SHFullScreen(Form, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON );
#define MENU_HEIGHT 26
CRect rect;
GetWindowRect(Form,&rect);
rect.top -= MENU_HEIGHT;
MoveWindow(Form,rect.left, rect.top,rect.Width(), rect.Height(), TRUE);
}
(I call this function in the end of the OnInitDialog())
The problem is: when an extern Message appears(such as the one that advises me that I'm connecting or disconnecting to the pc) , when this Message disappears the Dialog is redrawn
"over" the other, but starting from the point under the first
taskbar, with the result that all the form seems to be moved down and I get double "mytaskbar".
I'm asking: what event exactly happens when an extern Message comes over my dialog? where can I write the code to build again my dialog when a Message appears?
|
|
|
|
|
hello, lets take the following example.
class A
{
virtual void fun(){}
};
class B: public A
{
void fun();
virtual void funB(){}
};
class C:public B
{
void fun(){}
void funB(){}
};
now if we define an object of class C, and if we debug the application using MSVC debugger, then inside the object of C, the vtable will show the pointer to only fun(). although in actual memory of the vtable the pointer to funB() will be there, it is not displayed in the debugger's vftable entry. i am curious to know why it is like this.
somenath m
|
|
|
|
|
To me is mystery why did it compiled, because in class C you try to override fun(), even though you should not be able, because it is already overriden in class B and its not virtual anymore.
I cant help you about the rest, because MSVC does not show pointers to funcs to me at all.
|
|
|
|
|
Hi Somu,
It will not give you compile error because it is virtual function mechanism(run time binding), So it will raise Linker error.
Deelip Patil
|
|
|
|
|
Hi Somu,
It will not give you compile error because it is virtual function mechanism(run time binding), So it will raise Linker error.
Deelip Patil
|
|
|
|
|
Hi Somenath,
now if we define an object of class C, and if we debug the application using MSVC debugger, then inside the object of C, the vtable will show the pointer to only fun().
=>Class C object will contain vptr pointing to virtual table for class C and as thee are 2 virtual functions and first declared function is fun(), vptr will contain address of this class C "fun()".
although in actual memory of the vtable the pointer to funB() will be there, it is not displayed in the debugger's vftable entry. i am curious to know why it is like this.
=>yes as object C will contain only one ptr.
class B: public A
{
void fun(); // modify this as void fun(){};-> add braces / def.
virtual void funB(){}
};
|
|
|
|
|
Hi Dilip, consider the problem as mentioned below.
class A
{
public:
virtual void fun(){}
};
class B: public A
{
public:
virtual void fun(){};
virtual void funB(){}
};
class C:public B
{
public:
virtual void fun(){}
virtual void funB(){cout<<"This is in class c's funB()"<
|
|
|
|
|
Hi Somenath,
now if we define an object of class C, and if we debug the application using MSVC debugger, then inside the object of C, the vtable will show the pointer to only fun().
=>Class C object will contain vptr pointing to virtual table for class C and as thee are 2 virtual functions and first declared function is fun(), vptr will contain address of this class C "fun()".
although in actual memory of the vtable the pointer to funB() will be there, it is not displayed in the debugger's vftable entry. i am curious to know why it is like this.
=>yes as object C will contain only one ptr.
class B: public A
{
void fun(); // modify this as void fun(){};-> add braces / def.
virtual void funB(){}
};
|
|
|
|
|
|
I'm using mailslot IPC method to have 2 machines communicate..
But I realized that GetMailslotInfo method which is used to get message,
does not block until it gets some..
It just returns even if there was nothing in slot..
How can we make the method block until it gets some data...?
Best Regards.
Bektek
|
|
|
|
|
Salve,
I'm a developer and I write applications in visual c++ (using eVc++ 4.0) for a Dolphin 9500 . In order to scan barcodes I need to use the functions waConnect(), waDefaultSymbology(), waDisableSymbology(), waEnableSymbology(), waWaitForDecode() and waDisconnect().
I had to include in my project the external dependencies engnapi.h and wadecodece.lib and everything seems to work.
The problem comes out when I try to compile for Debug: the compiler asks for two files: HHPSCANINTERFACE.DLL and WADECODECE.DLL. Both this files are unfoundable for me.
I often need to debug my program, and I really need to solve this problem, have you got any suggestion? Where can I find these files?
(Note: I cannot use ScanWedge to scan my barcodes, so I HAVE TO use the functions written above)
|
|
|
|
|
Hi.
I want to create controls on the dialog box at runtime. I need to convert between dialog units and pixels.
I tried the following:
CFont *pFontDlg= GetFont(); // font of dialog.
LOGFONT logfont;
pFontDlg->GetLogFont(&logfont);
The problem is that the width (logfont.lfWidth)is zero. So I am unable to use the formula. Please help !!!
From : Digambar K. digambar_k2004@yahoo.co.in
Thanks....!!!!
|
|
|
|
|
This is a very bad idea. Dialog units are used for a reason, namely so that a program does not have to be concerned with what resolution and font are currently in use. By hard-coding controls based on pixel size, you have limited the portability of your program to only one computer. See this comment for more.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
|
I have written a program that used mschart and I install this program on the computer that not installed VC. the problem is if I set chart on the dialog directly,all that is ok.but if I create it in my codes dynamically,chart can not be shown. in my computer this problem does not exist,what is the reason?
|
|
|
|
|
hi
mschart is component usually registered with the MFC. that why u didn't get any problems whem u r working with ur system. If u want to install it some other machine which doesn't have the mschart component, you must explicitly register it with regsrv32 tool
naren
|
|
|
|
|
I have registered this componet
|
|
|
|