Search:
Type: Posts; User: joleary
Search:
Search took 0.02 seconds.
-
February 9th, 2007, 11: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, 11: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, 11: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.
Thank you...
-
February 7th, 2007, 09: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, 10:06 AM
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...
-
February 7th, 2007, 10: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, 01: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.
jim
-
January 28th, 2007, 07: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 [256];
for (int j = 0; j < 256; j++) //my...
-
January 28th, 2007, 12:51 PM
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);...
-
January 22nd, 2007, 09:40 AM
Thank you again, Alex.
But, I'm afraid I don't understand your comment:
Could you please elaborate?
Thanks,
-
January 20th, 2007, 02: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, 01: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.
1)
Because I have to work with BYTE*, I've modified your...
-
January 19th, 2007, 05: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?
With VC++...
-
March 4th, 2005, 09:38 AM
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...
-
March 3rd, 2005, 02:27 PM
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
-
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.Edit();
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.
Altho
- I am a recognized user on the domain (for which the W2K Server is the domian server),
- I can...
-
March 18th, 2004, 12:01 PM
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...
-
March 17th, 2004, 07:26 PM
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...
-
March 17th, 2004, 07: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,
CreateProcess...
-
March 17th, 2004, 05: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
|