|
How do i create a new window ina MFC dialog based app w/o using window wrapper class SDK way ?
|
|
|
|
|
::CreateWindow or ::CreateWindowEx .
|
|
|
|
|
Not SDK way ... with "Create" or "CreateEx" there is no way really ?
|
|
|
|
|
Now you leave me baffled. What is it that you want to do, not use SDK and not use any classes? As this is completely nonsensical, I guess you have to clarify the question a little.
|
|
|
|
|
When i close the app from where i copy image or text in my program the image or text is pasted once again .I noticed that the number returned by GetClipboardSequenceNumber is incremented by 2, but i don't understand why.Can anyone help me please?Thanks a lot.
|
|
|
|
|
hi,
i had created a project in vc++ using MFC Dialogbased Application.i want to create a setup file.plz help me.
Thank you.
|
|
|
|
|
just use ur executable file and support files to cereate ur setup
|
|
|
|
|
buddy
you can tru InstallShield or Any free Setup Creator you can find.try to find it on download.com
ok
-----------------------------
"I Think It will Work"
Formerly Known As "Alok The Programmer" at CP
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
There is an article on codeproject, i don't remember exactly the name, but you can search by install shield tutorial.
|
|
|
|
|
Thank u verymuch for ur help.
I saw that article it helped me a lot.
nevis
|
|
|
|
|
Hey.
I need a way to write a mouse program, to control a mouse curser; without going through the mouse port.
Do you know of such a program, or where to find info?
Thanks
Rusty
|
|
|
|
|
Use "Inno Setup", totally freeware program, search google for it.
|
|
|
|
|
hi,
i want to use a 3rd party library file in VC++ application,what are the steps i have to follow to include that library in my application and use the functions present in the library.
|
|
|
|
|
Gosh. You will definitely want to read up on the linker before you continue. Basically, you add a lib-file to the linker, include the library header(s) as appropriate and just call the functions.
|
|
|
|
|
Is there any code snippets for converting the
numeric to text currency conversion
Like 50.50 fifty Ruppies Fifty paise.
>
mind is everything.
|
|
|
|
|
CString temp;
temp.Format("%d",number);
If you want to add ruppies you gonna need your own algorithm
-------------------------- Work hard and a bit of luck is the key to success.
|
|
|
|
|
goodmast3r wrote:
CString temp;
temp.Format("%d",number);
HEY NOT THAT
i mean like
if you enter, 123
then that will convert into a string like
'ONE HUNDRED AND TWENTY THREE"
mind is everything.
|
|
|
|
|
|
http://www.codeproject.com/string/numword.asp[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Thans a lot
mind is everything.
|
|
|
|
|
I'm trying to come up with a way to loop "strings as statements" back to the "Real Mode" command line interpreter. Any ideas?
|
|
|
|
|
this is my first login this forum.
my question :
i making a ftp client with socket api,but a with it.i can't do it
who can help me and see my code a part . thank you.
bool CCftpdemoDlg::Getftpserverdir()
{
SOCKET m_datsocketsvr;//数据连接socket
SOCKET m_datsocketclient;//ftp server 的数据客户socket
SOCKADDR_IN hostaddr;
//向ftp server发送命令"TYPE I"
//数据格式命令
if (!SendCommandtoftpsvr("TYPE I\r\n"))
return false;
//创建监听的socket等待ftp server 反向连接
m_datsocketsvr=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
if (m_datsocketsvr==SOCKET_ERROR)
{
CString szerr;
szerr.Format("socket()error!\t%d",WSAGetLastError());
AfxMessageBox(szerr);
return false;
}
hostaddr.sin_family=AF_INET;
hostaddr.sin_addr.S_un.S_addr=INADDR_ANY;
// hostaddr.sin_port=htons(5002);
if(bind(m_datsocketsvr,(struct sockaddr*)&hostaddr,sizeof(hostaddr))==SOCKET_ERROR)
{
CString szerr;
szerr.Format("bind()error!\t%d\n",WSAGetLastError());
AfxMessageBox(szerr);
return false;
}
/* int iErrorCode = WSAAsyncSelect(m_datsocketsvr,m_hWnd, WM_DATLISTEN, FD_ACCEPT|FD_READ|FD_WRITE|FD_CLOSE);
if (iErrorCode == SOCKET_ERROR)
{
CString szerr;
szerr.Format("WSAAsyncSelect()error!\t%d\n",WSAGetLastError());
AfxMessageBox(szerr);
return false;
}
*/
if (listen(m_datsocketsvr,5)==SOCKET_ERROR)
{
CString szerr;
szerr.Format("listen()error!\t%d\n",WSAGetLastError());
AfxMessageBox(szerr);
return false;
}
//得到本地ip和断口
CString szip=changeip("192.168.122.15");//*****注意:这个ip一定是本地的ip,让ftp server连接你
UINT nport;
CString szipx;//暂时先用不上这个ip
Gethostipport(m_datsocketsvr,szipx,nport);
// 现在还不明白这句是什么意思,将ip和断口号与256的计算结果
// 连接起来,然后做为PORT命令的参数,发送给ftp server
szip.Format(szip+",%d,%d\r\n",nport / 256,nport % 256);
if (!SendCommandtoftpsvr("PORT "+szip))
return false;
//发送LIST的命令向ftp server
// 并且接收ftp server的回应
if (!Sendcommand("LIST "))
return false;
if(!Rev())
return false;
// AfxMessageBox("sDSDs");
//如果以上都通过了,ftp server 开始连接本地的正在监听的socket
// 用来传输数据,
// 以下是接受ftp server 的连接请求,并接收数据
SOCKADDR_IN clientaddr;
int naddr=sizeof(clientaddr);
m_datsocketclient=accept(m_datsocketsvr,(struct sockaddr*)&clientaddr,&naddr);
if (m_datsocketclient==SOCKET_ERROR)
{
CString szerr;
szerr.Format("accept()error!\t%d\n",WSAGetLastError());
AfxMessageBox(szerr);
return false;
}
char buf[1024]={0};
CString szvalue;
while(1)
{
int ret=recv(m_datsocketclient,buf,sizeof(buf),0);
if (ret==SOCKET_ERROR)
break;
if (ret<=0)
{
m_filelist.InsertItem(0,"..");
break;
}
szvalue.Format("%s",buf);
InputList(szvalue);
memset(buf,0,sizeof(buf));
}
if (!SendCommandtoftpsvr(""))
return false;
shutdown(m_datsocketclient,SD_BOTH);
closesocket(m_datsocketclient);
shutdown(m_datsocketsvr,SD_BOTH);
closesocket(m_datsocketsvr);
return true;
}
|
|
|
|
|
using WH_CBT hook may get some information when a windows' status changed such as creating/destorying/size and etc.
Some windows created may be dialog form , and some of them might be Information_style_dialog, some are warning_style_dialog through their icon style.
So , which info from lParam or wParam can help judge dialog's style while using WH_CBT hook ?
|
|
|
|
|
fu0 wrote:
Some windows created may be dialog form , and some of them might be Information_style_dialog, some are warning_style_dialog through their icon style.
I think these "styles" only apply to the MessageBox() function, in which case, the "style" is not stored anywhere. It is created at runtime.
If some dialog is using similar icons, there may be no way of finding out, short of parsing the dialog box template, or the dialogbox instance itself.
Bikram Singh
|
|
|
|
|
Then , if the dialog is created by MessageBox() function, there is still no way to find out its icon style ?
if the applcation turn out an exception, can Hook help recognise the error just happened ?
|
|
|
|