Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
B

Brian V Shifrin

@Brian V Shifrin
About
Posts
15
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP/JScript cookies...?
    B Brian V Shifrin

    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

    Web Development

  • putref Question
    B Brian V Shifrin

    Nevermind use smart ComPtrs and don't worry about these things

    C / C++ / MFC

  • putref Question
    B Brian V Shifrin

    Ok 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

    C / C++ / MFC

  • Font problems on 9x vs NT kernels (please help)
    B Brian V Shifrin

    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); }

    System Admin

  • Is there a way to get IActiveScript***
    B Brian V Shifrin

    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;
    }
    ....

    C / C++ / MFC

  • Remove CDialogBar Border
    B Brian V Shifrin

    I 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; }

    C / C++ / MFC

  • Urgent help needed
    B Brian V Shifrin

    I am trying to embed view inside custom tab

    More like DiLascia tab.....

    http://www.microsoft.com/msj/defaultframe.asp?page=/msj/0599/c++/c++0599.htm&nav=/msj/0599/newnav.htm

    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?

    C / C++ / MFC

  • Memory detection tools
    B Brian V Shifrin

    I 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

    C / C++ / MFC

  • Borland C++ oomplier
    B Brian V Shifrin

    I 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

    The Lounge

  • UPX opinions ?
    B Brian V Shifrin

    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

    The Lounge

  • Dynamically Creating code and executing it
    B Brian V Shifrin

    You 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

    C / C++ / MFC

  • Removing ToolBar & Menu
    B Brian V Shifrin

    *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; }

    C / C++ / MFC

  • Need some help
    B Brian V Shifrin

    I 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

    C / C++ / MFC

  • Need some help
    B Brian V Shifrin

    My 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?

    C / C++ / MFC

  • Need a firewall
    B Brian V Shifrin

    Yeah, 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

    The Lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups