|
I found the solution.
http://support.microsoft.com/default.aspx?scid=kb;en-us;309801
|
|
|
|
|
I'm trying to translate ADO code in VB to C++, but I don't know what properties is in C++.
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
I'm trying to translate ADO code in VB to C++, but I don't know what properties is in C++.
Your question is a little unclear, what does the VB code look like?
Are you using the #import method with ADO? As properties is defined in msado15.tlh as a collection object.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
Michael P Butler wrote:
what does the VB code look like?
Something like:
commandObject.CommandText = "SELECT CodeProject FROM BestWebSite"
commandObject.CommandType = acCmdText
Michael P Butler wrote:
Are you using the #import method with ADO?
Yes.
Michael P Butler wrote:
As properties is defined in msado15.tlh as a collection object.
Huh?
I'll have a look at that file!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rough translation,
m_pCommand->put_CommandText(_bstr_t("SELECT CodeProject FROM BestWebSite"));<br />
m_pCommand->put_CommandType(adCmdText);
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I want to use CreateProcessWithLogonW to create process.This function needs password to pass to it.My problem is for blank passwords,I don't know what to pass to it for blank passwords because it return error(ERROR_ACCOUNT_RESTRICTION error) for it if I use "".Any idea?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Have you tried passing NULL?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
Have you tried passing NULL?
Yes.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
Hi Nish
Nishant S wrote:
Did you try entering a random string?
What do you mean by that?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
You answer was the quickest reply in the world.
Well,I passed some wrong passwords and it caused another error(Unknown user or wrong password).The errors are not the same but why do you say that?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
|
Nishant S wrote:
Sorry that I couldn't be of much help
Ni problem Nish.Thank you anyway.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
I was trying to track down a bug (which one of the other developers was able to track down) and we noticed something strange in the debug output window (VC++ 6.0). After the app ends, the output window lists all the dlls that were loaded up, etc. I have the Trillian instant message interface installed and one of the dlls that is being loaded up is 'C:\Program Files\Trillian\events.dll'. Trillian has no relation to my app and is not being even remotely used, at least I think not. Does anyone know why this is happening? I am a junior developer, so there may be an obvious answer to this, but it seems very odd. Thanks!
|
|
|
|
|
the system is reporting events and the debug window is picking up on them. it's pretty much harmless.
-c
Please stand by
|
|
|
|
|
The reason the dll is being loaded in your process is because it probably installs some sort of global hook via SetWindowsHookEx. The dll will then be loaded into all running processes.
Chris Richardson
Programmers find all sorts of ingenious ways to screw ourselves over. - Tim Smith
|
|
|
|
|
Thanks Chris and Chris! Your responses were very helpful.
|
|
|
|
|
I have a CBitmap object and i would like to create a bmp file and save theis object to the file.
Can any one give me a tip?
Thanks.
avivhal
|
|
|
|
|
|
I want to make a program which can access site with the help of winsock.And I can not access the site directly,so I have to use proxy.Can I work it out with socket,how to do it?I neexd your help.Thanks previously.
Got it
|
|
|
|
|
If you can, use WININET[^] instead. It makes things
much easier. MFC[^] has good wrapper classes for it
too.
|
|
|
|
|
Hello could anyone help me to correctly handle flicker free redrawing in a Multiline Transparent Cedit...
During an insert line operation or a scroll, i would like fix flicking troubles
I'm using the technique of a Cbrush to redraw the bitmap background;
but when i scroll lines , bitmap scrool too
How fix this ...
|
|
|
|
|
I am having a problem with a dialog box and toolbar buttons. I cannot go into very much detail regarding all this code, since it is for my place of employment. But in our product, there is a main toolbar, which has several buttons. One of the is for user preferences. If the user has other windows open, clicks on this window, then goes back to another open window, he/she will have a problem when they click on the main toolbar. No matter which button is pressed, nothing happens because the dialog box is open and behind other windows. This isn't code that I have written but I am one of those responsible for maintaining. The code is written in C, not C++, MFC, or C#. I would like to be able to set the focus on the dialog box if anything on the toolbar is pressed. The problem is that I cannot find a way to do it, since I cannot seem to capture the message when the something on the toolbar is pressed.
A little detail, the toolbar is actually one bitmap, which contains several images. We have a special function that applied each individual image and makes it a button. So if the dialog box is open and behind other windows, it doesn't look like anything is getting pressed. Please HELP!!!!!
|
|
|
|
|
I'm trying to understand the exact problem, but it's not clear. Perhaps if you can explain it again by (1) saying what kind of app this is (ie., MDI, SDI, Dialog based), and (2) the sequence of steps taken to reproduce the problem.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|