|
You can see anything under:
View->Debug Windows->Memory
MS
|
|
|
|
|
Manfred Staiger wrote:
You can see anything under:
View->Debug Windows->Memory
Is that the only way to watch unicode variables? It is too much of work viewing a bunch of variables every time copy/pasting the memory location.
Or atleast, is there a way to open multiple memory windows to watch multiple variables?
|
|
|
|
|
What do you mean ? When I have the following code, I can see "buffer" in the watch window.
wchar_t buffer[25];
memset((void*)buffer, (int)'\0', 25);
memcpy((void*)buffer, _T("Hallo"), sizeof(_T("Hallo")));
MS
|
|
|
|
|
The default symbol for a string is s. Use su instead. There's also st which can be used for ANSI or Unicode depending on what you have in autoexp.dat. These symbols are used in the Watch window after the variable that is being watched.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I seem to remember that there's an option ( a checkbox) somewhere in the preferences that let you see unicode strings in the debugger.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Respected All
Regards
I am a new to VC++.
I have a program that display image(bitmap) selected from listbox while doubled click, but the listbox and image showing in the same window,and when I close the Image window then listbox automatically close.that's I did nothing to show Image in seperate window.
Now i want that listbox window and Image window become seperate and when I want another image from listbox then that listbox window should be there while running once my program.
david
|
|
|
|
|
|
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++
|
|
|
|