Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old May 6th, 2008, 03:38 PM
Knowledgestuden Knowledgestuden is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 6 Knowledgestuden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 8 sec
Reputation Power: 0
Red face VC++ .net read from a sql database

Hi there,
I am new to this forum,
but I found you helpful

I used to work with the C++ 6.0, but now I need to use VC++.net, the C++ that comes with the .net framework ,
is there differences between them , and I need a help read from a sql database from a c++ code!! links to read that discuss how to program that would enough

Any help please ,
thanks in advance

Reply With Quote
  Trader Rating: 1 · #2  
Old May 6th, 2008, 03:46 PM
weevilofdoom's Avatar
weevilofdoom weevilofdoom is offline
BLURG
Dev Hardware Loyal (3000 - 3499 posts)
 
Join Date: Sep 2004
Location: Oregon
Posts: 3,420 weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 32443 Folding Title: Starter FolderFolding Points: 32443 Folding Title: Starter Folder
Time spent in forums: 2 Months 23 h 55 m 21 sec
Reputation Power: 3411
Send a message via ICQ to weevilofdoom Send a message via AIM to weevilofdoom Send a message via MSN to weevilofdoom Send a message via Yahoo to weevilofdoom Send a message via Google Talk to weevilofdoom
The c++ should be the same. C++ is C++. Any info on sql database with C++ code would depend on what kind of SQL database. There is mysql++ libraries to interface with mysql ... and there are general ODBC crap for SQL Server ..
__________________

Reply With Quote
  Trader Rating: 0 · #3  
Old May 6th, 2008, 04:08 PM
DrStrangluv's Avatar
DrStrangluv DrStrangluv is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 182 DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 5 Days 10 h 55 m 7 sec
Reputation Power: 320
Well, Visual Studio now has C++ and C++.Net. They are 2 different things.

If you are only using C++ (without the .Net part) then very little has changed. MFC even still works pretty much the same.

There are, however, a few important differences. The newer version adheres more closely to the standard, and therefore some of your code may have to change. For example, just with file streams I recall off the top of my head that you can no longer pass them to functions by reference, and if you close a stream variable and want to re-open it you must also call .clear() first.

If you are using C++.Net, then there is the addition of a new kind of pointer that points to managed objects. It's denoted with ^, intead of *. There is a new gc_new operator that you'll use most of the time instead of the old 'new' operator, and items allocated with gc_new do not need to be deleted. Finally, you have access to namespaces and classes within the .Net framework.

For C++.Net, the framework replaces everything that used to live in MFC libraries; hardly anything from MFC carried over to .Net exactly the way it was before, and the .Net framework is much larger than MFC was. Database access, for example, is now available through classes in the System.Data namespace rather than CDatabase, which no longer exists.

I don't really recommend using C++.Net. It's an awkward mashup, imo. You obviously already have visual studio, so if you have the leeway you might find that C# is even easier to pick up than C++.Net.
------------------------------
@weevil: The only reason to use ODBC to talk to SQL Server is if you're building the program to work on linux. There are native drivers for windows and mac that work much better, and with the mono project they may even be available for linux now, too.

Last edited by DrStrangluv : May 6th, 2008 at 04:19 PM.

Reply With Quote
  Trader Rating: 0 · #4  
Old May 6th, 2008, 04:24 PM
Knowledgestuden Knowledgestuden is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 6 Knowledgestuden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 8 sec
Reputation Power: 0
mmm, thanks for replying
but do u mean that the same classes used in C# for example are used in the C++ in the .net framework?

Reply With Quote
  Trader Rating: 1 · #5  
Old May 6th, 2008, 05:24 PM
weevilofdoom's Avatar
weevilofdoom weevilofdoom is offline
BLURG
Dev Hardware Loyal (3000 - 3499 posts)
 
Join Date: Sep 2004
Location: Oregon
Posts: 3,420 weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)weevilofdoom User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 32443 Folding Title: Starter FolderFolding Points: 32443 Folding Title: Starter Folder
Time spent in forums: 2 Months 23 h 55 m 21 sec
Reputation Power: 3411
Send a message via ICQ to weevilofdoom Send a message via AIM to weevilofdoom Send a message via MSN to weevilofdoom Send a message via Yahoo to weevilofdoom Send a message via Google Talk to weevilofdoom
ya, most of the work i do is cross platform and not .NET so ODBC it is.. but I do know what you're saying

Reply With Quote
  Trader Rating: 0 · #6  
Old May 7th, 2008, 08:04 AM
DrStrangluv's Avatar
DrStrangluv DrStrangluv is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 182 DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level)DrStrangluv User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 5 Days 10 h 55 m 7 sec
Reputation Power: 320
Quote:
Originally Posted by Knowledgestuden
but do u mean that the same classes used in C# for example are used in the C++ in the .net framework?
Yes. C#, C++.Net, VB.Net, F#, IronPython, and any other .Net language I'm forgetting all use the same base class library.

But C++ is different from C++.Net. Plain C++ can not use those libraries.

Reply With Quote
  Trader Rating: 0 · #7  
Old May 8th, 2008, 04:38 AM
mphill's Avatar
mphill mphill is offline
untitled
Dev Hardware Expert (3500 - 3999 posts)
 
Join Date: Oct 2005
Location: Zagreb
Posts: 3,679 mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)mphill User rank is General 48th Grade (Above 100000 Reputation Level)  Folding Points: 14729 Folding Title: Novice Folder
Time spent in forums: 3 Months 2 Weeks 4 Days 1 h 49 m 23 sec
Reputation Power: 4203
Send a message via ICQ to mphill
Use C++. It is effective and work on all platforms.
__________________
Click Here ->    

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > VC++ .net read from a sql database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway