|
Hi all,
I m trying to make an activex control and i hav added some custom properties to it and made the Get/Set functions thru the wizard bar.
i made the control sucessfully.
But .....
The problem begins when i insert the control to another project
it makes 2 file one is "control.h" and other is "control.cpp"
which contains the declration and code of the activex component.
in place of custom property decralation in .h the IDE says that type of functions i.e get and set are in valid
It rather writes :-
"property 'ShowFrame' not emitted because of invalid type"
how can i resolve it pls help me out
thank you
Regards,
Pankaj Sachdeva
|
|
|
|
|
sending a string as keyboard keystrokes wrongly
as u can see from my following code, KeyBoadText() is a function that accepts a string and then type the string out as if it was typed using the keyboard. but now i am having problem when my typetext = "abc"
instead of typing "abc", it types "123". how can i solve this?
[CODE]
void CStocksmsDlg::KeyBoardText(CString typetext)<br />
{<br />
<br />
int text_len = typetext.GetLength();<br />
<br />
<br />
for(int i =0; i<text_len; i++)<br />
{<br />
INPUT Input[2];<br />
KEYBDINPUT ki;<br />
<br />
ki.dwFlags = KEYEVENTF_EXTENDEDKEY | 0;<br />
ki.time = 0;<br />
ki.wScan = 0;<br />
ki.wVk = typetext.GetAt(i);<br />
Input[0].type = INPUT_KEYBOARD;<br />
Input[0].ki = ki;<br />
ki.dwFlags = KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP;<br />
ki.dwFlags = KEYEVENTF_KEYUP;<br />
Input[1].type = INPUT_KEYBOARD;<br />
Input[1].ki = ki;<br />
SendInput( 2, Input, sizeof(INPUT) );<br />
}<br />
<br />
} [/CODE]
|
|
|
|
|
u r sending keys "abc" of ascii 97,98,99 which stands for VK_NUMPAD1,VK_NUMPAD2,..
If u want print 'abc' then turn off capslock and send "ABC"
see "winuser.h"
|
|
|
|
|
I have some requriement to convert the text form one language from to ohter.Say I have the some text in the .txt file(Englis), i need to convert the text into other language(Korean).Plz suggest me is there any way to do this.
With regards,
Kishore V
kishore
|
|
|
|
|
How is this a Visual C++ / MFC question?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
you cant simply change the system language and hope your file to be changed to tht language, ya but there are ways,
|
|
|
|
|
Google language tools here[^] can do a rough translation.
|
|
|
|
|
|
I work with Visual C++ (currently in Visual Studio2005) on win xp. I have a resizable dialog bar - from a class I derived from CDialog bar to be resiable. The dialog box contain a list box and some button at bottom. Dialg bar is covering entire length of MDI. When i am resizing the main window the dialog bar is also resizing. But at resulution ( 1280 * 1024 ) pixels it covers only the 3/4 length of MDI.
What I did is increasd the length of the dialog bar in resource and that solved the problem. But is this right way of doing this or is there some method to increase the lenght of dialog at runtime.
Sandip
|
|
|
|
|
Can anybody give me a working version of portuser.cpp of Gary Nebbet,
i mean i must compile it properly with DDK2000/XP and PlatformSDK.
Thank you very much.
|
|
|
|
|
What will be best way of providing security to our application in MFC.I mean how to generate installation key to our Applicationn. can u post your suggestions..
Thaking you
swamy
|
|
|
|
|
See here[^], I hope it helps you.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi _AnShUmAn_,
Thaking for giving this article. But Iam asking about "In what basis we will generate the key" i.e., either by using System Hard Disk Serial number or MAC address??
Thanking you,
swamy.
|
|
|
|
|
Hi Experts,
Can i use CHtmlView to display html as well as text data.If yes,how to get a pointer of CHtmlView
CHtmlEditCtrl *HtmlCtrl=&Get?????????();
|
|
|
|
|
If you want to show html file or text file with ChtmlView you can do it.
|
|
|
|
|
Hello,
Can anyone help me with MFC framework concepts while creating windows . I have written a few programs for creating windows and child windows but still there is confusion regarding the call to ONInitdialog(),OnCreate(),DoDataExchange() and Update() functions of CWnd.
Pritha
|
|
|
|
|
|
|
|
Do you get any error or have problem on your program?
|
|
|
|
|
Hello,
Thanks for your concern.
You have also replied to my other mails where my problem is about creating dialogs without resource-ID.
You directed me to a link where a program example was given about the same.
It was helpful but still I am stuck in my program.
This is my code.
D dlg;
DLGTEMPLATE *d = new DLGTEMPLATE;
d->x = 10;//(short)m_Rect.left;
d->y = 10;//(short)m_Rect.top;
d->cx = 200;//(short)m_Rect.Width();
d->cy = 200;//(short)m_Rect.Height();
d->style = WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_SETFONT;
d->cdit = 0;
int iRet = dlg.InitModalIndirect(d);
dlg.DoModal();
Here in the above code I get iRet = 1 but the dialog box is not displayed even when I give dlg.DoModal()
Thanks
Prithaa
|
|
|
|
|
Im sorry I dont have any compiler know but I think if returns 1 so it can makes your dialog.
|
|
|
|
|
Dear all
how to understand parameters below. give me suggestion.thanks a lot.
CFileDialog dlg(FALSE,_T("BMP"),_T("*.BMP"),OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,_T("Save bitmap pattern(*.BMP)|*.BMP|"));
Li Zhiyuan
29/06/2007
|
|
|
|
|
CFileDialog( BOOL bOpenFileDialog, LPCTSTR lpszDefExt = NULL, LPCTSTR lpszFileName = NULL, DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, CWnd* pParentWnd = NULL );
Parameters
bOpenFileDialog
Set to TRUE to construct a File Open dialog box or FALSE to construct a File Save As dialog box.
lpszDefExt
The default filename extension. If the user does not include an extension in the Filename edit box, the extension specified by lpszDefExt is automatically appended to the filename. If this parameter is NULL, no file extension is appended.
lpszFileName
The initial filename that appears in the filename edit box. If NULL, no filename initially appears.
dwFlags
A combination of one or more flags that allow you to customize the dialog box. For a description of these flags, see theOPENFILENAME structure in the Win32 SDK documentation. If you modify the m_ofn.Flags structure member, use a bitwise-OR operator in your changes to keep the default behavior intact.
lpszFilter
A series of string pairs that specify filters you can apply to the file. If you specify file filters, only selected files will appear in the Files list box. See the Remarks section for more information on how to work with file filters.
pParentWnd
A pointer to the file dialog-box object’s parent or owner window.
hope this willget all clear
|
|
|
|
|
true mean file open dialog n false mean file save as dialog
|
|
|
|