|
what's that ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
-- modified at 5:02 Monday 12th September, 2005
|
|
|
|
|
How to create multiple instances of IE and submit the form with different clients information and recieve the cookies information for every clients. As the whole process takes three to five round trip to the server for getting and sending information. while trying to solve this problem i am loosing the cookies information and only one user data is propagetted to all the IE instance.
In each round trip i need to recieve four or five cookies from the same server for each client.
Any help or code snippet in this regard.
As i am trying to use the Wininet API.
|
|
|
|
|
hi,
i need to catch DWebBrowserEvents2::NavigateComplete2 event using only win32.
does anyone here know how to do that or know a sample ?
many thanks
|
|
|
|
|
Hi,
In my app::InitInstance()
<br />
{<br />
...<br />
CMyDlg dlg;<br />
m_pMainWnd = &dlg;<br />
dlg.DoModal();<br />
<br />
return TRUE;<br />
}<br />
<br />
The 'CMyDlg' has an internal timer that gets activated after 1 second, and starts executing some actions. After done, the timer is killed and 'CDialog::OnOK' is called. This gets the dialog closed.<br />
<br />
In the app i need to return TRUE, else i got exit code != 0. But now, i get this ennoying warning:<br />
Warning: m_pMainWnd is NULL in CWinApp::Run - quitting application.<br />
<br />
Any way to get this (annoying) warning out of the program?<br />
<br />
Greetings,<br />
Jens
|
|
|
|
|
"Typically, you set this member variable when you override InitInstance. In a worker thread, the value of this data member is inherited from its parent thread."
Can you show the complete code for InitInstance up to dlg.DoModal(); ?
Also, why are you writing to this variable?
The tigress is here
|
|
|
|
|
Dialog based apps must return FALSE from their CWinApp::InitInstance function.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi,
I tried to return false, but then the exit-code of the process is '1'. The exit-code needs to be '0'. I removed the m_pMainWnd = &dlg; line alsoo.
Greetings,
Jens
-- modified at 9:40 Monday 12th September, 2005
|
|
|
|
|
You need to use:
BOOL CMyDialog::InitInstance()
{
return FALSE;
}
int CMyDialog::ExitInstance()
{
return 0;
}
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hello,
I created a custom scrollbar. I need it to be hidden when the page size is larger than the range.
I used void ScrollBarEx::OnShowWindow(...) fn (mapped) to track the visibility of the scrollbar wnd.
I got the message callback to this fn when the scrollbar wnd is being shown.
But I can't hide the window from fn.
void ScrollBarEx::OnShowWindow(BOOL bShow, UINT nStatus)
{
ShowWindow(SW_HIDE);
}
What steps should I do?
|
|
|
|
|
Hi
Is there any option to check whether the application is launched from startup or normal launch?
Regards
|
|
|
|
|
Asha Udupa wrote:
Is there any option to check whether the application is launched from startup or normal launch?
For that you have to enumerate the values under the RUN subkey....
or if you want to know who to distinguish in your program then This link quite similiar to that :-ow to start at Program which start Hidden on Windows startup but Visible other wise?[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi everyone ~~
can you help me !
Now I'm working in my project. I have a problem With print.i ues map mode is MM_TEXT but printed the character display so small so i use LPtoDP but it was like change before ,so i need help how to change ????
code like this:
void CMyFormView::OnDraw(CDC* pDC)
{
CFormDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
pDC->SetMapMode(MM_TEXT);
RECT rc;
GetClientRect(&rc);
pDC->LPtoDP(&rc);
pDC->TextOut(110, 200, "ad");
}
nothing
|
|
|
|
|
Dear all,
I am building the GUI to install the device driver and software.In the case, it will provide User Installation Guide for enduser to read which is the PDF file format.
Therefore, How to check the system whether the system have installed Acrobate Reader or not?
If have always not installed that the system must be required to intall the reader befor ShellExecuteEx (Open) the PDF file.
Thanks for the help. If there is any suggestion, please feel free to let me knowor help.
Best Regards
Steve Chang.
|
|
|
|
|
One way is to take help of registry. But again this will help while installation as you wull have admin rights then.
|
|
|
|
|
See if there is an application associated with the .PDF extension using FindExecutable() or AssocQueryString() . If there is, compare its name to AcroRd32.exe.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
See if there is an application associated with the .PDF extension using FindExecutable() or AssocQueryString(). If there is, compare its name to AcroRd32.exe.
I'd think you'd want to make the more general check to see if any app is associated with the pdf extension. Since the intent is simply to view the file it shouldn't matter if the user has the acrobatreader installed, is a graphics designer and has the full fledged acrobat application, or is using a 3rd party pdf reader instead.
|
|
|
|
|
Can this class be used without CLR?
Or how can I use WMI without CLR???
I use vc6 with the latest SDK,but there is always a compiler error as bellow:
Deleting intermediate files and output files for project 'Netcfg - Win32 Release'.
--------------------Configuration: Netcfg - Win32 Release--------------------
Compiling...
Netcfg.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\comutil.h(101) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
Netcfg.exe - 1 error(s), 0 warning(s)
what's wrong? How to fix it??
Thank you all here.
Thank you very much.
|
|
|
|
|
You've confused the compiler. remove lines of your code until it compiles, then look at the code you removed and see what is wrong.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Everyone!
Can you help me!
Now I'm working in my project. I have a problem With Create a Preview Video with source from Camera. After starting preview 5 minute I want to draw a red rectange on preview.
My idea is Creating two Static. one of them is transparent Static that is always ontop. Then Draw rectange on it.
pls! Can you show me your solution.
Many thanks.
|
|
|
|
|
If you're using DirectX, you can create a Filter to draw over the video. You can't put a control over the video to draw on it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Please help me!
Please show me how to connect to any database (SQL server or Access 2000) by code (not by wizard)
thank you for helping
|
|
|
|
|
Use CDatabase class, and its open() function
MSDN description of same is given as
CDatabase m_dbCust;<br />
<br />
m_dbCust.Open( _T( "MYDATASOURCE" ), FALSE,<br />
FALSE, _T( "ODBC;UID=JOES" ),<br />
<br />
m_dbCust.Open( NULL );
refer this
http://www.codeproject.com/database/readdb.asp[^]
|
|
|
|
|
Just to give you an idea, I recently used the following code in one of my projects:
CDatabase m_db;
<br />
try<br />
{<br />
CString sConnect;<br />
sConnect ="DRIVER={Oracle in Ora81RET}; DBQ= MYDATABASE.LOCAL; UID=scott; PWD=tiger; PFC=500";<br />
m_DB.OpenEx(sConnect, CDatabase::noOdbcDialog);<br />
}<br />
catch(CDBException *x)<br />
{<br />
try<br />
{<br />
CString sConnect;<br />
sConnect ="DRIVER={Oracle in OraHome92}; DBQ= MYDATABASE.LOCAL; UID=scott; PWD=tiger; PFC=500";<br />
m_DB.OpenEx(sConnect, CDatabase::noOdbcDialog);<br />
}<br />
catch(CDBException *x)<br />
{<br />
CString szTemp = "Database Connection not responding due to following reason(s):\n\n";<br />
szTemp += x->m_strError;<br />
AfxMessageBox(szTemp, MB_ICONERROR);<br />
exit(1);<br />
}<br />
}
Then, to query the database, you can code like this:
CRecordset cSet(&m_DB);<br />
CString szSomething;<br />
CString szSQL = "SELECT SOMETHING FROM SOMEWHERE"
cSet.Open(CRecordset::forwardOnly, szSQL, CRecordset::readOnly);<br />
while(!cSet.IsEOF())<br />
{<br />
cSet.GetFieldValue((int)0, szSomething);<br />
cSet.MoveNext();<br />
}<br />
cSet.Close();
Hope that helps
It's better to know some of the questions than all of the answers.
Pravin.
|
|
|
|
|
It seems FindFirstFileEx is available only with _WIN32_WINNT >= 0x400.
I am on Windows XP SP2 with visual studio 6 and Feb 2003 PSDK.
The compiler still cannot find FindFirstFileEx and I define _WIN32_WINNT in my stdafx as 0x400. so what is _WIN32_WINNT and when is it >= 0x400.
Although I could get things working by defining _WIN32_WINNT as 0x400, I am worried if thats the right value and if any other definitions arent available due to the value being smaller.
Can someone throw some light on _WIN32_WINNT? Thanks.
|
|
|
|
|
Flace wrote:
The compiler still cannot find FindFirstFileEx and I define _WIN32_WINNT in my stdafx as 0x400...Although I could get things working by defining _WIN32_WINNT as 0x400,
These contradict each other. Is it working or not?
Flace wrote:
Can someone throw some light on _WIN32_WINNT?
Set it to the minimum value required.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|