|
Hi
These days, I'm down for the difficulty of Ado programming with VC++, would you mind telling me how to get the resource of Ado programming with VC++? By the way, MSDN tell me a very nasty way to programming with ADO.
Thank you in advance.
Extreme programming. Do the No.1
|
|
|
|
|
Do you mean what book should you read ? What's wrong with the way MSDN does it, exactly ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
There are some great examples on CodeProject for using ADO with C++.
http://www.codeproject.com/database/#ADO[^]
Are you using #import on the ADO Library. If you are, this gives you a wrapper class pretty much equivalent of VB - so you should be able to convert the VB examples into C++ very easily.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
Hi,
may I know is it possible to import C++ code into vb code?
I have a problem here. I have a c++ code that I intrnd to add into my application but my application is written in vb and I afraid that the libraries that it used is not available in vb?
Thank you.
=) hibiki
|
|
|
|
|
*grin* is this a troll ? VB is not a real language. I know, I'm using it right now. The only reason VB is ever useful is that it can call COM objects, which can be written in C++. If you want to call your C++ code from VB, you'll have to expose it via COM, or rewrite it assuming it uses the subset of C++ which exists in VB ( from memory, the mathematical operators )
I apologise for my sarcasm - VB sucks and I am having a bad day trying to use it. But the answer is no, they are different languages, and you cannot take code from one into the other. If it's a function, rewrite it ( if you can ), if it's a class, expose it via COM.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
You don't like VB? The beautiful language with forced auto formatting features and the great relation to parenthesis? Even Option Explicit cannot convince you? Neither my favourite End If ? It is not possible. What I am thinking is, that you are spitting on this great language to discourage other fellow programmers and during nights, hidden by dark, you are using its great features to program the greatest piece of application ever.
|
|
|
|
|
You know, for a moment I thought you were serious, then I realised you were listing all the things I hate about it ( well some of the main ones anyhow ).
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
hehe got you , how can one be serious, while speaking about VB
But on the other side, VB is real helper when you have to draw a few buttons or some other GUI stuff and when it is filled with C/C++ COM objects/controls or just DLL imports doing the harder part of the job, it is really RAD and that's the way I like it.
|
|
|
|
|
The easiest way to use C++ code in VB, is to wrap your C++ code in an ATL COM object. I've used this method for a couple of years and it works well.
Michael
Fat bottomed girls
You make the rockin' world go round -- Queen
|
|
|
|
|
I have a beginner's book on MFC but I have advanced beyond it. Is there a good book for intermediate MFC programmers that cover topics like MDI Doc/View?
-- Steve
|
|
|
|
|
I'm told the Jeff Prosise book is good, I found SAMS 'Unleashed' book to be good ( I think it was called 'Programming MFC with Visual C++' ). Otherwise, 'MFC internals' is good, if dated.
In fact, with MFC 7, all those books are probably dated.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
SteveBob wrote:
Is there a good book for intermediate MFC programmers that cover topics like MDI Doc/View?
I have really found that Programming Windows with MFC, Second Edition[^], by Jeff Prosise has a ton of great material.
Nick Parker
Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein
|
|
|
|
|
As others have pointed out, the Prosise book is nice.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I have read Prosise as my beginner's book. After that, I rely now mainly on MSDN.
|
|
|
|
|
I'll have to also recommend Jeff Prosise's excellent book, but I've also found that Mike Blaszcak's Professional MFC is pretty good for explaining MFC further in-depth. For something even more detailed I've heard that MFC Internals is supposed to be excellent.
--
Paul
"If you can keep your head when all around you have lost theirs, then you probably haven't understood the seriousness of the situation."
- David Brent, from "The Office"
MS Messenger: paul@oobaloo.co.uk
Sonork: 100.22446
|
|
|
|
|
Anybody knows how to find out if a proxy server supports SSL,HTTPS?
|
|
|
|
|
I think HTTPS proxy usually uses port 443 (i'm not sure about the number) for SSL connections, try if it is listening on this port
rrrado
|
|
|
|
|
I can't seem determine which command to use (CreatProcess, shellexec, shellexecex...)so that I can ping a device and get a return value telling whether the device was found or not.
Also, when I use system() the command window stays open.
Any help would be Much appriciated.
Thanks
|
|
|
|
|
Correct me if i am wrong, you want to read the output of an executable file
and you don't know which API to choose, don't you?
If so, then use CreateProcess and use CreatePipe APIs.
Read 'Creating a Child Process with Redirected Input and Output' in MSDN
|
|
|
|
|
Right, I want to call ping and know whether it has found the other machine.
I'll check out thoughs APIs.
Thanks.
|
|
|
|
|
Why don't you use ICMP (Internet Control Message Protocol ) for checking remote host connectivity?!
Reading the output of another process is awkward for that purpose.
You can use socket, as well.
You can download ping implementation from
http://www.codeproject.com/internet/cping.asp?print=true
Goodluck,
Dudi
|
|
|
|
|
i think WlxLoggedOnSAS of gina dll is called when user press ctrl+alt+del after logon
am i right ?
i also want when user press ctrl+alt+del nothing should be done.what should be the body of WlxLoggedOnSAS?
what it should return?
r00d0034@yahoo.com
|
|
|
|
|
You want to know how to write some code that does nothing ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Hi all,
I used FindExecute() to check whether the user given filename ( eg. c:\abc.ttp ) has an associated file/application (.exe file) to open/print with.
How can I set or tell the OS system to open/print this extention ( eg- .ttp ) to open/print with this associate application ( eg- notepad.exe )??
Like setting register key in register table.. but I want to done in programmatically.
I was trying RegOpenKey, RegCloseKey, RegCreateKey but dont really know how to use them.
Can someone kind enough to give me sample code of how to use those functions please if they are the right functions to use for setting associate files for given file extention?
thanks
|
|
|
|
|
ShellExecute(hwnd, _T("open"), _T(file.txt"), NULL, NULL, SW_SHOWNORMAL);
|
|
|
|