|
Welcome here, i'm Chinese too from Wenzhou and now worked at Hangzhou.
This is quite a good place! Enjoy yourself.
- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...
There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...
YOU WILL WHEN YOU BELIEVE
|
|
|
|
|
hi,
lzzqqq wrote:
I am a chinese programer
ok, i'm a french one.
lzzqqq wrote:
my english is poor.
the most important is not your "poor" english, but what you try to say, and what we understand about it.
lzzqqq wrote:
i need your help
why not...
lzzqqq wrote:
can you tell me where are you from
France, i already said it previously in this post.
For the other CPians, you could have a look a Who's who[^] page...
but if you want to know everyone here, you will have to spend much time on that pretty site, 'cause at the moment i write this, we are about a little 1,633,561 members... good luck !!!
lzzqqq wrote:
and your email?
nop, sorry, but why not to post on personal homepage[^]s for example ???
last thing. you posted this on Visual C++ discussion board. why don't you try on The Lounge[^], or better, on The Soapbox[^] instead ???
anyway, see you
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
//Try the follow code:
//IDC_EDIT1 is your CEdit control's resource ID.
void CmscprojDlg::OnBnClickedEdit()
{
char szFileName[MAX_PATH]={NULL};
GetDlgItem(IDC_EDIT1)->GetWindowText(szFileName,MAX_PATH);
char szCommand[1024]={"NOTEPAD.EXE "};
strcat(szCommand,szFileName);
WinExec(szCommand,SW_SHOW);
}
|
|
|
|
|
the szCommand run like
"NOTEPAD.EXE C:\china.txt"
|
|
|
|
|
How can I plot graphs using VC++?
|
|
|
|
|
By buying some graph ActiveX components, or perhaps download some free graph ActiveX components or, dare I say it?, write your own graph ActiveX component.
Google is your friend, if you lack imagination try: "+'Graph'+'ActiveX'+'download'".
There are probably also some free components here at CP in the articles fora.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
I want to send a Alt +A message to a Window, like this:
dwTID = GetWindowThreadProcessId(handle,&dwPID);<br />
::PostThreadMessage(dwTID, WM_SYSKEYDOWN, 'A', 0x20000001);<br />
::PostThreadMessage(dwTID, WM_SYSKEYUP, 'A', 0x20000001);
it can't work. when i chang the prog like this
::SetForegroundWindow(handle);<br />
keybd_event(VK_MENU, 0, KEYEVENTF_EXTENDEDKEY | 0, 0);<br />
keybd_event('A', 0, KEYEVENTF_EXTENDEDKEY | 0, 0);<br />
keybd_event(VK_MENU, 0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);<br />
keybd_event('A', 0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0);
it 's ok.why?
and i want't to put the window on foreground,how to do it?
thanks alot!
|
|
|
|
|
i think that the message can't translate data with two process. so the first method is failed.
|
|
|
|
|
Hi, i'm working in a vision system (artificial vision with a webcam), and i have de adquisition module writed in visual C++ 6.0, and the treatment processes of images writed in matlab. I've already include de matlab source in the visual c++ project, but i need to send the image in memory (a buffer) to the matlab module.
does anyone know what kind of transformation do i must do to my buffer?
or can you explain me how "matlab to VC's traslated source" manipulate the images when the "imread" command were used?
any help will be welcome.
thanks
Keep Working!
=============================
LONEWOLF4
Oscar Ramírez Torres Oscar
Cd. Madero, Tamaulipas, México
LW4_2004@hotmail.com
=============================
|
|
|
|
|
How can i check the internet connection, also how can i get recieved bytes from int. connection??
|
|
|
|
|
utkumanyaksalak wrote:
How can i check the internet connection
use InternetGetConnectedState
utkumanyaksalak wrote:
how can i get recieved bytes from int. connection??
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
Yes thanks i understand first one...
"how can i get recieved bytes from int. connection?? "
I mean, How can i show internet traffic monitor on my application?
|
|
|
|
|
utkumanyaksalak wrote:
I mean, How can i show internet traffic monitor on my application?
use api getiftable and search for IPHELPER in you local copy of MSDN.
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
can you write a small example?
|
|
|
|
|
|
I remember that there is a function named is
IsConnected(...);??
To try it.
I am a chinese,english is poor.
|
|
|
|
|
new api: IsNetworkAlive
Rejoice,I Desire!
|
|
|
|
|
hello i am developing an application that uses winexec() command. what i want is when a button is clicked then the contents in the edit box parameter should be passed as an argument to the winexec() command and open that particular file in notepad.
the code given below just opens the notepad application what i want is it should open the notepad with the file name that is stored in the pointer ptr_filename can anyone please help me how to go about it??
void CmscprojDlg::OnBnClickedEdit()
{
// TODO: Add your control notification handler code here
UpdateData(true);
char *ptr_filename = new char[1024];
ptr_filename = m_strFilename.GetBuffer(sizeof(ptr_filename));
WinExec("notepad.exe", SW_SHOW);
}
|
|
|
|
|
You can USe this Format
CString strToExecute;
strToExecute.Format("notepad.exe %s",<code>m_strFilename</code>);
WinExec(strToExecute, SW_SHOW);
or you can use ShellExecute
::ShellExecute(NULL,<code>"notepad.exe"</code>,<code>m_strFileName</code>,NULL,NULL,SW_SHOWNORMAL);
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
Maybe a stupid question but: I'm on Win2k with Visual C++ 6.0 and it seems nearly impossible to get any mousewheel code to work.....
I had to specifically #define WM_MOUSEWHEEL 0x020 to avoid "undeclared identifier" messages. Sadly my OnMouseWheel method is not recognized anyway.
I encountered several working MFC examples. Unfortunately I don't use MFC so my question is:
Is it possible to get this working without MFC? Do I need a special include for this?
thanx in advance
|
|
|
|
|
From WinUser.h
#if (_WIN32_WINNT >= 0x0400) || (_WIN32_WINDOWS > 0x0400)
#define WM_MOUSEWHEEL 0x020A
#endif Notice the #if ? Make sure _WIN32_WINNT or _WIN32_WINDOWS is defined properly.
"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!
|
|
|
|
|
thanks for respons. I'm beginner to Winprog and VC++
I tried including <winuser.h> , but no improvement. Still the same undeclared WM_MOUSEWHEEL identifier.... My WM_LBUTTONDOWN is accepted though, both with and without <winuser.h>. WM_LBUTTONDOWN must be defined elsewhere also I concluded.
Next I outcommented WIN32_LEAN_AND_MEAN in Stdafx.h hoping this would make a difference. nope.
Other includes (a.o.): windows.h en windowsx.h
|
|
|
|
|
|
Joel Lucsy: I clicked on the link but the (forum) page states that
the page can't be found.....
|
|
|
|
|