Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 12th, 2006, 8:42 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You could have a kazillion problems, including improper calling conventions. Your first error message says you have two mains. You gotta fix that first.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 12th, 2006, 8:49 PM   #12
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
wicked, I'll do that and then get back.
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Apr 24th, 2006, 6:11 AM   #13
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
I got rid of the multiple 'mains' and i'm not left with all the errors except the one that talks about main.

I need to use the fucntionality of both these librarys in one programme but I'm starting to think that's impossible.
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Apr 24th, 2006, 7:17 AM   #14
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by Ade
I got rid of the multiple 'mains' and i'm not left with all the errors except the one that talks about main.
Show which messages you have left.

Quote:
Originally Posted by Ade
I need to use the fucntionality of both these librarys in one programme but I'm starting to think that's impossible.
I'm pretty sure you can use them both. If you are almost about to give up then give us GWin and we'll take a stab at it.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Apr 24th, 2006, 8:32 AM   #15
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
Yeah cool I'm at uni at the moment, I'll post the errors when I get back.

What I have done to create these errors is basically added the GWin files including the GWin.lib file to the MySQL++ package. I expected this to work but my visual c++ knowledge is not exactly extensive. I don't suppose starting a new project from scratch and adding the GWin and MySQL++ files to it would make a difference?

I'm not going to give up, it's just frustrating!!
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Apr 24th, 2006, 9:50 AM   #16
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by Ade
I don't suppose starting a new project from scratch and adding the GWin and MySQL++ files to it would make a difference?
I've had that a few times indeed, I'd try it for sure.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Apr 26th, 2006, 6:52 PM   #17
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
Well, I had no joy from that. Is it even possible to have one project with two .lib files included in it?
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Apr 26th, 2006, 6:58 PM   #18
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Sure. Why don't you zip up your code and attach it, it you can include the GWin lib.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 27th, 2006, 7:51 PM   #19
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
I cannot include the gwin library on here as the .zip file is over a MB in size.

The GWin library for visual studio 6 or 7 can be downloaded from the GWin site at http://nights.doc.ntu.ac.uk/Zope/Gwin/Downloads.

The MySQL++ library can be downloaded from http://tangentsoft.net/mysql++/.

It's hard to include with this some sample code as it requires you having a MySQL database running on your machine.

Basically I need to be able to merge these two librarys (if librarys is even the right word) into one so that I can, in one project, draw on the graphical power of GWin and the database connection from MySQL++.

My knowlegde of visual studio is limited so I'm not even sure what to try next but if anyone could maybe take a look at give me a point in the right direction I would be so gratefull.



Thanks Ade
__________________
Don't wound what you can't kill
Ade is offline   Reply With Quote
Old Apr 27th, 2006, 7:56 PM   #20
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Well, I have a MySQL database on my local machine, and one on my website. It would be nice to have some small snippet of code that exhibits the failure.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:19 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC