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

Search:

Type: Posts; User: joleary

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    7
    Views
    5,312

    Re: unsigned char * (BYTE*) to BSTR and back

    For anyone who may be interested:

    The original issue for me was to get an encrypted BYTE* array of binary values stored into a SQL Server database.

    I chose BSTR as the vehicle but that seems to...
  2. Re: "Multiple-step OLE DB ... errors" on ADO PutValue

    For anyone who may be interested in the resolution to this problem:

    I received from invaluable help from Krzemo in the CodeGuru Database forum.

    I was told that although BSTR can contain binary...
  3. Re: "Multiple-step OLE DB ... errors" on ADO PutValue

    Well, Krzemo, I could not have done it without you!

    I decided to go with the SAFEARRAY approach that you suggested. It was easy to adapt the sample code for my encrypted BYTE* array.

    Thank you...
  4. Re: "Multiple-step OLE DB ... errors" on ADO PutValue

    Krzemo, thank you for the most help I've received on this issue.

    I want to be I understand what you are saying beacuse the IMAGE type and SAFEARRAY are unfamiliar to me at present.

    If I can try...
  5. Replies
    3
    Views
    1,306

    Re: Using MS SQL Binary Data Type

    Krzemo-

    Thank you for your interest in my problem.

    I have created a new thread with the details entitled:

    "Multiple-step OLE DB ... errors" on ADO PutValue

    I welcome any thoughts you may...
  6. "Multiple-step OLE DB ... errors" on ADO PutValue

    [VC++ 6.0, SQL Server] Cross-posted from Visual C++ Programming

    After using Triple-DES encryption, I end up with a BYTE* array of encrypted binary data that I need to store in my SQL Server...
  7. Replies
    3
    Views
    1,306

    Re: Using MS SQL Binary Data Type

    Have you found your answer to this, Shup?

    I have a similar need of inserting/selecting binary data from a SQL Server 2000 table.

    I'd appreciate any insight you may have come across.

    jim
  8. Re: "Multiple-step OLE DB ... errors" on ADO PutValue

    Here is some additional info:

    Based on some further research, I've updated my code sample (including bug fix) as follows:


    BYTE* bt = new BYTE [256];
    for (int j = 0; j < 256; j++) //my...
  9. Replies
    7
    Views
    5,312

    Re: unsigned char * (BYTE*) to BSTR and back

    For anyone interested, the VC++ 6.0 version of Alex's .NET suggestion:


    _bstr_t bstrt(bstrBuff);
    BSTR& btOut = bstrt.GetBSTR();
    BYTE *pOut = (BYTE*)(char*)btOut;
    SysFreeString(bstrBuff);...
  10. Replies
    7
    Views
    5,312

    Re: unsigned char * (BYTE*) to BSTR and back

    Thank you again, Alex.

    But, I'm afraid I don't understand your comment:



    Could you please elaborate?

    Thanks,
  11. "Multiple-step OLE DB ... errors" on ADO PutValue

    [VC++ 6.0, SQL Server]
    I get the this error when I execute the last line of the following code:

    "Multiple-step OLE DB operation generated errors. Check each OLE DB value, if available. No work...
  12. Replies
    7
    Views
    5,312

    Re: unsigned char * (BYTE*) to BSTR and back

    Ta, Alex, for your helpful reply.

    This seems to be leading me in the right direction; however, I do have some questions/issues.

    1)
    Because I have to work with BYTE*, I've modified your...
  13. Replies
    7
    Views
    5,312

    unsigned char * (BYTE*) to BSTR and back

    *MUCH* has been written on BSTR/_bstr_t conversion, but I've been unable to get my head around how it applies here.

    Perhaps I just need a nudge.

    My 3rd party encryption/decryption routine APIs...
  14. Replies
    4
    Views
    1,060

    Re: Ensuring valid XML element text

    Thank you again for your consideration, PadexArt.

    I'll look into the boost libraries.

    In the meantime, anyone else have any ideas?
  15. Replies
    4
    Views
    1,060

    Re: Ensuring valid XML element text

    Thanks for the quick reply PadexArt!

    As my naive, home-grown XML writers are _everywhere_ in my system at the moment, can you point me to anything I can use in the meantime, even if I have to drop...
  16. Replies
    4
    Views
    1,060

    Ensuring valid XML element text

    I have read about how to process XML and handle invalid text in element values; what I haven't been able to learn is: how do I ensure the text I _write_ as an XML element value is valid?

    With VC++...
  17. Re: Empty string stored as NULL by MFC for MS SQL 2K

    Krzemo-

    Thank you for your response. It neven occurred to me to consider an "instead of" trigger.

    Nor would I have thought to try an override for IsEmpty.

    I appreciate your consideration of...
  18. Re: Empty string stored as NULL by MFC for MS SQL 2K

    Darstan-

    Unfortunately, I do not have a fix or a better workaround to recommend.

    Ulitmately, I decided to take my chances and allow NULLs.

    I wish I had better news.

    jim
  19. Empty string stored as NULL by MFC for MS SQL 2K

    Trying to following other SQL recommendations, many of my table columns do not allow NULLs.
    However, when I have code like this:

    recordSet.Edit();
    recordSet.m_MyColumn = '';...
  20. Apparently each domain user or group has to be...

    Apparently each domain user or group has to be added to the Security/Logins section of the SQL 2K Server.

    Since you're reading this, thanks for having a look.
  21. SQL SVR 2K only allows Administrators thru Win Auth

    I have a Windows 2K Server, running SQL 2K, installed with Mixed Mode Authentication.

    Altho
    - I am a recognized user on the domain (for which the W2K Server is the domian server),
    - I can...
  22. Thank you, Sam, for your continued interest in my...

    Thank you, Sam, for your continued interest in my issue.

    W.r.t. WaitForInputIdle, do you mean to perform this before
    WaitForSingleObject? If so, it didn't seem to have any effect.
    Both calls...
  23. Sam, I was under the impression that...

    Sam,

    I was under the impression that CreateProcess solves the
    problem you mentioned:

    "There is a problem in situations where a single application is used for multiple filees, such as...
  24. Thank you Andreas. That, of course, is what I...

    Thank you Andreas. That, of course, is what I needed.

    I guess I was led slightly astray by a previous thread about file
    associations that mentioned ShellExecute, ShellExecuteEx,
    CreateProcess...
  25. I apologize for not being clear. Posting with...

    I apologize for not being clear. Posting with clarity is harder than it seems.

    I have a filename provided by a user.

    All I know for sure is that the file exists.

    I want to open it with...
Results 1 to 25 of 28
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured