C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

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 Articles Community Forums Sponsor:
  #1  
Old March 3rd, 2005, 01:13 AM
MatrixsurferX MatrixsurferX is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 12 MatrixsurferX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Question Where would I.....

Where or how would I begin to write code for a program that could take a .txt, .doc, or rich text,
and turn them or convert them into a special file that has its own extension, xyz for example, and
and can only be read by that program? Thanks for your input! =)

Reply With Quote
  #2  
Old March 3rd, 2005, 08:44 AM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey MatrixsurferX!
Look, txt and doc are very different things!! The first thing I would do, is detemin all formatting symbols of every file type you wish your aplication to be able to process. Then, I would define the formatting symbols your aplication is going to insert among the characters of the text (create some sort of parallelism between them). The design part is the most important and should come before the coding!!
Once you have that, start reading the file to be processed and simply replace the formatted text with your own formats...

Good Luck...

Anibal.

PS: That is a simple solution. You can add more formatting chars, encription, etc. But, I suggest you begin with this...just to make things simpler!

Reply With Quote
  #3  
Old March 3rd, 2005, 01:19 PM
MatrixsurferX MatrixsurferX is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 12 MatrixsurferX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Smile

Thanks alot! I'll work on that. I like your idea. I thought I might use Wedit, you ever use that? If so what do you think about it and do you think it's right for this type of application I am going to make?

Reply With Quote
  #4  
Old March 3rd, 2005, 01:45 PM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey! I've never used that..in fact, I have no idea what it is . I've always used notepad or an IDE, such as Borland's (Wedit is an editor, right?). Anyway..can't help you there..but I'll get the aplication and try it out...see how it goes!!

Thanks and good luck!

Anibal.

Reply With Quote
  #5  
Old March 4th, 2005, 01:47 AM
MatrixsurferX MatrixsurferX is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 12 MatrixsurferX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Smile

Yes please try out Wedit, its more than just an editor. Evidently you can create the UI. Add buttons and what not. I thought this was needed to
as part of the program creation. Hmmm....maybe not. Oh well, let me know what you think!

Thanks for your help Anibal!

Reply With Quote
  #6  
Old March 4th, 2005, 05:47 AM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
The solution is correct but one needs to do extensive work on this. Anibal is right , you need to know format symbols of each type of doc.

I guess you are making a utility that converts documents in morethan one form.

Reply With Quote
  #7  
Old March 4th, 2005, 07:43 AM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey All!
I downloades Wedit...(a trial, of course)...I haven't had much time to test it, but (and call me old fashion) I prefer the Borland's proyect editor. I think is the visual C++ 5.? (or something like that). It lets you create the UI, DLLs, all of it. Perhaps is the same storie, but I read somewhere in the net (not that is all true) that Wedit has certain flaws when creating DLLs (bad thing for a proyect!).

Anyway, I don't think it matters what you use. Just create the DLLs that do all the process of conversion (the processing of the files - so you can reuse the DLL in other proyects you may need) using the proyect Manager you like. The rest can be done even with notepad (just kidding).

Good Luck...to both of you!!


Anibal.


When you create functions in a DLL, remember: It's better to create 150.000 functions that do a specific little work..than one gigantic function. If you have little functions, you can call them up in different proyects. Otherwise, you're in a lot of trouble reusing that code!

Reply With Quote
  #8  
Old March 4th, 2005, 12:04 PM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
Quote:
Originally Posted by Anibal
Hey All!
I downloades Wedit...(a trial, of course)...I haven't had much time to test it, but (and call me old fashion) I prefer the Borland's proyect editor. I think is the visual C++ 5.? (or something like that). It lets you create the UI, DLLs, all of it. Perhaps is the same storie, but I read somewhere in the net (not that is all true) that Wedit has certain flaws when creating DLLs (bad thing for a proyect!).

Anyway, I don't think it matters what you use. Just create the DLLs that do all the process of conversion (the processing of the files - so you can reuse the DLL in other proyects you may need) using the proyect Manager you like. The rest can be done even with notepad (just kidding).

Good Luck...to both of you!!


Anibal.


When you create functions in a DLL, remember: It's better to create 150.000 functions that do a specific little work..than one gigantic function. If you have little functions, you can call them up in different proyects. Otherwise, you're in a lot of trouble reusing that code!


100% agree.

Reply With Quote
  #9  
Old March 6th, 2005, 01:46 AM
MatrixsurferX MatrixsurferX is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 12 MatrixsurferX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 52 m 26 sec
Reputation Power: 0
Question

Hey Cirus,

Where would I find the format symbols of each type?
I thought Wedit was also used to create the Actual UI for the program?
I don't understand how to link the butoons to the actual program....

Reply With Quote
  #10  
Old March 6th, 2005, 08:30 AM
Anibal Anibal is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 176 Anibal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 20 m 48 sec
Reputation Power: 4
Hey Matrix! I know you didn't ask me, but I'm trying to overcome a terrible hangover, and the only way to do that, is staying awake...so here's the answer:
Usually, when you insert a button, you double click it (during the design) and you get a worksheet where several method apear (each one, responding to a different evet: onClick, onMouseOver, etc). You just write the code inside the event you want!. Like I said before (I know I prommised to test it) I don't know Wedit, but it can't be that different.

Regardin the second part, that is as to where to find the symbols, you need to do a furious research. Don't bother looking inside manuals of the product (that never works). My advice:

1) Check some "underground" sources....this kind of papers are allways available
2) if no information is found, open a simple (one word) .doc with an hexadecimal editor and try different formats...then write them down.


Good Luck! (everyone...Cirus, you're included )


Anibal.


PS: Important thing!: .doc (and I think PDF as well) not only contain format characters as to bold, italics, and font size....there's a super gigantic header which specifies version number and many more features! When you read those kind of files, you must know that those are neither formatting chars nor user text..they are headers and shouldn't be processed (but usefull as to know if your application is ready to process such version of file).

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Where would I.....


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 1 hosted by Hostway
Stay green...Green IT