|
SMTP has big problems nowadays because of spam!
The AOL SMTP servers for example do not allow receiving from dynamic ip addresses, so it is often better to use SMTP servers in the internet.
But theoretically you can create an own application instead of using a SMTP server, it's even possible to send and receive mails via telnet (connect to SMTP and type commands)!
Don't try it, just do it!
|
|
|
|
|
Hi,
Below is the part code, which used to display the frame from camera, my problem is that, can I create some button instead of by press "1"?
Thanks!
void CetCapConnect(HWND hwnd)
{
//CAPDRIVERCAPS CapDrvCaps; // structure of the capabilities of the capture driver
if (!hWndC)
hWndC = capCreateCaptureWindow ( // Create a child capture window
LPSTR) "My Capture Window", // window name if pop-up
WS_CHILD | WS_VISIBLE, // window style
0, 0, 160, 120, // window position and size
(HWND) hwnd, // handle of parent window
(int) 0 /* child ID */
);
LRESULT CALLBACK WindowFunc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc; // handle of device context
switch(message)
{
case WM_CHAR: /* process keystroke */
hdc = GetDC(hwnd); /* get device context */
switch (wParam)
{
case 49: // pressed "1" to get connect
CetCapConnect( hwnd );
break;
|
|
|
|
|
|
hello everybody...
I'm trying to finish a report about a hooking program. I have some problems when I want to give a dialog at the caret position of others programs that users are typing on. Can you please give me any instruction to do that ?. For these problems, I want to get the caret position of any running programs. After getting the position, I'll show a dialog here.
<i'm vietnamese,="" so="" my="" english="" ability="" is="" limited.="">
Thanks....<vtalau>
|
|
|
|
|
When you say "caret," what exactly are you referring to? The mouse pointer can assume many shapes but a caret (^) is normally not one of them. If you want to know the position of the mouse pointer, check out GetCursorPos() and GetMessagePos() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Okay Alok, ive realized maybe itll be easier using the idea you said... But i gotta try what i thought... Dont ask why, its driving me crazy...
<br />
void CNewAccountDlg::OnOK() <br />
{<br />
CString strUsername;<br />
CString strPassword;<br />
CString strTest;<br />
GetDlgItemText(IDC_USERNAME,strUsername);<br />
GetDlgItemText(IDC_PASSWORD,strPassword);<br />
<br />
m_USERNAME.SetSel(0,1);<br />
m_USERNAME.Copy();<br />
<br />
ofstream a_file ( "data/account.dat", ios::ate, ios::app);<br />
a_file<< strUsername + " " + strPassword + "\n";<br />
a_file.close();<br />
AfxMessageBox("Account Created.");<br />
}<br />
Paste is not a member of CString. So how would i paste m_USERNAME to strTest? Or is there a way to just m_USERNAME.SetSel(0,1) and tranfer to char test[02]; ?
/* Just a Human Trying to Live in a Computers World. */
|
|
|
|
|
|
I’d like to make my application repaint during one of my (long) loading process. If I Open another app in front of my loading app it won’t bee repainted until the loading process is done.
How can I handle that in MFC C++?
Thanks
_____________________________
...and justice for all
APe
|
|
|
|
|
You can simulate the VB DoEvents() function using this:
bool DoEvents()
{
MSG msg;
while (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
if (msg.message == WM_QUIT)
{
return false;
}
if (!AfxGetApp()->PreTranslateMessage(&msg))
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
}
return true;
}
I Dream of Absolute Zero
|
|
|
|
|
YOU MADE MY APP SO MUCH BETTER!
You also made my day! Thanks!
_____________________________
...and justice for all
APe
|
|
|
|
|
I Dream of Absolute Zero
|
|
|
|
|
You dirty scoundrel!
VB programming! Shame! Shame! Shame!
PS: And how much money do you want for not telling that I sometimes use it in my code too?
|
|
|
|
|
|
Hey!
I can't knock it. After all, some of my current worst programming practices were gained by coding in VB!
I see the new baby's given you some free time for the CP.
I Dream of Absolute Zero
|
|
|
|
|
Yes... I have been hanging about lately... If I ask a question there, I kinda feel obliged to give back. And I try not to get to worked up by those right wings morons in the soapbox
You ok? how is bummer up? Drinks soon?
|
|
|
|
|
BadJerry wrote:
VB programming!
Don't blame me for givig up MFC for .NET and C#...
_____________________________
...and justice for all
APe
|
|
|
|
|
And if you want to display a progress bar while executing your process, see this[^] article.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
The correct way to do this is to load the other application in a secondary thread. Doing this allows the primary thread to process paint messages.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I'm using VS.NET 2003 to create my installation. I wish to ask for the type of installation required using a 3 radio button screen. The property for the radio buttons is called BUTTON3.
I then wish to install shortcuts accordingly. As shortcuts don't have a condition property I have created three different folders all called "phone". I then set the condition property for each folder to be BUTTON3=1, BUTTON3=2 etc.
The problem I am having is that whatever radio button I choose, I always seem to get the BUTTON3=2 condition installed. Does anyone have any ideas why please? I have tried this on XP, 2000 and 98SE.
TIA
Jerry
I feel like I'm diagonally parked in a parallel universe
Jerry Davis
http://www.astad.org http://www.jvf.co.uk
|
|
|
|
|
Hi,
I'm new to Visual C++!
Could some of you tell me what is the function of
int WINAPI WinMain(HINSTANCE hThisInst, HINSTANCE hPrevInst,
LPSTR lpszArgs, int nWinMode)
Thanks!
|
|
|
|
|
it is the entry point (as main() in C or in Console-Mode programs) of you windowed program. if you program directly into WinMain(), you use Win32 API...
otherwise, you can have a look at MFC classes and functionnalities (more easy to use i find...)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
|
|
I have a camera, i use VC++ to programming control it. Ex: recognize, video, capture.
What i use class ?
I love I3.DVR International Inc.
Best Regards
Tran Tien Dung, Binh Dinh, Vietnam
|
|
|
|