|
|
this did not help.
I even re-installed XP again,
the problem still exists.
|
|
|
|
|
have u tried installing the VC6 on a clean xp installation?
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Yes, that went OK.
There is something wrong with my PC, I want to find out wat it is.
|
|
|
|
|
Good luck
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
What are you installing that is related to ODBC and/or SQL? Try turning those options off and see if the problem subsides.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
It all started after installing an oracle database.
after this the comiler did not work anymore.
de-installing the database did not solve the problem.
Any support from the manufactorer was not givven.
"if we screw up your computer, that's your problem".
Any idea what to do ?
|
|
|
|
|
P.Pronk wrote: after this the comiler did not work anymore.
What stopped working?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I want to set an icon for my app. I am not using MFC. Its plain Win32. How do I do that?
Aljechin Alexander
|
|
|
|
|
Use WM_SETICON .
Nibu thomas
Software Developer
|
|
|
|
|
I dont know how to use that. Can you show one code sample please?
Aljechin Alexander
|
|
|
|
|
|
I do not know how to use that. Can you kindly show some code sample of how to do it?
Aljechin Alexander
|
|
|
|
|
HICON hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
PostMessage(hWnd, WM_SETICON, TRUE, hIcon);
|
|
|
|
|
From the OP:
I am not using MFC. Its plain Win32. How do I do that? Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I write a program with SDI . I want to use multithread drawing text with multithread on the view.
Below is my code:
void CCMTView::OnIniteButton()
{
m_Timer.Start();//m_Timer is a multimidea timer.It sends data
//to the serial port every other 2ms.
p_Doc = GetDocument();
HWND hwnd = GetSafeHwnd();
pOutDataThread = AfxBeginThread(threadProc,
(LPVOID)hwnd,0,0,NULL);
}
UINT threadProc(LPVOID param)
{
CString len,strPersent,
CString msg("");
CClientDC dc(CWnd::FromHandle((HWND)param));
if(p_Doc->curBufIdx !=0)
{//p_Doc is global pointer to CMMTDoc
//curBufIdx is a member of CMMTDoc
//buf is a struct member of CMMTDoc
for(unsigned int i = 0 ; i < p_Doc->curBufIdx; i++)
{
len.Format("%d",p_Doc->buf[i].len);
strPersent.Format("%d",p_Doc->buf[i].persent);
msg = len + strPersent;
dc.TextOut(0,0,"len percent ");
dc.TextOut(0,(i+1)*15,msg);
msg = "";
tmpMsg = "";
}
}
return 0;
}
how to implement drawing text on the view with multithread?
Your help will be appreciated greatly.
|
|
|
|
|
In general this is a bad idea to share the drawing between threads. In your example, why do you want to put that in a separate thread ? What is the reason for that ??
|
|
|
|
|
never do your drawing with in threads other then the main thread!
use a post message to the main thread when ever an other thread wishes to change the drawings...
hope this helps you
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi,
I want to use "WMVideo9 Encoder DMO in my filter graph.; for that i want help.
What kind of filters can be connected to input & output pins of "WMVideo9 Encoder DMO" Filter?
Thanks in advance.
Aniket Salunkhe
|
|
|
|
|
Hi,
I want to use "WMVideo9 Encoder DMO in my filter graph.; for that i want help.
What kind of filters can be connected to input & output pins of "WMVideo9 Encoder DMO" Filter?
Thanks in advance.
Aniket
|
|
|
|
|
hi
i am implementing SMTP in MFC for sending mails.if i specify the correct mail server name(eg: mail.yahoo.com) i get the response from the server immediately.However if i specify invalid mail server name, the application hangs & control returns after 20 seconds.
ABC() //calls Connect function as given below
{
return Connect((SOCKADDR*)&sockAddr, sizeof(sockAddr));
}
BOOL CSMTPSocket::Connect(const SOCKADDR* lpSockAddr, int nSockAddrLen)
{
return (connect(m_hSocket, lpSockAddr, nSockAddrLen) != SOCKET_ERROR); //problem is while calling this Windows Socket function.
}
i need to reduce the time to check for invalid mail server name to less than 20 seconds.how is it possible??
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
-- modified at 5:22 Thursday 6th April, 2006
|
|
|
|
|
You can put that "connect(...)" method in a worker thread, and set an aditional timeout for that. I think that, when it's searching for an invalid server, it will always delay for several seconds. That's way it goes! Sorry! Good luck!
|
|
|
|
|
Hi there.
You could try using the gethostbyname function to validate the host name when it is entered. This way you could issue a warning if an ip address cannot be determined for the thost name and you would not be resolving hostnames during the connect call.
Cheers
|
|
|
|
|
I am using ScriptStringAnalyse which is a uniscribe function.
And I get linker error for this function.
Where will I find Usp10.lib file?
If it comes as a sdk package can anyone tell me the link.
I tried on the microsoft site but I see numerous downloads there for SDK.
Exactly which one should I download?
Can anyone tell me whats going wrong?
Thanks and Regards,
Arti Gujare
Arti Gujare
|
|
|
|
|
a) A C++ program that implements the Stacks ADT.
b) A C++ program that implements the Queue ADT using two stacks (make use of the Stacks ADT that you have implemented in a).
can anyone help me with these?
|
|
|
|