Hi, how can I get CHtmlView session or session variables, and how can i change them. Thanks.
m1m2
Posts
-
CHtmlView - how to get session -
AxtiveX, this pointer [modified]Hi, it hapend something very strange to me, when i call 'this' from inside the activeX control class, when i debug project with 'activex test container', it work fine, but when i start the release with iexplorer, when call 'this' it seems to get not activex control pointer to DC, but pointer to desktop DC. Because when iexplorer is not maximized, in the center of screen, when call 'this', it starts to write on the top left corner on the desktop, outside of iexplorer. I get this pointer and then construct CClientDC dc(this); I tought that maybe this is null and get desktop dc, but when put condition if(){}, this is not null and enter int brckets. Thanks. -- modified at 2:17 Monday 17th September, 2007
-
Can I construct CBitmap from heapI don't know : ) but i fix it, i save file on disk and read it from there. Furst i try to separate data from header in .bmp file, because i saw one function which draw on dc directly from data bits of .bmp, but something get wrong and save it on the disk. work fine now.
-
Can I construct CBitmap from heapHi, I download a '.bmp' file through internet and save bits in the heap like char*, can I create CBitmap without save file to disk. :)
-
ActiveX - open file errorHi, i write one activex, it have one property that receive string with file name to open. I open my activex through iexplorer. AxtiveX is writen on VC++ 2005 Problem is that wherever i put my .html file in diferent folders it always search for the file in the folders that activex was started for the first time. My file looks like this
< param name="source_file" value=".\aa.txt" >
Help :) -
CString porbleThanks a lot : ) it works fine now.
-
CString porbleHi, i have one text file, about 600-700 characters long, I try to read it in one CStfing variable. My code is : CString strTemp; while( ar.ReadString(strTemp) ) m_strFileBuffer += strTemp + _T(" "); ar is CArchive, i try to put all the data from the file in m_strFileBuffer. Problem is that when algorithm pass few times throught ReadString it stop to add data to m_strFileBuffer, it is very strange becouse the data from the file is readed properly in strTemp, then go to next line and try to execute 'm_strFileBuffer += strTemp + _T(" ");' but nothing hapend, algorithm go through this line, back to whili(), read next line from the file and try again to add data to m_strFileBUffer, and that is until ar go to end of the file. At the end i have only half of the file saved in the m_strFileBuffer. Anyone can help with that : ) Thanks.
-
Have a problem with CFileDialog [modified]Find it :) when i browse for a file it change curren directory and save file in another plase :)
-
Have a problem with CFileDialog [modified]Hi. I write one application i have one button(browse) when click on it, it call CFileDialog.DoModal(). When user chose a file, the dialog thake the name and call to save it to another file void CRgnDoc::MyFileSaveFunction(int i,CString filename) { m_iStart=i; //int m_strSongPath=filename; //CString - separate string and save like //integer OnSaveDocument("OneClock.one"); } my Serialize function look like this void CRgnDoc::Serialize(CArchive& ar) { if (ar.IsStoring()) { // storing code int i; i=m_strSongPath.GetLength(); ar<>i; for (int j=0;j>ch; m_strSongPath=m_strSongPath+(char)ch; // TRACE("%c",ch); // AfxMessageBox("asw"); } ar>>m_iStart; } } when call MyFileSaveFunction(), Serizlize() don't want to save my file byt if i call MyFileSaveFunction(4,"test") withought call CFileDalog befor that it work correct and everithing is save Meto -- modified at 7:19 Tuesday 29th August, 2006