Type: Posts; User: joleary
Search took 0.01 seconds.
February 9th, 2007 10:46 AM
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...
February 9th, 2007 10:40 AM
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...
February 9th, 2007 10:23 AM
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.
February 7th, 2007 08:17 PM
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...
February 7th, 2007 09:06 AM
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...
February 7th, 2007 09:00 AM
[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...
February 6th, 2007 12:30 PM
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.
January 28th, 2007 06:37 PM
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 ;
for (int j = 0; j < 256; j++) //my...
January 28th, 2007 11:51 AM
For anyone interested, the VC++ 6.0 version of Alex's .NET suggestion:
BSTR& btOut = bstrt.GetBSTR();
BYTE *pOut = (BYTE*)(char*)btOut;
January 22nd, 2007 08:40 AM
Thank you again, Alex.
But, I'm afraid I don't understand your comment:
Could you please elaborate?
January 20th, 2007 01:20 PM
[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...
January 20th, 2007 12:51 PM
Ta, Alex, for your helpful reply.
This seems to be leading me in the right direction; however, I do have some questions/issues.
Because I have to work with BYTE*, I've modified your...
January 19th, 2007 04:26 PM
*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...
August 26th, 2005 04:58 PM
Thank you again for your consideration, PadexArt.
I'll look into the boost libraries.
In the meantime, anyone else have any ideas?
August 26th, 2005 09:49 AM
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...
August 26th, 2005 09:18 AM
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?
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...
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.
August 25th, 2004 12:07 PM
Trying to following other SQL recommendations, many of my table columns do not allow NULLs.
However, when I have code like this:
recordSet.m_MyColumn = '';...
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.
I have a Windows 2K Server, running SQL 2K, installed with Mixed Mode Authentication.
- I am a recognized user on the domain (for which the W2K Server is the domian server),
- I can...
March 18th, 2004 11:01 AM
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.
March 17th, 2004 06:26 PM
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...
March 17th, 2004 06:00 PM
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,
March 17th, 2004 04:20 PM
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...
Click Here to Expand Forum to Full Width