CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: VictorN

Search: Search took 2.32 seconds.

  1. Re: [C++ ADO- SQL] pFields->GetItem (index)->GetValue () - throws an exception when f

    Good to know you have solved your problem.
    Perhaps, you could do it earlir if you catched the exeptions! (I guess catching COleException could help you to understand that NULL and empty string are...
  2. Re: [C++ ADO- SQL] pFields->GetItem (index)->GetValue () - throws an exception when f

    Please, edit your post adding Code tags around your code snippet! Otherwise it is absutely unreadable! :thumbd:

    Why do you show such a dummy message that does not give you any useful info about...
  3. Re: [C++ ADO- SQL] pFields->GetItem (index)->GetValue () - throws an exception when f

    Well, what is the problem for you to check all these intermediate values to be non-NULL?
    Something like
    if(pFields)
    {
    FieldPtr field = pFields->GetItem(nIndex);
    if(field)
    {
    _variant_t...
Results 1 to 3 of 3





Click Here to Expand Forum to Full Width

Featured