Hmm, Cookies, cookies and more cookies. In WinWorld ALL cookies created with InternetSetCookie / InternetGetCookie API's. ( except of may be Netscrape). IIS/ASP sends cookies to the browser. Browser/webbrowserCtrl creates permanent cookies. Temporary cookies never written to HD. InternetSetCookie takes URL. This is were it could falls appart. http://127.0.0.1 could be different from http://your.com.pu.ter To verify that your permanet cookies are working Just call InternetGetCookie. For example: bRet = InternetGetCookie("http://www.yahoo.com", NULL, sCookieVal, 10240) Brian
Brian V Shifrin
Posts
-
ASP/JScript cookies...? -
putref QuestionNevermind use smart ComPtrs and don't worry about these things
-
putref QuestionOk I am confused: I would like to implement putref_Item property to be accessed from vbscript/Jscript putref_Item(BSTR name, VARIANT newVal) { ... //set to IDispatch CComVariant vtOld = map.Lookup(name); map.Set(name, newVal); } VBScript Dim z z = Server.CreateObject( Dummy.Object) Set X("db") = z Set X("db") = Nothing ........................................................ How does reference counting suppose to works? Should I call vtOld->Release() vtNew->AddRef() Should I call addRef on propGet ??? Thanks
-
Font problems on 9x vs NT kernels (please help)You would not be by any chance creating font on the stack would you? void SetPropFont() { CFont font; font.Create(xxx,xx,0x,6) SetFont(&font); }
-
Is there a way to get IActiveScript***from CHtmlView or WebBrowser control? I need AddNamedItem() badly. OutlookExpress seems to be able to do that
function updateAccountInfo()
{
if (OutlookExpress.mailAccounts != null)
{
szUser = OutlookExpress.userName;
cMail = OutlookExpress.mailAccounts;
cNews = OutlookExpress.newsAccounts;
}
else
{
// we may be running on IE4, if so, assume mail and news setup.
szUser = "";
cMail = 1;
cNews = 1;
}
.... -
Remove CDialogBar BorderI am trying to remove CColtrolBar boder It seems like neither of statements below seems to work. What's the deal?? m_wndDialogBar.SetBorders(0,0,0,0); m_wndDialogBar.SetBarStyle((m_wndDialogBar.GetBarStyle & ~(CBRS_BORDER_ANY|CBRS_BORDER_3D)); void CCoolDialogBar::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp) { return; }
-
Urgent help neededI am trying to embed view inside custom tab
More like DiLascia tab.....
So far
SDIFrame
CMyView
CList
CStatic
....
CFolderTab
CView1
CEditN
CView2
.....Create CView1/CView2
CRect rectDummy(0, 0, 0, 0);
CreateContext cc;
ZeroMemory(&cc, sizeof(cc));
m_pView1 = (CView1 *)RUNTIME_CLASS(CView1)->CreateObject();
if (!m_pView1 ||
!((CWnd *)m_pView1 )->Create(NULL, NULL, WS_CHILD,
rectDummy, m_pFlatTabCtrl, IDC_CONNECTION_G_PROPERTIES, &cc))
{
TRACE0( "Failed to create View1.\n" );
return -1;
}
folderTab.AddPage(0,m_pView1);View looks fine and DDX*, DDV work in View1,
But when focus set to CEditN within CView1 no messages routed to CMyView.
What am I missing?
-
Memory detection toolsI am using both Purify & BoundChecker. They can coexists just fine. Some leaks better detected by BC (Gui & COm) others much better caught by Purify. First I check with BoundChecker ( better UI + integration ). Next switch to purify rebuild project to rid of BC code. My main complain about purify is if code containts InitCommonControlsEx calls purify goes nutz. Brian
-
Borland C++ oomplierI worked with Borland C++ builder: Pro: seems like easier to develop UI Cons: If you have problem try debugging c calls -> pascals. Bugs everywhere in CaptiveX code. Takes years to have bug fixed. Libs generated with MVSC can not be linked with Borland, and back. I just can not take function from this site and paste it into C++B. BC++ studio(?) is very poor development environment when comparing to DevStudio. On my project we ported all code from back to MSDEV. ActiveX bugs were last ..... Brian
-
UPX opinions ?I have use UPX in many projects, my current project size was reduced by 65% with UPX. Tested on 95/98/NT/2000. No problem. Only issue I ever had was when I was trying to use custom RWX segment ( for fun anti-hacking protection for softice/ida wannabees ).... To give UPX credit it did warned me.... Simple adjustment to UPX code and I was in back business. Cool don't mess with me protection for open source code :-D Brian
-
Dynamically Creating code and executing itYou need to implement WSH host scripting. Then you should be able to use VBScript/Javascript to execute code, fire events etc... See http://www.codeguru.com/atl/ATL\_ScriptHost.shtml
-
Removing ToolBar & Menu*IF* you are using VC6, Removing Menu: BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { cs.hMenu = NULL; return CFrameWnd::PreCreateWindow(cs); } I belive previous version of MFC were getting p*ssed if you try this... So old aproach was create window with menu. Create own message WM_APP+100, post this message from OnCreate, and when you get this message do something like this: HMENU h = GetMenu(); SetMenu(NULL); DestroyMenu(h); Toolbar is easy, change on create to look something like this: int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; return 0; }
-
Need some helpI am not a newbie. No I don't any leaks. I am looking for a way to optimize structures to reduce memry overhead. what does "delete" has to do with this? Brian
-
Need some helpMy application "uses" tons of memory. And yes, all of it get's deallocated when program exits. What I would like to do is to find out where all allocation goes too... Application has 100's of classes. Memory allocated by "new" Brian #define new new(_T(_FILE_), _T(_LINE_)) Anyone has class that agregate line above?
-
Need a firewallYeah, you could play with clunker.... But why not just get NetGear DSL-Cable Router/Switch combo. Fast/tiny/0-time setup. Few month electricity bill could probably pay for the thing. Includes firewall,etc etc etc. You can set what ever rules you want like If connection from Internet to Lan and port < 1024 drop; Do not forward 13x netbios packet to internet. Port forwarding. Browser interface. Can never be hacked: 1) because it is dumb as a rock 2) Internal policy will reject any attempt to control it from Internet, and accepts only lan connections. I got mine for $50, blackice went into a trash on the same day. Brian