|
sammy15024 wrote: . But I dont think it would be easier to understand for other people if I shorten it out.
Why do you think that ? you're dead wrong. If you actually try to debug it yourself, you'll either find the answer, or come up with a code snippet that you can intelligently explain what you expect, and what it is doing. What you're saying right now is, I wrote all this code, and I'm too dumb to understand it, so you do the work for me.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi Christian,
Thanks for your reply. I tried with all of my little knowledge. But was undone fully. Somewhere I am doing something silly so my exe is not working exactly. Since my code is dependant with other two files, I am not able to understand where there something is misiing in source files or in source code. That was the reason I posted all the source code.
Regards,
Sam
|
|
|
|
|
So, you stepped through the debugger, and all you can tell us is that something doesn't work in the source code as a whole ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
I'm sorry, but this is a disaster. This code is close to unreadable. It is full of idioms that make no sense. You don't define 'not working' and it's clear you've not bothered to use the debugger to work out why it's doing what it is. No-one can fix this code without running it, with the files you are using, and no-one is going to do that for you. We'd be happy to explain to you how to use the debugger, although you really should have a book to tell you that. This code is way too bad, and your skill level way too low, for you to be doing this for a paid job, so I assume you're doing this for a class. Your best bet, is to talk to your professor, so he/she knows how lost you are and is able to better help you going forward.
Of course, the industry in the state it's in, I am aware that someone may well be paying for this mess. If that's true, it's an absolute disgrace. Of course, if it's not, then everyone has to learn, the issue here is that instead of learning, you're asking us to fix it for you. The debugger is there for a reason, you will never cut it as a programer unless you take the time to learn how to use it.
But, if you're willing to at least try to diagnose your own problem, and if you have a specific question when you know exactly what is going wrong, I'm sure we'd be happy to help you. I would recommend reading the guidelines on how to ask questions before posting another one, you broke a fair number of them in your post this time.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
sammy15024 wrote: But I guess your earlier post is too offensive.
I'm sorry if the truth offends you. The truth is, no-one can help you just by reading the code. They would have to run it. And, no-one is going to do that. So, if you want to write code, then learn to debug it. It's REALLY easy. Press F9 to set a breakpoint and your code will pause where you set it, the debug menu will let you step through and see what is happening.
What is obviously happening is that your file format is not exactly what you think it is, and so the code fails for some lines. Again, the debugger is how you work out what is going on.
sammy15024 wrote: If you can't assist other you dont have any right to insult he/she.
I have given you more help than you deserve. Just because I didn't magically pull a solution out of thin air ( when finding one based on this is impossible ), doesn't mean I didn't try to help.
If you're not able to debug this code, then it's probably true that a wealth management company shouldn't be managing people's wealth based on code that you don't really understand. Why not pay someone to write something that works, if you're not willing to take the time to learn to do it yourself ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
modified on Sunday, July 12, 2009 11:31 AM
|
|
|
|
|
Christian Graus wrote: If you're not able to debug this code, then it's probably true that a wealth management company shouldn't be managing people's wealth based on code that you don't really understand
Sammy is from India. Would you send your wealth to India to be managed?
If the “wealth management” companies in South Asia are anything like the “wealth management “ companies in Southeast Asia (and why should one thing they are different) the only wealth management is to transfer money to a bank in Hong Kong (or some other such place) and never see it, or the proceeds of the management efforts, again.
|
|
|
|
|
|
sammy15024 wrote: We do manage BILLIONS OF USA WEALTH.
No doubt you do, but do the investors get anything in return?
|
|
|
|
|
|
sammy15024 wrote: We think they get a healthy and wealthy returns. Thats why we are doing it for few many years.
No doubt you do, but do your investors believe they are getting healthy and wealthy returns?
If you manage billions in US wealth you are surely a publically owned company. What is you stock symbol and what exchange do you trade on?
I may be interested in buying some stock in your company.
|
|
|
|
|
|
|
sammy15024 wrote: We do mmanage for company not for an individual.. Are you a company or individual. If you have millions why are you wasting your valuable time here gor at WSJ/ Bloomberg.
I am a company with millions to invest.
sammy15024 wrote: Dont do non productive time waste thanks.
Why do you not want to take my money?
Let me speak with your MD!
|
|
|
|
|
ROTFL !!! I am enjoying this. Poor guy thought he'd get something written for free, and instead he gets exposed.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: Poor guy thought he'd get something written for free, and instead he gets exposed.
I just call them as I see them.
|
|
|
|
|
Went through your code a bit. Looks like you are dealing with some kind of delimited files. You can create a datatable out of it using OleDB classes instead of all those loops. Also, at one place you are replacing space by space. Why is that?
Here:
str = str.Replace(" ", " ");
This is not going to solve your problem but will reduce the amount of code. Can you explain what exactly is the problem since your post isn't clear enough.
|
|
|
|
|
hi,
IMO you shouldn't bother reading through many lines of unformatted code. When the OP is lazy, I skip the thread. Period.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Why this post was voted down?
|
|
|
|
|
Absolutely no one is going to author all that code for you.
|
|
|
|
|
|
We're not going to do your homework for you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Sammy works for a "boiler room" fraud. Do not assist him in any way.
|
|
|
|
|
i GOT ENOUGH HELP FROM EVERYBODY. dONT REQUIRE ANYMORE THANKS
|
|
|
|