The difference is like the difference between englisch and french, with all the literature written in it. What do you want to do with it? A language, or, better, the technologie you use should help you to solve your problems. 1) Your design shoule be "as independent as possible from the language" 2) Define what you want to do, what are the interactions. Maybe use uml for make it clear. Usecases are good to start. 3) Make a decision. Look what woule be the best technologie, wath the customer excepts, and what are the scills of you employees? MFC is a c++ library used by microsoft. ActiveX, OLE, COM, DCOM, ADO are language-independent communication-layers. DAO normally means data-access-object. This is more a design-pattern. Good luck, Hardy.
Hardy_Smith
Posts
-
Difference between VC++ and .NET (VB.NET, ASP.NET, and C# -
Reading contents of other apps WindowWith closed I mean closed-source. I don't have the source. The window itselve is open, of course. Sorry, it was not clear.
-
Reading contents of other apps WindowDavidCrow wrote:
If you have a handle to the (edit) control, you can use GetWindowText() to get its contents.
I think its not so simple. The Application ( A1 ) to control the Hardware is ready and closed. I am writing a new App ( A2 ) , in mfc, to do some extra-work. Now I want to access A1`s main window. I want to write to it and read from it from within A2. Thanks, Hardy.
-
mysql and vc++6In VC6, go to project ment, the to properties ( ok, I have a german version, so I don't know the exact name. ) There you find on the left side your build-targest, and on the right side a tab-control. In the tab, ther is a page called "linker". Go to it, There is a edit "Objects, libs". Add your library there. Then, click on category and point to input. There add your additional library-path. That's all. Good luck!
-
how to get cview or cdocment object pointer?First, pos = AfxGetApp()->GetFirstDocTemplatePosition(); ASSERT(pos); pTemplate=AfxGetApp()->GetNextDocTemplate(pos); POSITION docpos=pTemplate->GetFirstDocPosition( ); get the first DocTemplate. Then you can enumerate your views. CDocument *pDocument=NULL; while (docpos) { pDocument = pTemplate->GetNextDoc(docpos); ASSERT(pDocument); POSITION viewpos = pDocument->GetFirstViewPosition(); while (viewpos != NULL) { ... } } Hope this helps, Hardy.
-
mysql and vc++6Is there a lib included in the package you downloaded? If yes, you have not added it to your project. ( project, options, linker ) If you have sourcecode, add the sourcefiles ( the .c or .cpp ) to you project. Your trace shows many warnings because you initialise some variables you never use and then the constructor from MysqlConnection is not found.
-
Reading contents of other apps WindowHi all, I want to "control" an application with a second one. The app it there to control a Hardware and I don't have the code:(. It is command-based: I can write a command in a CEdit-like window, and the response is displayed in the same window. ( a Hexdump, maybe ) Is it possible to grap the contents of this window and to write ( from my own app ) into it? Somethink like enumerateWindow and then access over the clipboard? :confused: Thanks , Hardy.
-
Hyperlink(Button)List ??Hi Folks, I am searching a listbox similar to the "favorits" list in IE6. A List with buttons or hyperlinks whitch I can dynamically add and remove. I need it for a MFC-App. Sorry, don`t have time to write it myselfe... Anybody knows something?? Thanks, Hardy.
-
How to Remove ActiveX from project VC++6Remove the Classes. The Classes are not the control itselfe. They just interface it. Hardy
-
so confused!You have to return a value in the bool-Method. return true; Hardy.
-
I almost understand, a little more advicie please.Have you implemented the operator? logical operator ! (logical x) { ... return ... ; } If not, you will have of course a linker error! Hardy
-
PROGRAM HELP!!!!!!!And, does it work? Looks good so far. You may also want to use memset. memset( board, 0, sizeof( board ) ); Hardy.
-
Accessing data between threadsYou can also try to use thread-save lists. I think there are some at www.stlport.org. Hardy.
-
Com port enableNow I understand. You want to enumerate the com-ports of a machine? Look here: http://www.codeproject.com/system/enumports.asp[^] Hardy.
-
ODBC programming - need helpI would recommand you to use a real database server, Firebird for example. www.ibphoenix.com Do you want to program odbc lowlevel? If not, take a look at the database-Classes here in codeproject. http://www.codeproject.com/database/#ODBC[^] There are some examples. Hardy.
-
HaiDatabase design: http://www.edm2.com/0612/msql7.html Accessing with VC++: www.codeproject.com/database/odbcrecordset.asp And for a Database look at www.ibphoenix.com and get Firebird.
-
com port settingsThe CSerial- class has a "Open" and "Close" Method and it can be configured. So call open from your menu's message-handler to open the comport:), but take care that you write the configuration before. To close it, just call the close-Method. I think there is a example-App with CSerial. Hardy.
-
how to use visual c++Language -- for what?? Programming language - c++, Language for user interface ?? Whatever you like. Are you a programmer?
-
HaiAnd where do you need help? In designing the database, in asking the database ( sql ) or in reading the answer ( c++ ) Hardy.
-
how to use visual c++What do you mean with variables?? Hardy.