Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Standard C, C++
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 11-19-2007, 02:42 PM   #16 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Oops, you are correct, I just remembered that I used to use the <print screen> to send the little bit of output to a printer. Man, I have been out of programming for a while. =+}

Still, no worries, I'll get as far as I can and holler for help when the time comes. =+}

Thanks ya'll!
__________________
cheawick is offline   Reply With Quote
Old 11-19-2007, 02:51 PM   #17 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Doesn't Windows come with Mysql embedded? I can't seem to bring it up by typing that "mysql>" command.
__________________
cheawick is offline   Reply With Quote
Old 11-19-2007, 04:16 PM   #18 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Sorry, nevermind, I think I found what I needed to download. =+}
__________________
cheawick is offline   Reply With Quote
Old 11-21-2007, 08:38 PM   #19 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Embarrasingly... I do not know what I should do now that I have MySql... I know I have to create classes and data... Err... I'm missing something simple, something just aint clicking... =+\
__________________
cheawick is offline   Reply With Quote
Old 11-22-2007, 03:47 AM   #20 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
Well, did you read the MySQL API documentation?

If so, then create the mysql.lib for your win32 compiler to use the dll statically or use a loader to load the export functions dynamic (helps to have a mysql.def file).

No clue about static vs dynamic? Read a book or start a new topic.
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 11-23-2007, 09:13 PM   #21 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Hrm... I think I did miss that part of the documentation. I probably tried to dive in too quick, I will read from start to finish this time. My thanks. =+D
__________________
cheawick is offline   Reply With Quote
Old 11-27-2007, 03:03 PM   #22 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
I see what my problem is, I still do not have a firm grasp on C++ yet, and I am again mixing up C with C++. Heh, can't quite use calls that don't exist. =+\

Ah well, I'll have to try again later. I do thank ya'll for the help, I was just too overconfident with my ability. =+}
__________________
cheawick is offline   Reply With Quote
Old 11-28-2007, 07:56 AM   #23 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,545
Valmont is on a distinguished road
Do you think you really need C++ for that particular job?
It's quite possible that a scripting language will do you database-job perfectly. Not everything needs to be built with powerful languages like C/C++!
__________________
Valmont is offline   Reply With Quote
Old 11-28-2007, 12:52 PM   #24 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Actually, this was more a self test of what I learned so far. Sadly, I failed miserably. =+P

It is difficult for me to learn by lesson, I usually have to reverse engineer a similar program for me to understand what is going on. I'm trying to stick with C++, because I know once I can figure it out it will be a very powerful programming tool.

However, seeing as I keep mixing C and C++ up (again), I am debating taking a whack at Java for a while. =+\

It would help if I didn't try to jump forward, but I understand application type lessons vs. the usual instructional lesson. =+{

I guess I must re-ponder my programming future. =+}
__________________
cheawick is offline   Reply With Quote
Old 11-29-2007, 12:33 AM   #25 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
Quote:
Originally Posted by cheawick View Post
It is difficult for me to learn by lesson, I usually have to reverse engineer a similar program for me to understand what is going on.
I doubt that! You maybe "see" what's going on but, reproducing the same functionality in your own code will probably fail miserably.

Secondly, if i gave you my code you can use it but i don't think you will ever understand it when it's not documented. Not to mention finding the code that circumvents security issues and bugs.

Don't get me wrong that seeing some code will not help to learn you. But when you do it on your own on the level of knowledge you have, is far better.
That way you don't only learn how it works, but also when it doesn't work.

Moving to Java because C/C++ seems hard is a lame excuse. They are two totally different languages and Java only allows objects.
Functions do benefit to a program, due to the fact that Java needs wrapper objects to call Windows API C functions, and that's why Java is slow.

Afterall each OS is written in C so any language except C needs somesort of workarounds to get things going.
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 11-29-2007, 01:29 PM   #26 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
You are correct on a number of my reverse engineering of code, many have failed and I still keep them for later reference to try to work out my mistakes, I will not deny that. =+}

As for the security issue, I've not advanced far enough to even condsider anything greater than error handling. I always encounter bugs, I fat finger keys way too often not to. =+D

Java is something a buddy of mine suggested I look into, at the time he was under the impression that I just wanted to make simple games, so even tho I went as far as buying a book on it I never even cracked it open. I don't think Java will have the power and functionality I need, once I get going that is. =+\

In the end, I am not giving up on C++, I just need to back pedal a bit to figure out why I keep making the same mistakes. =+}

Thanks for helping me reaffirm my resolve. =+D
__________________
cheawick is offline   Reply With Quote
Old 11-29-2007, 02:03 PM   #27 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 635
DJMaze is on a distinguished road
just open a topic and ask us what mistake you make, then we give you: hints, tips and maybe even answers
__________________

UT: Ultra-kill... God like!
DJMaze is offline   Reply With Quote
Old 11-29-2007, 04:32 PM   #28 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,114
Belisarius is on a distinguished road
Quote:
Originally Posted by DJMaze View Post
Functions do benefit to a program, due to the fact that Java needs wrapper objects to call Windows API C functions, and that's why Java is slow.
Hey now, let's not go on perpetuating myths. Java 1.1 was slow (frequently due to the way early versions of Java were doing garbage collection) - recent versions of Java, however, are very fast. Remember, the JVM isn't interpreting Java code, it's interpreting compiled bytecode - something that is pretty close to machine code. At that point, it's a question whether or not the compiled machine code is faster than the interpreted bytecode run through a JIT compiler, which due to the advancement of profilers and runtime optimizers, isn't necessarily a foregone conclusion.
__________________
GitS
Belisarius is offline   Reply With Quote
Old 11-30-2007, 02:01 PM   #29 (permalink)
cheawick
Regular Contributor
 
cheawick's Avatar
 
Join Date: Dec 2003
Location: Mary Esther, FL
Posts: 188
cheawick is on a distinguished road
Quote:
Originally Posted by DJMaze View Post
just open a topic and ask us what mistake you make, then we give you: hints, tips and maybe even answers
I already know. =+}

I'm using the C calls for a C++ prog, the compiler showed me where. No biggie, since I only have time to code on weekends I figured my old habits would re-emerge. I just need some time to fix my simple mistakes, also fix some commom use personal header files that I made to reflect C++ coding and I should have an outline of what I want fairly soon. =+}

Thanks tho, I do appreciate it! =+}
__________________
cheawick is offline   Reply With Quote
Old 03-08-2008, 07:32 AM   #30 (permalink)
wolf99
Code Monkey
 
wolf99's Avatar
 
Join Date: Jan 2006
Location: in college (again) in rural Eire
Posts: 44
wolf99 is on a distinguished road
flat db

I now this thread is fairly old, but thought to add my 2c's

a guy in my class is doing a project that uses text files as a flat db

basically reading one line at a time and checking for delimiters within the line etc

this would cut down on having to learn new languages/methods etc and I think may help with portability.
__________________
wolf99 is offline   Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
C Database Programming bakoo Platform/API C++ 3 11-20-2006 04:20 PM
Include file shown correctly in FF not in IE Stoner HTML, XML, Javascript, AJAX 2 04-21-2006 07:56 AM
Starting out with C anon C 0 02-24-2003 01:06 PM
edit? anon Lounge 10 11-21-2002 03:02 PM


All times are GMT -8. The time now is 08:54 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle