Jishnu 160 Posting Pro

"It's not whether you win or... Okay, maybe it is".

Adolf Hitler.

Jishnu 160 Posting Pro

I'd sprinkle water on my eyes.

Jishnu 160 Posting Pro

Because, VB considers the source as <the path where your project file is> + the address of the text file relative to that path.. For e.g., "C:/Project"+"/txtfile.txt"

Jishnu 160 Posting Pro

It should be rs.Fields(i) instead of rs(i). Also maybe there's some problem with the connection of record set with the database file. Please post the entire code. Use code tags.

Jishnu 160 Posting Pro

Hello,

I'm using MAPI component to send email messages via VB6. Here's my code:

Option Explicit

Private Sub cmdEnd_Click()
	Unload Me
End Sub

Private Sub cmdSend_Click()
	MAPISession1.SignOn
	MAPISession1.DownLoadMail = False
	DoEvents
	MAPIMessage1.SessionID = MAPISession1.SessionID
	MAPIMessage1.Compose
	MAPIMessage1.RecipAddress = txtSendTo.Text
	MAPIMessage1.ResolveName
	MAPIMessage1.MsgSubject = txtSubject.Text
        MAPIMessage1.MsgNoteText = txtMessage.Text
        MAPIMessage1.Send False 
        MAPISession1.SignOff
End Sub

Private Sub Form_Load()
	Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
End Sub

Private Sub txtSendTo_GotFocus()
	txtSendTo.SelStart = 0
	txtSendTo.SelLength = Len(txtSendTo)
End Sub

When I run it, I've to enter data in the fields 'To', 'Subject' and 'Message'. When I click on 'Send', a prompt appears which says, "A program is attempting to send the following email message on your behalf, <Details of the message>, Would you like to send the message?" There are two buttons, 'Send' and 'Do not send'. The currently selected button is 'Send'. I want to automate the process of selecting the appropriate action i.e. sending or not sending the message. I want to change my code so that this action is dealt with from the code itself.

I'd thought that inserting ascii values for characters like tab key and enter key in the keyboard buffer after a certain delay would solve the problem. But I don't know how to implement the same. Also, I'd like to know is there any other easier way to achieve the same?

Regards,
Jishnu.

Jishnu 160 Posting Pro

Use code tags. Mention specific problems and the line no.s. The size of the code is a bit too lengthy. Proper formatting and specific questions would take you a long way ahead in getting help.

Jishnu 160 Posting Pro

My problem is with a for loop that i have done, to check whether the answers entered by the user are correct or not. But the program isn't doing anything inside the for loop.

Please try to be more specific regarding the behaviour of your program. Mention what exactly it does when you run it and how that differs from your requirements.

Jishnu 160 Posting Pro

CODE 1:

#include<stdio.h>
#include<conio.h>
#include<bios.h>
#include<time.h>
#include<dos.h>

void main(void)

... and many others...

i m using standard c++.........

(!!!)
I bet you're kidding.

Try formatting your code properly. That would make ot more readable and comprehendable. And codes similiar to this one are written for DOS based C++ compilers. Even if there's no other error, this is not meant for Standard C++

CODE 2:

You've not given the function definitions in async.h file in the second code. Go ahead, keep the others wondering.

Jishnu 160 Posting Pro

can anybody predict the output of this code?
# include<iostream.h>
#include<conio.h>
#include<string.h>
class tel_directory
{
char address[20];
public:
char name[20];
int phoneno;
void getdata( );
void dispdata( );
void modifydata( );
void deletedata( );
};
void tele_directory::getdata( )
{
cout<<”\nTelephone Directory Registration”;
cout<<”\nEnter Customer Name”;
cin>>name;
cout<<”\nEnter Phone Number”;
cin>>phoneno;
cout<<<<”\nEnter Address”;
cin>>address;
}
void tele_directory::modifydata( )
{
int newtele_no;
cout<<”\nEnter the new telephone number\n”;
cin>>newtele_no;
phoneno=newtele_no;
}

void tele_directory::deletedata( )
{
phoneno=0;
strcpy(name,” “);
strcpy(address,” ”);
}
void tele_directory::dispdata( )
{
cout<<”\n\t”<<phoneno<<”\t\t\t”<<name<<<<”\t\t\t”<<address;
}
void main( )
{
clrscr( );
tele_directory t[10];
int choice,i=0;
int tno;
char tname[20]
do{
cout<<”\n1:New Customer\t\n”;
cout<<”\n2:Modify\t\n”;
cout<<”\n3:delete \t\n”;
cout<<”\n4isplay\t\n”;
cout<<”\n5:Exit \t\n”;
cin>>choice;
switch(choice)
{
case1:
i=i+1;
t.getdata( );
break;
case2:
cout<<”\nEnter Phone Number to be modified\n”;
cin>>tno;
for(int j=0;j<=i;j++)
if(t[j].phoneno==tno)
t[j].modifydata( );
break;

case 3:

cout<<”\nEnter Phone Numberto be deleted\n”;
cin>>tno;
for(j=0;j<=i;j++)
if(t[j].phoneno==tno)
t[j].deletedata( );
break;
case 4:
cout<<”\n\t\t\TELEPHONE DIRECTORY\n”;
cout<”\n\t\t\t\n”;
cout<<”\n\t\t\t\t\t\t\t\tTel:03-7220201”;
cout<<”\n\n\n\TPHONE No NAME ADDRESS”;
for(j=0;j<=i;j++)
t.dispdata( );
cout<<”\n\n\n\t\t\t********************”;
break;
case 5:
break;
}
}
while (choice!=5)

Jishnu 160 Posting Pro

Can you not put some trigger , like if there is keywords like urgent homework help ,etc in the title of the post but there is no "code" tag in the body of the post, you can redirect the poster to your sticky "we only give homework help" to whoever shows some effort and then allow the user to post a message?

I'd like that. Though, as always, I don't know how much work and for whom does that mean. Try posting it on the DaniWeb Community Feedback forum.

Jishnu 160 Posting Pro

sad, had, was.

thorn

Jishnu 160 Posting Pro

nod

Jishnu 160 Posting Pro

Oh no ,only one Win32 API tutorial it is one big surprise.
All of these book but they do not have win32 book that is so pathetic or i can't find anyone.

I understand that you want an ebook on Win32 API. There would definitely be good ebooks on it around, but I think that in such subjects, going for standard books is a lot easier than reading from ebooks..

Jishnu 160 Posting Pro

He talked to me about it. He has decided to write a program for 'Go'.

Jishnu 160 Posting Pro

and many pyrated copies have malwares attached

Exactly. That is what is of utmost concern to the users...

Jishnu 160 Posting Pro

thanks you all for the reply to my project idea.
made up my mind now what to do.
THANKS.

Then mark it as solved. Use the link that appears at the end of the last post in this thread.

Jishnu 160 Posting Pro

I placed it in C:\Windows\System32. It says, 'The file C:\Windows\System32\USERENV.DLL is corrupt. Reinstall the file, and try again.' When I press OK, another dialog box appears that says, 'Windows cannot run this program because it is in an invalid format.' I tried reinstalling, but that doesn't work. When I placed it in the same folder as the setup file, the same error messages are displayed.

Jishnu 160 Posting Pro

installing latest release from them is usually risky.

Why?

Google the DLL name and you'll find a link to download it. It appears to be a Microsoft library for managing user profiles or something.

I've done that. Where do I place that file?

Jishnu 160 Posting Pro

...

What does this mean?

Jishnu 160 Posting Pro

Hello,

I've downloaded the setup of Netbeans-6 IDE JavaSE for Windows from Sun's website. When I run the setup, it says, "Error starting program: A required .DLL file, USERENV.DLL, was not found". Has anyone faced this problem before? Please guide me.

Jishnu 160 Posting Pro

Try placing all the files of your package in a directory named <PackageName>. This directory can branch off from any directory named in the CLASSPATH environment variable. You may find this article to be useful. Hope this helps..

Jishnu 160 Posting Pro

lol.. What I really meant was that once you've achieved what you wanted to, its pretty difficult to maintain balance in one's life. I do believe that "An idle mind is a devil's workshop". After you've hit the jackpot, the only things that you'd be probably doing is social work, socializing with friends, etc. There would not be enough quality work to do and I might become idle (devil) sooner or later. Everyone might not succumb to such things, but I think I am not strong enough to be able to remain steadfast to that extent. Instead, it is good that I have a real goal in life, always.. Who knows, the road travelled may turn out to be more beautiful than the destination reached. I want to enjoy leading my life whatever it turns out to be.

Sulley's Boo commented: :P I like your signature +4
Jishnu 160 Posting Pro

Really nice :)

Jishnu 160 Posting Pro

I'd go mad!! I'm better off without it.

Jishnu 160 Posting Pro

If you are planning to opt for CS, try searching for "Logical aptitude tests" on google. They'll help you a long way.

Jishnu 160 Posting Pro

Pick up a language you want to code in (and in which you are comfortable). If you are completely new to this topic, then search for a good tutorial. Search for "Tutorial" + "Device drivers" + "<your language name>" on google. Once you feel that you have learnt enough, start coding yourself. In case of any further problems, post it in the forum of that particular language.

Jishnu 160 Posting Pro

Sorry about that Jishnu, sara_84 posted in two separate threads and a moderator has linked them. Now it looks like I asked her to post when she had already posted!

Understood.

Do not worry so far sara_84 did not reply to anything originaly posted in first or second post. I would say it is pass deadline.

Yes, I agree.

darkagn commented: You are always so nice to everyone! +1
Jishnu 160 Posting Pro

so what have you done so far?

sara_84 has posted the code, but hasn't bothered yet to mention what are the problems regarding it.

am doing Comp. Science project

I need a Project description mosty in JAVA(comiler )

Your keyboard is somewhat nasty ;). If you are doing a project, you are the one who is supposed to know about it. How can anyone else write its description for you?

Jishnu 160 Posting Pro

I can give you loads of links regarding the theory and its various applications. But if you'll narrow down the topic to exactly how (i.e. using what) do you want to accomplish multi-signal transmission using IR, then it will be easier for both of us.

Jishnu 160 Posting Pro

i just need to know the concept

You transmit different signals at different frequencies. One option that I earlier used is by implementing square wave generator using IC 555. At the receiver end, you can have different ICs for different frequencies like TSOP17xx (where xx is the frequency in kHz, e.g. TSOP1738 means receiver of 38 kHz).

Jishnu 160 Posting Pro

Connect Signal1 to one terminal and Signal2 to the second terminal.

If Signal1 is 0V and Signal2 is 5V, dc motor rotates in one direction. If Signal1 is 5V and Signal2 is 0V, dc motor rotates in the reverse direction.

Jishnu 160 Posting Pro

Okay. Did you try doinf things suggested by invisal? If so, where are you going off-track?

One more point. Is the maze created at run time?

Jishnu 160 Posting Pro

oopsssss!!! sorry
my intention was only to help....i will take care in future..

I understand your goodwill, but it would appear to anyone who does not know you that you were doing his homework. Please reconsider your actions in future :).

Jishnu 160 Posting Pro

Please help them, we know you can write it. They're the ones that need to learn.

Very true. Helping them write the code is a greater help to them in the long term.

Jishnu 160 Posting Pro

The assertion works for short words, but not for long ones. Also, the original text in the assertion kept most syllables together. I didn't.

Yes, that is the difference.

Jishnu 160 Posting Pro

Hey raniajay, you'd be happy that C++ has provided standard libraries without the .h extension since long. You can simply write

#include <iostream>
Jishnu 160 Posting Pro

In c++ how to convert integer value to hexadecimal (in ANSI-C ).

Hey, this is a C++ forum. There is another forum for C.

Jishnu 160 Posting Pro

You're still not giving the details. Hi Ali Sher, you need to give us the rules and other specifications to help us in helping you. If you're not interested, so am I.

Jishnu 160 Posting Pro

sorry...

There's no need to be :). I just mentioned it in case you had done it and you were not aware. Don't mind..

Jishnu 160 Posting Pro

I dont like either.

Same with me.

Jishnu 160 Posting Pro

Code tags, please :D. Masijade told you to mention the problems you are getting. You've not done it yet.

is evey if statement convertible to switch...isn't it possible only in nested if's not mutually exclusive

True. switch-case statements can check only integer or character values.

Jishnu 160 Posting Pro

which can be later converted in to binary so that ascii value of each character in a string has a corresponding binary value

From what I understand, you want to convert char to int. That has been answered. Then you want to convert the int to binary. Where do you want to store that binary value? In another array? Please specify.

Jishnu 160 Posting Pro

If you are deeply interested in this sort of a thing, then try learning reversing. You cannot get the exact code written by the user because the code is modified (keeping the meaning same simultaneously) in order to achieve optimization. However, you can get some very good peeps into what the code does. I've done a bit of it using OllyDbg, which is a freeware. Search on google for "Reversing" + "Tutorials" to learn more. It will take quite a bit of time, but be rest assured, the fruits would be sweet.

Jishnu 160 Posting Pro

and how we make IR remote control circuit that transmit and receive more than two signals.
can we use serial port to do that.

Give clear specifications regarding what you want to achieve using serial port programming.

Jishnu 160 Posting Pro

thanks for the links...they are really useful...

I couldn't see any links posted in this thread before your post.

but my problem is that i dont know what are commands to compile and run the cpp program..

ok see
steps are
1.save file in bin
2.run command prompt
3. type in cd c:\dev-cpp\bin
now i m in the same directory where the compiler and the program is saved...

now what next to compile my porgram named test.cpp

in java i know those commands they are

(Toggle Plain Text)
cd c:\program files\java\jdk1.5\bin
c:\program files\java\jdk1.5\bin> javac filename.java
c:\program files\java\jdk1.5\bin> java filename this is a test programcd c:\program files\java\jdk1.5\bin
c:\program files\java\jdk1.5\bin> javac filename.java
c:\program files\java\jdk1.5\bin> java filename this is a test program
...
output

the line THIS IS A TEST PROGRAM in the third line is a command line argument..

i wanna know the cpp equivalent for this..

You've just hacked this thread for your own problem which is not at all related to what the OP of this thread is talking about. You should have started a new thread instead.

Jishnu 160 Posting Pro

The code posted by rajatC will not work if the user enters a backspace anywhere.
For e.g., inda[backspace char here]ia001.

Also, you would not want the user to leave any whitespace in between.

What you need to add is, check the scancode of the character. Then print a '*' only if it is not a backspace or any other whitespace.

Jishnu 160 Posting Pro

Hi invisal,
As rajatC pointed out the OP must mention the specifications and the rules before we can help him more. He's being too much general.

Jishnu 160 Posting Pro

i can't be sure that this is correct..

Compile it for knowing whether there are any syntax errors. Correct them if any (Like, you've not written 'return 0;' and '}' at the end of main()). Even, if you cannot see what is wring, then post the errors and the respective line no.s. We'll tell you why the errors are ocurring and help you fix them. Once it is compiled, run it. If it does not work the way you want, go through the code. Add watches and breakpoints for debugging. If you are not able to do that, post the output you're getting. You'll get help then.

Write a program to input a string in sentence format. Change all occurence of strings within the sentence with length of 4 to "AHA". Print the original string and the new string.

All the above statements apply for this problem also. I think you should have started a new thread for this one, as the two problems have nothing in common.

One more thing. The stdio.h library and the printf() statements suggest this is a C code, not a C++ code. Or is it that you've got the code in C and you want to do the same thing in C++?

Jishnu 160 Posting Pro

Yes, the book has earned quite a name, which it trully deserves. :)

Jishnu 160 Posting Pro

Oh yes. I remember seeing the posts of 'happygeek'. I didn't know that Davey was his real name.