Jishnu 160 Posting Pro

EDIT: Run time, i wonder you could.

Sorry, I could not understand what you mean.

The simple way is to just compile the whole code, then have some kind of decision in the code, like this.

But inside the functions program1() and program2(), how can I include a file?

Jishnu 160 Posting Pro

You can do that with the help of multi threading in C++ and Java. In C, no such feature exists. Although, some libraries for C might be supporting multi threading. I'm not sure.

And one more thing, I've read somewhere over here that C++ is the de facto language for game programming. So, if you are interested in game development only, then I think you should focus on learning C++.

Jishnu 160 Posting Pro

Yes, I thought so. Now, as he has specified, changing the memory model is inapplicable to this case.

Jishnu 160 Posting Pro

Originally discovered by technicians on crash tests at Cailfornia in 1949, Murphy's Laws spread quickly. They were spotted everywhere: buses always came in threes, desperately needed objects became invisible, etc...

Well, let us post them over here..

These are some of my favorite picks among the Murphy's Laws regarding software/technology. I've taken them from 'Why the toast always lands the butter side down' by Richard Robinson.

1) "If it's not in the computer, it does not exist."

2) "Whenever a system becomes completaly defined, some damn fool discovers something which either abolishes the system or expands it beyond recognition."

3) "Nothing ever gets built on schedule or within budget. Or, all is well that ends."

4) "If there is the possibility of several things going wrong, then the one that will cause the most damage will be the one to go wrong."

But why make you suffer more?! Should not make it lengthy for Murphy also says, "The longer you look at a page, the more the words don't get in." ;) ;)

Oops, I misspelt the thread title.

MidiMagic commented: Undoing the neg you got. +4
Jishnu 160 Posting Pro

i'm probably overweight, but i look normal.

Me too.

Jishnu 160 Posting Pro

Hello,

I know this much that I want to include two files in my program. But can I decide which files to include at run time? Is this possible?

Thanks in advance,
-Jishnu.

Jishnu 160 Posting Pro

Got it. But I'm one of the rarer species that comes under the remaining 14%. I've seriously read this thing somewhere long back.

Jishnu 160 Posting Pro

The rules are crystal clear. But, perhaps you've heard the Murphy's Laws. One of them goes like this.

"When all else fails, read the instructions".

Somehow, they shun reading. Their hands itch to work on the new technology/tools. They jump headalong into it. "After all, what new they can make, it must be some modifications on the old system which is simply a matter of few clicks" is their line of thinking. They read the instructions only when they get stuck. I hope I'm clear.

iamthwee commented: Murphy's law doesn't explain everything. -2
Ancient Dragon commented: I like that law :) +20
Jishnu 160 Posting Pro

Logic is the last thing you want to use to create a password. If it's logical, it ISN'T good.

Or that logic should not strike to anyone else. A good pasword may be logical but unpredictable. (for anyone except the user)

Jishnu 160 Posting Pro

If Anonymous won't give their name, how do you know they aren't part of the 51%?

Better leave it for the statisticians to figure it out. And yes, this statement is also a statistics. So, there are 51% chances that it is right. (which again is a statistics)

make them up.

means?

Jishnu 160 Posting Pro

Something like W2L0C0M8E, see?

Jishnu 160 Posting Pro

"I am/was suffering from weakness." ( I'd like to see his weakness when my pet dog runs like hell after him ;) )

Jishnu 160 Posting Pro

I think taking notes is not essential for remembering something. It is just that some people can remember things by doing so.

Jishnu 160 Posting Pro

I like playing Counter Strike, NFS, and Civilization..

Jishnu 160 Posting Pro

The text file is large, but I was wondering if there was any way I could possibly display all of it.

The console screen consists of 80*25 characters. If your file size is greater than that, then you cannot display entire file at a time. What you can do is, display a part of it (say, x characters) and ask the user to enter some character after which you can display the next x characters in the file.

Hope this helped.

Jishnu 160 Posting Pro

I've not tried using any other usb devices as of now. What do you suggest?

Jishnu 160 Posting Pro

Okay, I understand.

Jishnu 160 Posting Pro

True. The difference appears when the project is TOO large and has to be divided into sections like graphics, sound, logic etc. There is a lead programmer for each section and there are coders that work under them. Ultmately, all the lead programmers are selected by the designer, who visualizes the entire project as a single entity. Otherwise for minor projects, these are similiar terms.

Jishnu 160 Posting Pro

Let me give some more details from the manual to clear the confusion.

-Compatible with USB specification version 2.0 & 1.1.
-Driver-less in Windows ME/2000/XP

But it works fine with XP, which is said to be driver-less. This means that the meaning of driverless means 'no driver needed' over here. So, that is not the problem. And this

im thinking it could be a usb 2.0 ,usb 1.1 issue .it may be usb 2.0 and not be backward compatible to 1.1

is also not the real problem.

Jishnu 160 Posting Pro

Hello,

This thread is in reference to this thread: http://www.daniweb.com/forums/thread1093.html

If it were not for Duoas, the thread would have continued although the OP had posted it four years back. This happens because new posters like Knightzs are not fully aware of the rules over here. We cannot delete the threads because it is possible that someone after sometime can have the same problem. So it is good to keep it for his reference. But, can we just add a feature so that after a certain amount of time, the thread is not deleted, but it is closed? ( This does not apply to the threads named Read me: )

-Jishnu.

Jishnu 160 Posting Pro

Oops, I didn't see that. I saw that the last post made by Knightzs was recent and so replied. I will have to be careful from now onwards.

Jishnu 160 Posting Pro

Okay. Then click on the link 'Mark as solved' that is below the last post in this thread.

Jishnu 160 Posting Pro

That is only if you want the users to add records manually in the text file. Instead, if you give an option to add record in your program itself, then when you add another staff record to the file, you can internally insert that bookmark, or add the size at the end of the array...

if you give an option to add record in your program itself

This is a better option. By this, you can even encrypt your text file for security purposes. The records remain secure from unwanted tampering as user is unable to view the decrypted version of the record file. Any modification in the records has to be done from within the program itself..

Jishnu 160 Posting Pro

Have you compiled the code? Please mention the errors and the respective line no.s.

Jishnu 160 Posting Pro

What efforts have you put in so far? Please post any coding you have done using code tags.

Jishnu 160 Posting Pro

Two solutions:

1)You'll have to insert some special character (* or # or $) between the records which would serve the purpose of a bookmark.

2)Store the size of each record in an integer array and do manipulations accordingly at runtime.

Jishnu 160 Posting Pro

Yes, I've tried and it works. But the port where it worked was on a XP

Jishnu 160 Posting Pro

but I dunno display the next record, the previous record as the number of characters in each field may differ.

Doesn't matter if they differ. It might matter in case you want to write the new records at the place where the current record is displayed. In that case, clear that part of the screen before displaying the next/previous record..

Jishnu 160 Posting Pro

Thanks to all of you who have helped me in this thread :)

Jishnu 160 Posting Pro

I hope I will get all the help I can from this forum

If you meant 'this community', then definitely yes. But stick to the rules here. They are for the betterment of the community itself.

Jishnu 160 Posting Pro

anyone know?

Yeah.

This one is also good.

http://ebooks.katz.cd/

Jishnu 160 Posting Pro

Nicely explained, darkagn.

Inside the Calculation function where dReg1 is passed to where does this dReg1 orginate from? Could dReg1 here be passed from the code section below it(refer code below). I doubt it. Then in that case, how does dReg1 go into Calculation at all?Notice it's: dReg1 = Calculation(sOperator, dReg1, dReg2); Having dReg1 as both result and argument is confusing.

Why not? Remember this much. In any assignment expression, the RHS is evaluated first and then the result is stored in LHS.

Hope this makes it clear..

Jishnu 160 Posting Pro

Hello Valmian, I guess you'll receive more help if you use code tags.

Jishnu 160 Posting Pro

We appreciate your efforts its.romi, but this is to remind you that if you want to post codes for reviews, then go to contribute code in code snippets.

Salem, that IDE is great. Thank you :)

Jishnu 160 Posting Pro

Okay, understood. I was not knowing this before. Suppose I am using any GUI package, where is it generally mentioned that whether it is open source or not? Is it mentioned during the installation processs?

Jishnu 160 Posting Pro

Well if in the manual it says it won't work with the system you are running, i don't think it is going to work!

I didn't say that!! It is driver less means it does not need a driver in windows Me...

Does it say in the manual or on their website that it is compatible with Windows ME?

Both.

If not then you could try to install the software for the hardware manually. Go into Control Panel, then Add Hardware. This will take you through a wizard that might find drivers for your USB stick.

It doesn't display that new haardware is found because the USB port is already there in the device manager when I insert the stick. That is what I said iin the first post in the thread.

If that fails take it back to where you bought it from and buy a Memory stick that specifically states Windows ME compatible.

Hey, this one is Me compatible.

Jishnu 160 Posting Pro

Got it. Thanks :)

Jishnu 160 Posting Pro

Right. I infer that you've inherited class car from the base class vehicle.

Jishnu 160 Posting Pro

Yes, the article is pretty in depth. I appreciate it for the details. I'm familiar with some of the terms used. The unfamiliar ones will help me to go into enough depth in my reversing course. Thank you Narue :)

Thanks dubeyprateek for that link.

these are non-documented APIs you should avoid calling from user mode application.

Why is that so?

Jishnu 160 Posting Pro

What make is this Memory Stick? Did it come with drivers?

It is manufactured by moser-baer. No, It didn't come with the drivers. And it is mentioned in the little manual that came with it that it is driver-less in Windows Me.

Please help. And tell me if I need to specify more details in order to aid the troubleshooting.

Jishnu 160 Posting Pro

Thanks Duoas and superjacent. I'll check out these links and come back to you.

I didn't understand what does this mean:

If you don't mind writing "open source"

Jishnu 160 Posting Pro

>What does Zw stand for?
It's a mystery. The common assumption is that Zw was chosen because it meant absolutely nothing and there was little chance of something popping up that would make it significant.

That is interesting!!

If possible, I'm needing some more elaborate explanation for this:

Zw versions are stubs that go through the system call mechanism.

meaning what are stubs and the need for going through the system call mechanism..

Jishnu 160 Posting Pro

Hello,

I've read in a book that APIs in the native APIs start with one of the two prefixes: Either Nt or Zw, so that the functions have names like NtCreateFile or ZwCreateFile. What does Zw stand for?

It further says:

Both versions actually point to the same code in the user mode implementation in NTDLL.DLL. In kernel mode, they are different. The Nt versions are the actual implementations of the APIs, while Zw versions are stubs that go through the system call mechanism.

I'm not able to understand this thing in the italics. Any help would be appreciated...
-Jishnu.

Jishnu 160 Posting Pro

Hello,

I searched this forum for similiar threads but the difference is that I'm using Windows Me. So, I'm starting a new thread.

I've a USB port on my motherboard. As the version is ME, it must be plug and play. But when I connect the flash drive and go to 'My Computer', it does not say 'New hardware found'. It does not even display the G: drive. The device manager shows that there are no IRQ conflicts and the device is working properly.

Any help would be greatly appreciated,
-Jishnu.

Jishnu 160 Posting Pro

Thank you AD for the links :).

So, let me drop out the visual studio option... and as said earlier borland c++ builder isn't free...

Should I post the same thread in the windows forum?

Jishnu 160 Posting Pro

Hey, I'm getting this error when I double-click on the setup file that I downloaded.

The VCSetup.EXE file is linked to missing export NTDLL.DLL:NtShutdownSystem

And then,

A device attached to system is not functioning

I searched for that .DLL file and it is there in the directory c:\windows\system.

Jishnu 160 Posting Pro

Ah! You remember that? Great. Yes, I'm fed up of that 'fossil' compiler. It is one of the many things that I have learnt from this community...

Thank you :)

Jishnu 160 Posting Pro

Hello,

I'm planning to do a project which involoves a lot of GUI. Does anybody know whether there is any IDE available that supports a code wizard feature for C++? For eg in VB, we design the menus, frames, text labels, etc. and when we click on 'generate code', the basic code of the form file is generated automatically. Then the only thing we have to do is to define the event handling functions.

Is there any such feature available in case of C++? I'm a newbie to windows programming in C++, so I'm sorry if I've not mentioned some detail that is necessary.

Thanks in advance,
-Jishnu.

Jishnu 160 Posting Pro

I don't know about the best solution. But you can improve the existing program by using long int instead of int and also changing the memory model to large or huge.

Jishnu 160 Posting Pro

>You'd realise that lists are better.
Not always. Assuming "list" means "linked list", there are advantages and disadvantages of both lists and arrays. The situation that you need to use it in is the defining factor in which one to choose.

I agree. Exactly what I had meant to convey...

I'm sorry for this one.

What is more, lists are dynamic.