Friday, September 30, 2005

Re: Final Year Project

Have a nice time.
My today's quote is "Music is the shorthand of all emotions".

 
On 9/29/05, Nagaraj <nagarajsrb@gmail.com> wrote:

Best of LUCK !!!


Thursday, September 29, 2005

Partnership Opportunity

Hi everyone. I'm from Neodigits.com, a trusted online supplier of high-end, feature-rich High Definition DVD players.
 
We are looking for partners interested in promoting our award winning product, the Neuneo HD DVD Player, in your websites or emails.
We give you commisions up to $36.75 USD per referral of our product.
 
Joining is free and simple.
 
or email me at jose@neodigits.com
 
Regards,
Jose Chan Benitez
Affilite Manager
www.Neodigits.com

Re: Final Year Project

A kernel-mode debugger :D

Re: 3 new messages in 1 topic - abridged


Great to hear that friend...........but my be wrong group topic to make
friends :)

Re: Final Year Project

nevermind wrote:
> Any ideas for my final year project to earn my Bsc in computer
> engineering?
Firewalls

Re: 3 new messages in 1 topic - abridged


Hi all,
I am doing B.E. in Computer Science. I am a diploma holder in same branch.
this sem i am learing C++. also I learnt in Diploma. I read Robert Lafore.
it is wonderful book for C++.
Please send mails to me at nagarajsrb@gmail.com. I can be a good
friend.so that we can discuss about our carrier, education, others. I
am interested in hacking, device drivers, Java technology, Linux ,
Networking, I want be a Software Engg. I am an Indian.
if anybody know India then I tell I am a Bangalorean which is IT
capital of India.
Be in touch Personally.
best whishes

On 9/29/05, Cpp-Programming group <noreply@googlegroups.com> wrote:
>
> C++ Programming
> Cpp-Programming@googlegroups.com
> http://groups.google.com/group/Cpp-Programming
>
> Today's most active topics:
>
> * Final Year Project - 3 new
>
> http://groups.google.com/group/Cpp-Programming/browse_thread/thread/18cd2844b5f8e940
>
>
> Active Topics
> -------------
>
> Final Year Project - 3 new
> --------------------------
> Encryption Program? - Wed,Sep 28 2005 11:37 am
> 3 messages , 3 authors
> http://groups.google.com/group/Cpp-Programming/browse_thread/thread/18cd2844b5f8e940
>
>
>
> ==============================================================================
>
> You received this message because you are subscribed to the Google
> Groups "C++ Programming" group.
>
> To post to this group, send email to Cpp-Programming@googlegroups.com or
> visit http://groups.google.com/group/Cpp-Programming
>
> To unsubscribe from this group, send email to
> Cpp-Programming-unsubscribe@googlegroups.com
>
> To change the way you get mail from this group, visit:
> http://groups.google.com/group/Cpp-Programming/subscribe
>
> To report abuse, send email explaining the problem to
> abuse@googlegroups.com
>
> ==============================================================================
> Google Groups: http://groups.google.com
>

--
Nagaraj

Re: Final Year Project


Best of LUCK !!!

Wednesday, September 28, 2005

Re: Final Year Project


At first place i thought of interfacing a remote control to the
parallel or serial port.Hm any usefull links or advises for encryption
program?

Re: Final Year Project



Phoenix <benaroia@gmail.com> wrote:

Encryption Program?


Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.

Re: Final Year Project


Encryption Program?

Final Year Project


Any ideas for my final year project to earn my Bsc in computer
engineering?

Tuesday, September 27, 2005

Re: Compiler Question


Well, I got lucky tonight and posted this same question to an guy on
slashdot who actually works for Microsoft, who was kind enough to
answer me. You can check out the thread here:

http://developers.slashdot.org/comments.pl?sid=163570&threshold=0&commentsort=0&tid=156&tid=109&tid=164&tid=4&mode=thread&pid=13663466#13663686

Peace & Blessings,
bmac

Compiler Question


Peace be with you all,

I have been doing some win32 dev using the Visual Studio .NET
environment, but the goal of my project is to be completely independent
of any std c or c++ libs. My only target is the win32 api itself. I
have my own file classes so I do not need FILE (I'm an old C
programmer, so I abhor using cout, but I like C++ for the class
encapsulation and occassional inheritance).

The problem is that the MS C/C++ compiler automatically links to a
version of libc.lib, depending upon what kind of threading/debug model
you want. I only want to link to the core 3 libs: kernel32.lib,
user32.lib and gdi32.lib; or, rather, I want a completely clean
environment where I can completely choose the output of my linker
(which, in a win environment means which dlls are linked to at
compile-time).

Now, I'd love to use gcc, but it seems that there's a lot of cruft that
goes along with it (mingw or cygwin) that is the (apparent) result of
overlaying an entire Unix system on top of windows, instead of just
letting the compiler target the env directly (tough, I know). And,
frankly, it seems like cygwin's organization is chaotic at best.

BTW, there is a compiler option for MS's cl.exe (/NODEFAULTLIB) that
suppresses linking to the std libs, but then I get a bunch of
unresolved references that are the result of the compiler's generated
code.

Any suggestions?

Peace & Blessings,
bmac

Monday, September 26, 2005

Re: Memory Lekage in OLE32.dll


since the memory leak occured from memory allocated in OleIconToCursor,
i believe that the cause is a cursor you created and didn't destroy
within the program. the fact that the memory leak grows shows that you
continually recreate this cursor without destroying it. make sure you
always release and/or destroy all GDI objects your program creates.

i hope this corrects your problem. good luck,

Levi

Sunday, September 25, 2005

Re: Ideas on code protection


Thank you for your time and input into my matter. It is rather
disheartening that I have spent so much time into an algorithm that
someone can just rip off. I guess I hope that it is such a specialized
niche product that the value of someone taking the code is nill. One
can always dream anyways.I just know I sell one product to the wrong
company in a non-patent protected country and I am sunk...not a very
pleasant feeling. Good luck and Cheers,
Ender

Thursday, September 22, 2005

Re: CPU Usage


Never mind, I figured it out. I had a thread that running a loop all
the time.

Thanks,
Dave

CPU Usage


I recently wrote a GUI using Microsoft Visual 6.0. I am very happy with
it except that any time the EXE is open (before I have pushed a button
or anything) it is taking like 98% of my CPU usage. Does anyone know
how to avoid this problem.

Thanks,
Dave

Wednesday, September 21, 2005

Re: 3 files = 1 program HELP!!!!


you're absoulely right...I didn't give enough info hehe...n e ways I
figured out how to get the three files to work in unison with my
compiler (microsoft visual c++ 6.0)...I had to add them to a
workspace....which i did and it ran beautifully. (Jeesh u think my
professor would at LEAST tell us that huh?)

Tuesday, September 20, 2005

Re: 3 files = 1 program HELP!!!!


If these are the three files only then the way u included the file.h in
both driver.cpp and file.cpp does not give us much details.

.h files or header files are specifically used to give declarations of
global variables,classes and functions. (but programmer may tailor it
according its need). so these header files should be included in the
cpp files that are either givings definitions of functions or are using
these functions. if any cpp file is not using the functions or
variables delared in header file we need not include that header file
in the cpp file.

As far as the whole integration is concerned each cpp file is compiled
separately ( during this the compiler only verfies whether the
functions that are used are declared and are appropriate) so comes the
role of header file. But during the linking phase all the complied
files are linked togetherand integrated into single program.

Any way as BlueRaja said for further details u have to study some
tutorials related to compiling and linking.

Re: 3 files = 1 program HELP!!!!


If file.cpp is the main implementation file the you should include both
the files : file.h and driver.cpp in file.cpp, regarding the other two
files , it depends upon which file is used for what , u have to give
more detals!
~Salil

Re: 3 files = 1 program HELP!!!!

You might want to consider reading some online tutorials on how the compiling process works..


3 files = 1 program HELP!!!!


Im very n00b to programming and im working on this project..... and
I've got 3 different files....a header file ('file.h'), an
Implementation file ('file.cpp') and a driver file ('driver.cpp'). In
both the file.cpp and driver.cpp files..i put #include "file.h" ...but
im pretty sure thats wrong...i mean how does the driver file know how
to include my "file.cpp" implementaion file?? HELP THIS plz
tx...

Re: dynamic array


I think it is better to use the new and delete operator for the c++
dynamic allocation.

like
int row =3,col=3;
int **p = new int *[3];
for(int i=0;i<3;i++)
{
p[i]=new int[3];
}

now u can use p[i][j] notation for manuipulations
to delete the memory allocation

for(int i=0;i<3;i++)
{
delete [] p[i];
}

delete []p;

Re: Hebrew output


If u use char type variable then u are limited to the usage of
character set that cannot suport the other languages as the maximum
range of character the char data type can support is -128 to 127.

this is boz the char data type uses 1 sign bit and 7 data bits (so
total 1 byte).
In order to support other language characters we have to increase the
capacity to store characters. For that we use wchar_t data type (16 bit
or 2 byte ). This can accomodate other languages including that u
mentioned.

U have to check for the File operation functions whether they suport
widechars or not depending upon the IDE and Complier.

Monday, September 19, 2005

Re: Reading RAM

Not until you learn to create a new topic, no.

Re: Reading RAM

 
In a message dated 18/09/2005 17:28:00 GMT Daylight Time, blueraja.admin@gmail.com writes:



 
Hi
 
I was just wandeiring how do u get the debugginh program on DEV C++, i have tried a lot and it seems to not to work
 
could u help me.
 
 
Thanks!

Re: Reading RAM

In a message dated 18/09/2005 17:28:00 GMT Daylight Time, blueraja.admin@gmail.com writes:
void *x;
x=some_memory_address;

enjoy.

 
Hi
 
I was just wandeiring how do u get the debugginh program on DEV C++, i have tried a lot and it seems to not to work
 
could u help me.
 
 
Thanks!

Re: Reading RAM


This only works, however, if the address you are refering to is within
the application's process image. If not, a page-fault will occur.

link lib.


I'm unsing timeBeginPeriod(1) with this:

#include <windows.h>
#include <mmsystem.h>
#pragma comment(lib, "winmm.lib")

compiler says:
warning: ignoring pragma comment
... undefined reference to timeBeginPeriod@4
... undefined reference to timeEndPeriod@4

how else could I link a library? is this the correct way?
is there a need to have a project? (because everybody tells something
about changings to the linker... which I don't know. I do not use
something like a project I think)
do I have to do changings in the project-file?

Sunday, September 18, 2005

Hard Disk Partition


hi ,

I have a partition of linux which is 40GB in /dev/sda4 and a 40GB
in /dev/sda5. I created it when installing Fedora Core 3. In /dev/sda5
i have my /home partition and I have 3 users . Many data is there in
/dev/sda5. I want to get the 40GB from the /dev/sda4 combine with
/dev/sda5 without losing data.

Can any one tell how is to be done in linux . I think it can be
done using partition magic but that is in windows . So any help would
be appreciated .

Pai

Re: Reading RAM

void *x;
x=some_memory_address;

enjoy.


Reading RAM


Hello everyone..
I want to read contents of RAM using C or C++ can anyone help me out??

Friday, September 16, 2005

Best Error Handling Approach


I have another question regarding C++ technique. When writing an
application from scratch, is it better to use exceptions for all
errors, use return codes via the function returns, or a combination of
both?

If you are using a library, I would almost see it a neccesity to use
both since libraries thrown exceptions in some case or return a NULL or
equivalent value.

Any thoughts?

Re: Code Efficiency - Variable Scope Depth


Well, BlueRaja, I should compliment you for putting aside Physics and
taking one for the team. You are correct, I completely forgot that all
variables are thrown on the stack regardless of when they are declared
locally. Good point!

Re: Code Efficiency - Variable Scope Depth

I should mention that this was code compiled under MS VC++.net 2003, compiled under debug configuration; however, I'm pretty sure that I what I said still applies to most decent x86 compilers (and for most other given architectures as well).

Re: Code Efficiency - Variable Scope Depth

   int i;
   //code code code
   for(int j=0; j<5; j++)
 mov         dword ptr [j],0
 jmp         main+4Eh (label1)
 mov         eax,dword ptr [j]
 add         eax,1
 mov         dword ptr [j],eax
label1:
 cmp         dword ptr [j],5
 jge         main+64h (later_in_the_program)
   //code code code
   for(i=5; i<10; i++)
 mov         dword ptr [i],5
 jmp         main+94h (label2)
 mov         eax,dword ptr [i]
 add         eax,1
 mov         dword ptr [i],eax
label2:
 cmp         dword ptr [i],0Ah
 jge         main+0AAh (later_in_the_program_again)

Space for local variables is allocated on the stack at the beginning of every function (although they were treated as global in this case, due to the optimizer).  Where you declare them [within the function] is irrelevant.  Many game programmers I know tend to declare them at the beginning of every function, so that every variable can be looked up in one place.  Most other programmers (for some reason), however, seem to declare them as they're used; choose whatever fits you best.

...I did this instead of my Physics, which is due in half-an-hour :D  Muaha

Code Efficiency - Variable Scope Depth


I have a general question regarding code efficiency. In my workplace,
I have come across two different approaches to variable declarations
and scope.

One is to declare all function variables at the top of the function and
reuse the variables inside of loops, long condition handlers, etc.
>From a style perspective, this makes code difficult to read since its a
rule-of-thumb to declare variables as close as possible to their use.
However, the variables are allocated and intialized once.

The other scenario I've seen is for the programmer to literally declare
variables within 'while' and 'for' loops. Under the rules of C++, this
is safe because the variables will have loop scope. It is also
incredibly easy to read since the variables are right there when they
are used (which is just inside of the loop), and it doesn't have to be
traced towards the top of the function or even the top of the loop if
it is a long one. However, does the contant re-initializing hamper
efficiency of the program?

Calling to the coder community, what are you thoughts? Is it better
practice to take advantage of loop scope (block scope) or should all
variables be delcared outside of loops?