Jishnu 160 Posting Pro

Okay. Did you use one with your code what did you observe? Did it help you in further optimization?

Jishnu 160 Posting Pro

Yeah. But by which means do you plan to update them? According to a certain rule, or randomly or according to user input?

Jishnu 160 Posting Pro

I thought that you wanted the value of the last element to be assigned dynamically. But, this is also fine. Please do mark the thread as solved if it is so.

Jishnu 160 Posting Pro

It's specially meant for developing mobile applications, so considering this problem, it'd be easier with J2ME than with VB.

Jishnu 160 Posting Pro

profiler

I've not heard that word before. I'm interested too!

Place two calls to clock(). One before calling the function and another at the starting of the function. Take the difference between the two values returned and you'll get the required time.

Jishnu 160 Posting Pro

You've posted the same problem over here. http://www.daniweb.com/forums/thread129621.html

Please be patient and do not repost the same problems.

Jishnu 160 Posting Pro

What kind of database do you have? How do you want to update it? Automatically?

Jishnu 160 Posting Pro

I have created a program that by clicking a file menu an excel dbase is created and stored.

I couldn't get you.

Jishnu 160 Posting Pro

the problem is that i have nog expirience whit bleutooth. i have no idee how I have to program vb that it can recive an bleutooth signal???

I want to control my computer whit my pocket pc using bleutooth.
the plan was dan you push a button on the pocket pc, it will send a value to te pc using bleutooth. then a vb form needs te recive that value and then do someting (for example pusiing button 1).

Considering what you want to do and your experience, the same project could be done more easily using J2ME than VB. So, if you're going to learn VB only for this particular project, switch to J2ME.

Jishnu 160 Posting Pro

why do you want to remove the first element and then add one to the end.

maybe it would be better to keep the 5 elements and move the data inside them?

so
temp = A(0)
A(0) = A(1)
A(1) = A(2)
A(2) = A(3)
A(3) = A(4)
A(4) = temp

The OP wants to add new elements too. Your code doesn't support that.

@purplegerbil

There are many inbuilt functions for string manipulations in VB6. Go to Object Browser and check out the functions in the String class.

Jishnu 160 Posting Pro

Good God! Did you realize that you're replying to a thread posted by the OP in Feb 2006? It is a general practice to do so over here only if you've got significant amount and quality of content to add to the one already there in the thread.

Better PM the OP if you want any help from him.

Jishnu 160 Posting Pro

Does anyone know a good way to measure how much time is spend ONLY calling? So not the function itself, purely the call?

Time.h has a function clock() which returns a structure of the type clock_t, which is again defined in time.h. Use that.

Lesson learned? The top one is about 30% faster when compiled with GCC. Is this a bad of C, or a bad of GCC? Bad branch prediction by the CPU? I'd really like to know.

Me too.

Edited: After seeing your optimizations, I don't think you'll call the clock() function. You'll get another overhead. You're very enthusiastic about the problem at hand... Keep it up!!

Jishnu 160 Posting Pro

I want to know actually how to build a good, working , professional, APPLICATION.

Just take up any example that's between the experimental and the professional extremities. Start coding on your own. There's no substitute for hands-on programming experience if you want to reach professional heights. As and when you'll progress, you'll encounter errors and you'll solve them. Troubleshooting skills can't be developed by just reading someone else's codes. Or atleast that's what I believe.

Jishnu 160 Posting Pro

Depends on where you've installed NetBeans.

Jishnu 160 Posting Pro

I'm sitting here looking at the same screen,
all I see is the same thing
I click and click and not a thing blinks
I know I know comes to mind
I'll ctrl alt del tab tab and tab
nothing still.
Maybe is time to pull the cord.
Now I see how much I've been missing outside of this screen.

Very good :)

Jishnu 160 Posting Pro

I'd done that by sending AT commands to a GSM modem via a microcontroller. But I think there'd be something similar for doing it through a website. Although I've not learned J2ME, I think that's what J2ME is all about.

Jishnu 160 Posting Pro

I'd designed a backward propagation error correcting code for a single layer perceptron model earlier. If you 'll be more soecific as to the nature of the problem statement and your efforts, maybe I'll be able to help.

Jishnu 160 Posting Pro

Not that I'm suggesting you leave or anything, but you need to understand that no matter how great you think DW is, it's not the only show in town. A forum with 10K+ dedicated VB programmers would be a better place to ask the question.

Fine. It was just the first time that I didn't receive any reply from here. I thought maybe something has gone wrong. Now, I've also experienced the same in the peripherals forum. Thanks!

Jishnu 160 Posting Pro

It has become appallingly obvious that our technology has exceeded our humanity.

Albert Einstein.

Jishnu 160 Posting Pro

167 = 10100111

Jishnu 160 Posting Pro

graph

Jishnu 160 Posting Pro

win --> joy

Jishnu 160 Posting Pro

Hi,

I'm trying to build UART communication channel between ATmega16 microcontroller and hyperterminal. I'm using MAX232 as a level convertor between the two. See the attachment for the connection diagram. I'm using Bascom-AVR for programming ATmega16. Here's my test code, which I've copied from its help section:

$regfile = "m16def.dat"
$crystal = 8000000
$baud = 9600
Do
  Print "Hello World"
  Waitms 25
Loop
End

When I run the project, I'm not able to see anything in Hyperterminal. But, when I open Bascom's Terminal Emulator, I can see some wild characters. Please tell me the possible reasons for this problem.

Jishnu.

Jishnu 160 Posting Pro

And there are people around who either post their homework questions or post very general problems (which are also the people who assume that other members love to make assumptions regarding the posted problems ;))

Jishnu 160 Posting Pro

Hello,

I posted a problem I was facing at the VB6 forum http://www.daniweb.com/forums/thread128475.html but couldn't get any reply for 5 days...

What should I do? Please suggest a solution to me.

Jishnu.

Jishnu 160 Posting Pro

When I select the Country on the form, i need the Country and the CountryId to be passed to a query.

I understand that when the user selects the country, he/she should get the country id. Is it so? then why do you want to pass the entire record set? Why do you want the country id to be passed in a query? To fetch any other property?

Jishnu 160 Posting Pro

Please be more specific. Specify the format of the records in the text file. Or else, state what exact problem you're facing in doing the above task.

Jishnu 160 Posting Pro

i added this exe to right click menu options for file with extension .jpg what i want is if i select a jpg file and run the exe from rightclick menu the filename of selected jpg file should be passed automatically

I couldn't get you exactly. Please try to elaborate a bit. In which menu did you add your exe?

Jishnu 160 Posting Pro

Thank you Ed. The link you gave was very helpful :)

Jishnu 160 Posting Pro

He's probably finding a programming project or problem statement in VB... But, without knowing about his background and interests, there's not much we can do.

Jishnu 160 Posting Pro

I had 1.2 with me and hadn't come to learn any such advanced feature that wasn't supported by it. I'm still learning core java. I'll upgrade my kit for sure.

Thank you Alex Edwards :), the thing is working after the modification.

Jishnu 160 Posting Pro

Okay. I've got to accept it, %p would be better.

Jishnu 160 Posting Pro

couldn't wait to

Jishnu 160 Posting Pro

Vishwanath Anand --> midgame strategy!

Jishnu 160 Posting Pro

boring is both, a continuous past tense form and an adjective

Jishnu 160 Posting Pro

164 = 10100100

Jishnu 160 Posting Pro

No

Isn't this game a bit wierd?

Jishnu 160 Posting Pro

Hello,

I'm getting a compile-time error in jdk1.2.1 which says "Identifier expected" and points to this line in the code:

Vector<Fish> fishes = new Vector<Fish>();

Aren't vectors supported in jdk1.2.1? I'm unable to catch the problem.

Jishnu 160 Posting Pro

Hi,

There are certain spell-correcting features in search engines like google...

What I want to do is this: If the word entered by the user doesn't match with any of the words in the databases, the program should try to find the word in the database that is closest to the input. How should I calculate the similarity between any two words?

I'm sure there'll be standard algorithms for it... But I don't know the exact names of any of them. Please post the names of the algorithms by which the above task can be accomplished.

Jishnu.

Jishnu 160 Posting Pro

Or use %u as addresses are of the type unsigned int.

Jishnu 160 Posting Pro

Show your efforts. This is not the place for getting your home-work done.

And read the basic books for programming in C before you start coding!

There are many ways to solve a single problem. You've to choose which one you think is right for your application.

Jishnu 160 Posting Pro
Jishnu 160 Posting Pro

"When in doubt, use brute force." - Ken Thompson.

"If brute force doesn't solve your problems, then you aren't using enough."

Jishnu 160 Posting Pro

rs.Fields(i) is same as rs(i) ,

Oh, my apologies. I didn't know that.

Jishnu 160 Posting Pro

The data members or functions maybe declared as private in the form which you're trying to access.

Jishnu 160 Posting Pro

lol...

Jishnu 160 Posting Pro

Another option is to interface with a GSM modem and use Protocol Data Unit, i.e. PDU.

Jishnu 160 Posting Pro

Use code tags :D

Jishnu 160 Posting Pro

so i would appritiate if some could be explian the codes that i need to use.

No-one would give you a tutorial over here in return for such a general problem statement.

Be specific with your problem (code, preferably) and state what efforts you've made. That would take you a long way in receiving help over here.

Though, you may have a look at http://www.daniweb.com/forums/thread41057.html

Jishnu 160 Posting Pro

You just reference the files as /file.txt, but ultimately the name of the file is file.txt.

Note: Mark the thread as 'solved' if it is so.