|
The #pragma works, at least for me. You just have to put it before #including STL headers. Usually, I place it at the top of stdafx.h
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Now I rebuilded the app putting the
#pragma warning(disable : 4786)
before everything, and it seems to work.
thanks you Tomasz
|
|
|
|
|
use http://www.codeproject.com/tools/stlfilt.asp it gets rid of all of these errors.
|
|
|
|
|
I have a number of COM components (all written with VC++) that are used on an internal web page. I have been accessing the data to use by defining a http url in the PARAM tags within the OBJECT tag that loads the component, which then makes its own request. I would like the option of just including the associated data (it is all XML) via data islands (the XML tag) and then letting the embedded component access its data from there.
However I have not found the link, call, whatever to access this data from the comonent. getting the PARAM data was straight forward but I just am not searching for the right key words etc to go on.
Any pointers to the correct steps to take are appreciated. Just key words to the MSDN lib search would be helpful or of course a code snippet would not be refused.
Below is a sample of the html page: I have tried various options for the data source definition but all tries have only returned a NULL string (or pointer) to my control.
<title>Untitled
Hello All
<xml id="MyData">
<mydata>
<object
id="Viewer Control"
="" classid="CLSID:6E7B198C-106F-11D4-BAA0" width="820
" height="550
">
<param name="DataSource" datasrc="#MyData" />
<param name="WebName" value="Item" />
<param name="WebAddress" value="Address" />
<param name="WebPort" value="80" />
End Hello
Michael A Barnhart
mabtech@swbell.net
|
|
|
|
|
I have one problem regarding RAS...
I tried using RasDial() to connect to the net.
It is working fine on a win98 system.
But its not working on winNT server.
Please help me...
Here is the code, I used...
////////////////////////////////////////////////////////////////
RASDIALPARAMS RASParams;
RASParams.dwSize = sizeof(RASDIALPARAMS);
sprintf(RASParams.szEntryName,"%s","My ISP");
sprintf(RASParams.szPhoneNumber,"%s","");
sprintf(RASParams.szCallbackNumber,"%s","");
sprintf(RASParams.szUserName,"%s","");
sprintf(RASParams.szPassword,"%s","");
sprintf(RASParams.szDomain,"%s","");
HRASCONN m_hRas = NULL;
// For connecting
if(RasDial(NULL,"C:\\WinNt\\System32\\ras\\RasPhone.pbk",&RASParams,NULL,NULL,&m_hRas) != 0)
{
::MessageBox(NULL,"Error: RasDial","",MB_OK);
}
// For Disconnecting
if(m_hRas)
{
RasHangUp(m_hRas);
Sleep(3000);
}
/////////////////////////////////////////////////////////////////
bye,
firoz
|
|
|
|
|
Hello,
How to create a new line in Edit control?
Thanks.
|
|
|
|
|
|
It doesn't work.
In my example i try this
For(int i = 0; i < 10;i++)
{
m_edMyEdit.SetWindowText((LPCTSTR) "text");
}
VC++ write "text" in place of the old text.
Even if i write "text\n" or "text\r" the problem persists.
|
|
|
|
|
SetWindowText sets the entire text of the window.
if you want to add text, you have to use SetSel and ReplaceSel:
m_edit.SetWindowText("text\r\n");
CString t; m_editGetWindowText(t);
m_edit.SetSel(t.GetLength(), t.GetLength());
m_editReplaceSel("Text\r\n", false);
-c
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Thanks for help,it works.
|
|
|
|
|
Hi
how can I get a full list of all interfaces like "IActiveDesktop", "IPersistFile" and their methods?
Of course I could browse the shlobj.h file, but thats a lot of work and not understandable at a glance
|
|
|
|
|
Use OleView that comes with the Platform SDK / Visual Studio.
Michael
|
|
|
|
|
thanks
But I can't view the methods of interfaces like "IActiveDesktop", the button "View Type Info" is disabled But IActiveDesktop definately has some methods like getwallpaper
|
|
|
|
|
|
I'm writing a multi-threaded FTP searching program under Win 2k. But sometimes I got error message like "memory 'XXXXXXXXX' cannot be 'written'" from WININET.DLL and sometimes I got "Unhandled exception" from NTDLL.DLL when I call SetCurrentDirectory() to get into the child directory. The child directory actually exists, and MSDN said these functions don't throw exceptions! I was completely confused. What cause this error? Could anyone give me some suggestions? Thanks a lot.
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
With eVC++ Version 3.0 for PocketPC I've tried to export a CDialog-based class and then use it in an application. DoModal() always fails. I have stepped through the DoModal() method and it fails because it cannot find the resource. The only way I have been able to get this to work is to use a wrapper function in the dll then call the wraper function from my application. I've tried several things, such as changing the dialog ID to make sure it is unique. Anyone know of a solution to this problem?
|
|
|
|
|
I have a strange problem.
I use Visual C++ 6.0 and it woks well,
but today, I install the Microsoft Global IME (Japanese) for reading Japanese on my IE5 and Outlook, then My Visual C++ has problem after i use Debug functions (step into, go...).
The problem is when i enter debug mode to debug my source and stop to make modify my source. The second time i want to enter the debug mode, the VC failed and show a dialog box says MSDev is going to close.
I remove the Global IME but this problem still happend...
who can help me about this??
|
|
|
|
|
Reinstall the last service pack for Visual Studio, maybe that will do.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
If I got the handle of a application instance, can I get all of its windows' handles? Please help me
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
|
Yes, it is. Can I get the handle?
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
Application instance handle will be useless; it's provided for backward compatibility (all processes see identical value). You'll have to get a process ID instead. Then, as Norm suggested, you should use EnumWindows. For each window call GetWindowThreadProcessId and compare the IDs. Note that this technique gives you handles of toplevel windows; if you want their child you'll have to use EnumChildWindows.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
EnumWindowsProc?
Norm Almond
Chief Technical Architect
FS Walker Hughes Limited
|
|
|
|
|
It works fine. Thank you very much!
But I think enumeration's performance isn't very high. Are there any other solutions?
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
Hi All,
I have one MFC GUI stand-alone application (its SDI doc/view architecture) and I want to convert it to ATL inproc dll. To do that I have added all the required files + resource file from MFC app to new ATL application. To invoke GUI from one of the interface method, I have created document template and then used CreateNewFrame.
When I use this ATL dll from a client application, it properly pops up GUI with some limitions. Accelerators dont work and tool bar buttons dont get the command ui message. I mean the menu items get update but associated tool bar buttons dont update. Does anybody tell me what is wrong ? Is there any different way to pop up GUI from ATL dlls ? Explicit loading of accelerator table also does not work.
Thanks,
Sujata.
|
|
|
|