Prabakar 77 Posting Whiz

Try, system ( "start firefox" ) ;

Prabakar 77 Posting Whiz

When I run the program on the CD I didn't give it any command-line arguments. I just used Windows Explorer and double-clicked on the exe file. The compiler I used is VC++ 2008 Express, but for that tiny program there should be no difference because it doesn't use any compiler-specific stuff, just straight c++ and win32 api functions.

If that is the case then the program uses the current working directory, which is not D:
Am I right ?

Prabakar 77 Posting Whiz

One more question.

What is Reputation-Altering power?
I have only one. Recently I added many reputations to many other members & still its only one.

Thanks in advance

Prabakar 77 Posting Whiz

I did use the same compiler. And it DOES WORK. Well, here is a program which does not use command line arguments.

#include <string>
#include <iostream>
#include <windows.h>
#include <direct.h>
using namespace std;
#pragma warning(disable: 4996)

int main( )
{
     std::string command = "start iexplore.exe ";
     char path[_MAX_PATH];
     cout << "Enter the Path of the file(say D:\boot_index.html): " ;
     cin >> path ;
     command+=path ;
     cout << command << "\n";
     cin.get();
     system(command.c_str());
     cin.get();
     return 0;
}
Prabakar 77 Posting Whiz

I guess AD's command line approach is new to you.

If that is the case then I suppose you could do the following.
1) Learn to use Command line arguments
2) use system ( "explorer D:\\boot_index.html" ) ; The problem with this is that the address is absolute and therefore fixed.
3) Use AD's code without command line arguments. Its ain't that difficult

Prabakar 77 Posting Whiz

What did you give as the command line argument?

D:\boots_index.html

Prabakar 77 Posting Whiz

Perhaps.... I guess......... May be....... I have an error in my compiler. cause the code works perfectly to me:)

Prabakar 77 Posting Whiz

To open a file in my drive I do something like this. It works for me though I cant say why it works
system ( "explorer E:\\Downloads\\serial.txt" ) ;
system ( "explorer E:\\Downloads\\SETUP.exe" ) ;

Prabakar 77 Posting Whiz

No that's not it. I wanted to say more. But my mom called me for supper and I had to go, Now I am back. perhaps try this
file:////D://the_index.htm

I am not sure though

Prabakar 77 Posting Whiz

what about
system ( "explorer.exe http:\\");

Prabakar 77 Posting Whiz

How about this: char *ns = malloc(l * sizeof(*ns));

Great! I Did not get it on the first look though

Prabakar 77 Posting Whiz

I have replied in Linux forum. Please Check

Prabakar 77 Posting Whiz

Open up terminal and type ifconfig and tell me what comes up.

I got this.

Reply to Salims Post:
When I choose ISDN. It asks me Manual Choice or External ISDN.
If I choose External ISDN. It asks me in which com(1,2,3,...,dev/modem) port I have connected the modem. What should I choose?
If I choose Internal It asks for type of modem. Again I don't know.

Prabakar 77 Posting Whiz

I have just installed PCLinuxOS (698 MB) in one of my hardware partition.

My Problem is that I am unable to connect to the internet. And I am not able to figure out the reason. So I have decided to post some screen shots, which may explain my problem better. Please help.

Prabakar 77 Posting Whiz

Here I have come up with some screen shots. Not all of them are relevant to my problem. But just in case,

This looks very much odd. These post has nothing to do with this forum. I shall repost this in linux forum. We shall continue there

Prabakar 77 Posting Whiz

Oh my god! Guess I have to throw my book. I am learning everything wrong.

Prabakar 77 Posting Whiz

Works great in Dev C++ too!

Little tips. May be they are useful.

While compiling in turbo c++ change #include<iostream> to #include<iostream.h> same goes for "string" I believe you know this already

I remember you saying that you have never worked with Visual C++. While selecting the type of project did you select console or Win32?

Prabakar 77 Posting Whiz

Sorry for not replying for a while.
The iso is 698 MB big.
I was not able to connect to the internet when I used the Live version & after installation.
I'll post the screen shots if possible as I am just not able to explain my problem.

Prabakar 77 Posting Whiz

Great welcoming! Thank you everyone.

Prabakar 77 Posting Whiz

Well, All I want is to change my friends. At least that should be possible:)
I was not able to convince my teacher:(
When I said that, The answer I got was this "Visual C++ should not be used, Its a different language. You should use C++" I should say Turbo c++ == C++ in my world!

Glad though that the trend is changing.
In many institutions turbo c is replaced by gnu compilers. As to me Daniweb is the only source of light.

Prabakar 77 Posting Whiz

Thank you Salem You have fed me enough knowledge to convince my friends why not to use Turbo C.

Prabakar 77 Posting Whiz

I have no other choice but to accept what you say!

Prabakar 77 Posting Whiz

Considering the first problem, You guys have come up with brilliant answers which is taking me more than 20 minutes to understand. Did not someone gave a link to an easier answer so that a novice like me could understand.

Add all the element in the array subtract 1000 * 1001 / 2. The answer is the duplicate. Hope I am right

Prabakar 77 Posting Whiz

Thanks. I did not understand it clearly before. Now I understand. The Threads that I did not read appear bold to me.

Prabakar 77 Posting Whiz

It would be easier for others to find the problem if you post your code or else people will be forced to guess like Ancient Dragon

Prabakar 77 Posting Whiz

Great!

One more. I guess I did not state the first question clearly. So I would do it with an example here. If you open the Community Introduction Forum all other threads name will be bold except for my own, which you just replied. And also there is a down arrow mark in front of the thread name. How would I do it in my threads? Will [B)Hi Everyone(/B] do?

Prabakar 77 Posting Whiz

This is the first forum I have ever become a member. And I am having a good time here. Though its about a month I am having some doubts & I don't even know where to post this.

1) How to make the title of the thread I start to be bold.
2) What is the meaning of "Post a Poll"
3) This is not so important, How to use animated gif as my avatar. ( is it something only moderators can do?)

Hope this thread belongs here:-/

Prabakar 77 Posting Whiz

I am glad with your answers:)

Question of taking the hard dive is entirely ruled out. I just can't.

I knew Live PCLinuxOS will help in this case.
But I thought it would be better if I can take my XP because I can use the softwares that I have like Macromedia Flash & Visual Studio 2008 Express Edition in the infected computer.

Taking a hard disk and other such things are too much for a newbie in OS & hardware, so I think using PCLinuxOS will serve me better.
I have just downloaded a tiny version of windows( its a free ware. I just got it free of cost) which runs from a CD. I will see how it works soon.

Prabakar 77 Posting Whiz

I thought I should ask this question in linux forum. Well, I will do it here.

First I downloaded PCLinuxOS from here

Problems I face:
1) When I booted from the CD Linux asked me for Type of connection. I chose DSL & then the wizard said that No hardware is found for this type of connection.
2) After Installing the OS in one of the partition I tried to install driver for my Ethernet LAN card. The driver CD (Zerbonic) had folders for XP, ME, Solaris, etc & Linux 2.6.4
The read me file asked me to compile the source code which resulted in lots of error message. There was a makefile but I didnt know how to use it.

3) I pondered around the OS for sometime to get acquainted with LINUX & I tried to configure internet connection, but again the same problem.

4) I inserted the CD given by the ISP ( BSNL Broadband Sancharnet) and nothing happened. When I opened one of the HTML page It had the content Operating System not supported.

I dont know whether I am giving relevant information but this is all I have.

I dont know much about hardware, but I shall state my hardware related to network connections

1) Lan card
2) External Modem given my the service provider ( Type 1 ) with has provision to connect with USB & Ethernet LAN card( which I …

Prabakar 77 Posting Whiz

Need A Little Help

Senario:
In the near future I will have to transfer data from my computer to & from A computer infected by lots & lots of viruses. I do not have rights to modify, install or uninstall any software in the infected system. All I can do is to transfer data. The Infected system is not connected to the internet.
Question:
I was just wondering whether I can have a live version of XP which runs from a CD or a pen-drive( more preferably ) so that I may prevent my computer from getting infected.

Or Please let me know if there are other ways to do things

Prabakar 77 Posting Whiz

I have installed PClinuxOS & I have formatted the pen drive. Though I was not able to connect to the internet in Linux.
But, the purpose for this thread is successfully met:) So Thanks to every one

Prabakar 77 Posting Whiz

didn't I give a link to learn ODBC database connectivity

Prabakar 77 Posting Whiz

Great inference!

Prabakar 77 Posting Whiz

Why all of the sudden old threads are renewed ?
I made a reply to an old thread by accident & I did apologize for that. Now 2 more have been renewed.

Prabakar 77 Posting Whiz

Ya, and for any other bases you have the formula

log a ( base b ) = log a ( base c ) / log b ( base c )

Prabakar 77 Posting Whiz

Thanks, now I understand why calling (*main)() worked for me sometimes back

Prabakar 77 Posting Whiz

well, if k = 10 or 11 after 1st iteration it becomes 5 then 2 then 1 and then 0 to exit.

I guess stephen said that this halving occurs once every iteration

EDIT: Too late

Prabakar 77 Posting Whiz

<< int (*p)( void ) = &foo;

'foo' by itself is the address of the fn.
so
int (*p)( void ) = foo;
will be enough, if I am right.

Prabakar 77 Posting Whiz

I am downloading the file now & 20% is already over.
Anyway I will finish downloading it by tomorrow. I have never worked with Linux. I would probably start lot of threads. Thanks T.Maha for you concern:)

Knoppix is a live CD it works in memory without touching your disk - by default disks are its read-only. Need 1G of Memory for someboy new to it (but I've made it work in 386 M.) depends on which version. If your computer hasn't got SATA drives use
version 3.7 that a really good one.

Please do explain me how to cut short requirement of 1 GB to 386 MB.
And What are SATA drivers? I do not know of them.

Prabakar 77 Posting Whiz

Well, I guess you must thank IVAILOSP, for writing the code for you. Since passwords are small, Its difficult to decipher this poly alphabetic substitution algorithm, unless the crypt analyzer has the key "lolz".

Hints:

1) You may use this algorithm to encrypt the password & store in file
2) retrieve & decrypt the string using this algorithm again.
( In this case encryption is same as decryption )
3) compare with what you got from user.

4) Use a different algorithm for added safety for the data to be stored.

Prabakar 77 Posting Whiz

Thanks again:)
I have made up my mind. I am going to download PCLinuxOS. Its a free ware isn't it?

And I have 256 Kilobits per second bandwidth. I shall download it in 2 or 3 days I guess.

Prabakar 77 Posting Whiz

Oh Now I get it. To make the OS independent of hardware is in the hands of the programmers. Thanks:)

Prabakar 77 Posting Whiz

Sorry for stealing others thread.
<<And u should know what is ur target hardware(uProccessor). before proceeding
What does this mean? I am so dumb that I don't understand.

EDIT:

I ask this because I know very little about OS. WinXP works well with various hardware configuration, So is not an OS hardware independent

Prabakar 77 Posting Whiz

Oh God!. Think of a way on the first hand

You have the passwords encrypted in the file Don't you.

Prabakar 77 Posting Whiz

I run your program in college & all I had was a ball which run from one end to another end with blue background & green basement:). No flashing occurred:-O Perhaps your program may not be your problem.;)

And I realize that getch() causes no problem.

Just for my curiosity, what are you doing?:?:

And then, I would suggest a class for the ball & the background, but without knowing what you are doing I am not sure if it is a good suggestion.

Prabakar 77 Posting Whiz

Thanks for the reply.

And then Is Switching OS the only way? Aren't there any Security settings for such cases in windows?

Like logging in with limited privilege account or in safe mode, I am not sure if it will work.

I don't have Linux & I will have to download it which will take a lot of time.

Thanks again for help:)

Prabakar 77 Posting Whiz

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaik/rzaikodbcapicplusplus.htm

I got this from google. Hope this is what you want.

If you are already half way in your project its up to you to start from scratch.

As I said before poly alphabetical substitution & transpositions can be effective as well.

Prabakar 77 Posting Whiz

EDIT:
Oops replied in the wrong thread. Never ever thought that my search would actually give a thread from this forum posted way before & I would accidentally reply to it.

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzaik/rzaikodbcapicplusplus.htm

I got this from google. Hope this is what you want.

If you are already half way in your project its up to you to start from scratch.

As I said before poly alphabetical substitution & transpositions can be effective as well.

Prabakar 77 Posting Whiz

Just saw one of your question. You want to know how to access databases. Then turbo c just cant help you. I have accessed database with C++ not long before but I need some time to reply properly.

Prabakar 77 Posting Whiz

for data encryption,

If you use visual c++ You can have your data in MSAcess database & all those password security becomes easier. I suggested MS Access because thats what I know. But Oracle, I heard, has many more features.

Else you want to encrypt the file with your program then There are many cryptographic techniques

The most easiest and weakest algorithm, I suppose, is Caesar cipher.

Then Instead of using complex algorithms like MD5 or all those SHAs which makes my head swing while programing. I would choose a combination of transposition & substitution algorithm. Its comparatively easier.

Google these for more details

Hope this helps:)

EDIT: The more complex the algorithm, the more security you can provide.