|
|
I think the problem is due to the fact that your CStatic is a local variable... so it gets destructed at the end of OnInitDialog... declare as a member of the class and you will have more luck!
|
|
|
|
|
thanks very much!
it's ok, i must declare CBitmap and CStatic like a varible of class.
thanks!
|
|
|
|
|
|
BadJerry wrote:
de rien!
c'est rare des gens polis de nos jours...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Merci!
Moi etre bon petit gars!
Tres impressionne par le nombre de gens que tu peux aider . Tu arrives a travailler aussi ou cp est une occupation a plein temps?
|
|
|
|
|
BadJerry wrote:
Tu arrives a travailler aussi ou cp est une occupation a plein temps?
|
|
|
|
|
disons que je suis en formation (depuis 2 semaines), et que le programme pour le moment est suffisament facile pour que je puisse me permettre d'aider qques codeurs perdus...
BadJerry wrote:
Tres impressionne par le nombre de gens que tu peux aider
merci, je prends ca pour un compliment. Par contre, un peu amer contre la personne qui s'amuse à voter tous mes posts à 1 de temps en temps sans meme lire leur contenu ; mais c'est une autre histoire
ps: sorry for those that didn't understand that conversation...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Definetely a compliment... You and hatsAlok are doing a terrific job!
Yes I hate the voting system as it is... if you vote 1, you should have to justify it (or at least lose your anonymity)...
|
|
|
|
|
should i justify why i vote 5 also ?! :->
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
can we send mail thourgh program or code in vc without the local smtp server on that machine
ddd
|
|
|
|
|
Yes, since SMTP is a *network* protocol. Providing there's an accessible SMTP server that the machine can connect to, there's no real difference (firewall/security measures aside) from communicating with a server on the same machine or a remote one.
Steve S
Developer for hire!
|
|
|
|
|
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?
|
|
|
|
|