|
Zip is built in to .NET 2.0. Rar is not, you'd need to build a command line that runs a command line app to do it, or find a library.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have been given another project to build another front end for a dos app...
The company I work for has this program that reads in a data file that represents a 3d cube image in sections, and outputs some results. I have been tasked to write an app to stream line the process of building these 3d cube images but am not sure best way round it.
Example of text file I need to create:
House
3,3,3
0,15
0,12
0,20
a Brick
b Door
c window
d roof
e chimney
f ground
g
h
i
j
k
l
m
n
o
p
q
r
s
t House
ffffffffffffffffffffff
faaaaaaaaaaaaaaaaaaaaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faffffffffffffffffffaf
faaaaaaaaaaaaaaaaaaaaf
ffffffffffffffffffffff
The lines are as follows:
1. The internal name of the file
3. Cube size
5. Dimensions, numbers of cubes high
6. Dimensions, numbers of cubes wide
7. Dimensions, numbers of cubes long
9 - 26. letters representing certain ites of the house
27. Another title of the file.
29 - 45. Creates a segmentised make up of the house at the first cube size, so in this case a 3ft section through the house
47 - ???. Further segements through the house until all segments required are built.
Now initial thoughts are to have an initial screen get all the inputs with regards the sizes, char code representations, etc and then have another screen build a grid resenting the extenet of the house layout and allow the user to select a letter/colour to represent each seperate item in the section as required, but my question is what is the best way to do this???
As I have posted before I am new to prgramming so any help would be greatfully received.
regards,
Matt
|
|
|
|
|
matt_hirst wrote: I am new to prgramming
How new is new ? That phrase does not sit well with the task at hand, I am afraid. Do you need to display the cube, or just generate this file ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
New, is very new... Have just returned to programming, about 6 months ago, after a long - 6 year - break. Am trying to get the people I work for to send me on a few training courses, highly unlikely though.
I would like to have a representation of the model created with the layers in the top left hand side of the screen, if this is possible? Generating the first part of the file is straightforward I am just struggling with what to do to create the grid and then transfer that to the file.
regards,
Matt
|
|
|
|
|
To generate a 3D model will require DirectX or WPF. Not remotely trivial.
The way I'd do anything like this, is to create a base entity class and build derived classes for the different objects that need to be defined, and have a virtual base method that writes that entities information to the file. However, I'm not sure how sane this file format is, to lend itself to that, I tend to use XML. Is the file format fixed ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Must admit you're losing me already...
Keeping it simple for me, this is probaly totaly the wrong thing to do but... what if I created a grid by generating a grid of panes, then by clicking each pane it flips a colour/character on the layer being created, an array is built up of the layers and then output to the file???
regards,
Matt
|
|
|
|
|
It's a 3D representation, right ? So you need to be able to build layers ? Your big problem will be representing the layers in 3D. If you don't need to do this, you can probalby just build a collection of 2D arrays and have each one represent a layer. Then you could well just show a grid, but I'm not sure how usable that will be.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hay every one,
I want to delete temporary internet files programatically with vb.net, plz tell me how to implement code,
if possible give me code to do this not just hint because i m new to vb.net
looking for someone brave to made me thankfull to him
|
|
|
|
|
Christian and I have given you all the information you need - don't repost questions if you're obviously not prepared to do any work on your own - it wont make you any friends here
You should see the 'how to get an answer to your question' topic at the top of the forum
If you want to be a programmer then you have to be prepared to read and experiment - by us doing it all for you, it teaches you nothing - you will have a false sense of what you can achieve, and be worthless in a programming position.
|
|
|
|
|
What Garth said. Sure, this time you started with the right question, but you've got the answer, you just need to apply it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Or just forget the code altogether and solve the problem in about 15 seconds by doing what Guffa told you to do.
|
|
|
|
|
how can i delete a specific group of files or full listings from within specific directory with vb.net application
|
|
|
|
|
I do appreciate if some one help me with sample code
|
|
|
|
|
in the absence of your ability to use google and search for vb.net delete files :-
Dim s As String
For Each s In System.IO.Directory.GetFiles("C:\WINDOWS\TEMP")
System.IO.File.Delete(s)
Next s
how about in future you at least attempt to google for different solutions, post some code you've tried, if it doesnt work, rather than ask a question like this
|
|
|
|
|
Dear Sir, actually i want to delete Temporary Internet Files from my computer programatically to avaoid low disk space, please give me the solution i u can. I will be highly gratefull.
|
|
|
|
|
Solve the problem instead of treating the symptomes.
Open the Internet Options in IE and go to the settings for temporary files. The default settings for maximum disk space used is a percentage of the total disk space, which usually is far too much nowadays. Adjust it to a reasonable value, like for example 50 MB.
---
single minded; short sighted; long gone;
|
|
|
|
|
Environment.SpecialFolder gives you the path to things like My Documents. It should give you the location of the temporary internet folders, or you can use the values it does give, to work it out.
Yep, it's Environment.SpecialFolder.InternetCache
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
If you can't understand what you've been told, then you need to learn a little more before you attempt this task. The web seems to be full of people who think that asking for full solutions and typing them in, is programming. It's not. Buy a book, and work through it. You've been told everything you need to know to perform this task, on this thread. That you can't work it out, is an indication that you need to learn some basics.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You do seem to be making a habit of talking to yourself. People will begin to wonder.
|
|
|
|
|
LOL... reminds me of the old joke:
I'm a schitzifrenic... and so am I.
|
|
|
|
|
How VB.net is different from VB 6.0
Pramod
|
|
|
|
|
This question has been asked countless times already. A simple web search should provide you with an abundance of information.
If you have more specific questions about the differences, they would be suited for discussion in a forum.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa wrote: This question has been asked countless times already.
Yes, but it's always fun to answer :P
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Google broken where you live ?
VB.NET is an object oriented language that is based on the .NET framework and uses verbose, English like syntax that some people find comforting, and others find annoying. This pursuit of simplicity actually complicates VB at times, but it's still a powerful language.
VB6 is a joke. Everything bad about VB.NET is stuff that was carried over for VB6 to help people migrate to it. It's main purpose in life was to let people who could not learn C++, write simple business apps
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You C++ people can't understand that sometimes people have a preference for vb.net nto because they are incabable of learning C++, perhaps you shoul watch how you phrase things because alot og things you say are sounding more and more like th industry standard arrogance that everyone should avoid. Its what makes the IT world frightening to some people because you overwhelm them with the idea that they know so little that they may as well leave it to the people who already know it instead of learning it themselves.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"
|
|
|
|