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
R

Rick Benish

@Rick Benish
About
Posts
15
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Muli-demenitional arrays
    R Rick Benish

    COBArray

    Article Writing c++ question

  • Why does this work in IE 5 but not Netscape 6?
    R Rick Benish

    try this: var txtObj = eval( 'document.' + txtID + '_big'); this should work unless your calling this id from a different layer. document.all[] really doesn't work in netscrap. You have to drill down to the elements you want. Hope this helps!!

    Java question

  • Funny Error
    R Rick Benish

    For the First error try doing a complete "rebuild" this will delete the .obj files from your build directory and rebuild them. Sometimes this works.

    C / C++ / MFC question debugging help

  • Funny Error
    R Rick Benish

    The first error indicates that you have two objects that contain the same function definition. The second is an error that is caused by not correclty linking to the .lib file for the dll that contains this function. Hope this helps!!

    C / C++ / MFC question debugging help

  • Error Again!
    R Rick Benish

    Your explaination seems a little vaige but here are some ideas. First of all the warning C4715 indicates that you are not returning a value for at least one control path. This means you are not setting the return value in some logical case. More than likley something like: BOOL APIENTRY SavingDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { BOOL bRet; if(something) { bRet = true; return bRet; } else { //not setting bRet here as a return value } } \\ here is the error . Since this is only a warning from the compiler I doubt its causing an error. I will however for arguments sake assume that when you state "here is the error". That you mean you are getting an error during debugging on the last line of this function. This line of code is were the function goes out of scope and cleans up anything allocated by this function. So I would guess that somewhere in this function you are overwritting something on the stack, that is currupting the computers memory stack. Check any NEW allocations!! If you want more help with this please supply more info thanks!!

    C / C++ / MFC c++ help question

  • Layer limit in Nutscape?
    R Rick Benish

    I also dislike netscrap. But I also agree that there is not a 6 layer limit. For example this site http://legendweb.nmt.com has over 30 layers. Many third party .js libraries have requirements for how layers are initialized. You want to look out for this. Good Luck!!

    Web Development question

  • Layer limit in Nutscape?
    R Rick Benish

    I also dislike netscrap. But I also agree that there is not a 6 layer limit. For example this site http://legendweb.nmt.com has over 30 layers. Many third party .js libraries have requirements for how layers are initialized. You want to look out for this. Good Luck!!

    Web Development question

  • JScript ADODB.COMMAND: can someone provide some examples?
    R Rick Benish

    I'm not positive what your trying to do here but it seems that if you have a chance of a data being an empty string. And this is valid for your application then you should allow zero length fields in your database. Good Luck!!

    Web Development html database question announcement lounge

  • JScript ADODB.COMMAND: can someone provide some examples?
    R Rick Benish

    I'm not positive what your trying to do here but it seems that if you have a chance of a data being an empty string. And this is valid for your application then you should allow zero length fields in your database. Good Luck!!

    Web Development html database question announcement lounge

  • #include directive
    R Rick Benish

    In looking at your problem I think this may work. <% dim name name = "test.htm" Response.write("") %>

    Web Development help

  • #include directive
    R Rick Benish

    In looking at your problem I think this may work. <% dim name name = "test.htm" Response.write("") %>

    Web Development help

  • Accessing a _RecordsetPtr returned by ATL in ASP
    R Rick Benish

    I see your using MFC but my ATL code should still help you STDMETHODIMP CDoc_Session::SQLSearch(BSTR bstrSQL, Recordset ** ppRecSet) { HRESULT hr; try { _bstr_t bstrSearch(bstrSQL); if(bstrSearch.length()>0) { _RecordsetPtr piRS; hr = piRS.CreateInstance(__uuidof(Recordset)); if(FAILED(hr)) return hr; piRS->CursorLocation = adUseClient; piRS->Open(bstrSearch, m_piConn->ConnectionString, adOpenForwardOnly,adLockReadOnly,adCmdUnknown); if(VARIANT_FALSE == piRS->GetADOEOF()) return piRS->QueryInterface(__uuidof(_Recordset), reinterpret_cast(ppRecSet)); else return E_FAIL; } else return E_FAIL; } catch (_com_error e) { ::MessageBox(NULL, e.Description(), "DNS", MB_OK); return e.Error(); } catch (...) { return E_FAIL; } return S_OK; } 1. You need to change your variant return value to a Recordset ** ppRecSet. You will need to do a #importlib of the msado15.dll in the library section of your .idl file. This is so the midl compiler will be able to marshell the Recordset type. 2. Next you need to make sure returning Recordset->CursorLocation=adUseClient; 3. Finally you need do a QueryInterface on the local Recordset so that can intialize the returing record set. If you need more help on this I think I might be able to find some old MFC code that does this same thing. Good Luck

    Web Development c++ database help tutorial question

  • Accessing a _RecordsetPtr returned by ATL in ASP
    R Rick Benish

    I see your using MFC but my ATL code should still help you STDMETHODIMP CDoc_Session::SQLSearch(BSTR bstrSQL, Recordset ** ppRecSet) { HRESULT hr; try { _bstr_t bstrSearch(bstrSQL); if(bstrSearch.length()>0) { _RecordsetPtr piRS; hr = piRS.CreateInstance(__uuidof(Recordset)); if(FAILED(hr)) return hr; piRS->CursorLocation = adUseClient; piRS->Open(bstrSearch, m_piConn->ConnectionString, adOpenForwardOnly,adLockReadOnly,adCmdUnknown); if(VARIANT_FALSE == piRS->GetADOEOF()) return piRS->QueryInterface(__uuidof(_Recordset), reinterpret_cast(ppRecSet)); else return E_FAIL; } else return E_FAIL; } catch (_com_error e) { ::MessageBox(NULL, e.Description(), "DNS", MB_OK); return e.Error(); } catch (...) { return E_FAIL; } return S_OK; } 1. You need to change your variant return value to a Recordset ** ppRecSet. You will need to do a #importlib of the msado15.dll in the library section of your .idl file. This is so the midl compiler will be able to marshell the Recordset type. 2. Next you need to make sure returning Recordset->CursorLocation=adUseClient; 3. Finally you need do a QueryInterface on the local Recordset so that can intialize the returing record set. If you need more help on this I think I might be able to find some old MFC code that does this same thing. Good Luck

    Web Development c++ database help tutorial question

  • Problem with get__Form(&pIUKN)
    R Rick Benish

    I'm trying to understand why when my html form has ENCTYPE="multipart/form-data" declared. I am unable to retrieve the collection through the IRequest Interface. Heres what I'm trying to do: IRequestDictionary * pDict; IRequest.get__Form(&pDict); now when I call pDict->Count(&iCount) I get a big fat zero even though my form contains 3 objects. If I take out the ENCTYPE="multipart/form-data" then it works just fine. You may say then just take it out stupid, but I would like send files from my client to the server. Any help in understanding why this doesn't work would be appreciated. Thanks!!

    Web Development help html sysadmin

  • Problem with get__Form(&pIUKN)
    R Rick Benish

    I'm trying to understand why when my html form has ENCTYPE="multipart/form-data" declared. I am unable to retrieve the collection through the IRequest Interface. Heres what I'm trying to do: IRequestDictionary * pDict; IRequest.get__Form(&pDict); now when I call pDict->Count(&iCount) I get a big fat zero even though my form contains 3 objects. If I take out the ENCTYPE="multipart/form-data" then it works just fine. You may say then just take it out stupid, but I would like send files from my client to the server. Any help in understanding why this doesn't work would be appreciated. Thanks!!

    Web Development help html sysadmin
  • Login

  • Don't have an account? Register

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