Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>but i dont think people develop software necessarily have to be in the respective profession
most developers do know quite a lot about the business of their clients. Programmers don't work in a black box or a vacuum. You don't have to have an M.D. degree, but should know at least a little bit about their work.

But Ok, so maybe I was just a tad sharp. I apologise.

What computer languages do you know? Using .NET seems like it would be the most useful because you can mix languages in the same program. You can do the front-end in VB.NET and other parts in c++ or C#. Sort of like getting the best of all worlds.

Then there is of course the database. I assume the program will have to access the medical information on a database located somewhere. Centralized in one location and everyone uses it, or each location has it stored on their own computer. What you choose can get quite expensive.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The feminist movement in USA has done a lot of good for women's rights in this country. But women are still not 100% equal to men (other than of course biological differences). For example, there are still many jobs in the USA military that are closed to women. As for other non-military jobs, I can't think of any jobs that women can not do just as well as men. I knew one woman who was the forman of a house moving crew, and she could outwork any man in her company.

BTW: my supervisor is a woman, and darned good at it too.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

people go to court here in USA all the time to get their names changed from some obscene name to something more pleasant. As for Mr. Hacker -- the term "hacker" isn't really all that old -- probably coined sometime in the 1960s.

I would rather be called Mr. Hacker than Mr. Fukking

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
if ( i > 2 )
            {
                tempString = tempChar;
                row = atoi( tempString.c_str() );
            }
            
            else
            {
                tempString = tempChar;
                col = atoi( tempString.c_str() );
            }

The above is much too complicated. All it is doing is converting a single character to an integer. Just simply subtract '0'.

if ( i > 2 )
            {
                row = tempChar - '0';
            }
            
            else
            {
                col = tempChar - '0';
            }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

ms-windows doesn't really have shared memory like *nix. you can use shared memory files

or clipboard

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The first thing you need to do is get a medical degree so that you know what the he!! the program is supposed to do. You can't possibly write about something you know absolutely nothing about.

What operating system do you plan to run this program on? PC, MAC, *nix, wireless ? a computer language that is portable across os sounds like an ideal candidate.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

open() method takes a char* and you are passing a std::string class.

ifstream file(id.c_str());
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you can easily put the comma wherever you want it in the sprintf() format string. Just replace one of those pipe symbols | with a comma.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you should post variable declaractions too.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

how about just posting the questions and we will post our responses?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I don't have 2003 but this is what I found on the net

1) File->Create Blank Solution
2) Select Visual C++ Projects -> Win32 Console Project.
3) Enter a name for the project (let's say you call it TEST and put it in <directory of your choice>).
4) Click Application Settings and check the Empty Project box (leave 'Console
application' radio button selected).
5) Click Finish.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Why doesnt my compiler work with those codeS?

Probably because OpenGL is not installed on your computer.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Even when I was in school, we were also asked to use the same thing, not because they didnt like other compilers but because they didnt know any other compiler existed other than MS Visual Studio and Turbo C.

don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Oh I see you must have upgraded to version Wife 1.0 ? :cheesy: Congrats on your new baby.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

I just found this article that may or may not help you.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

have you posted that in the tutorials board? If not, you should to that it doesn't get lost in all the traffic on this board :) :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>6) What has been your ecperience in the field been like and what kind of advice would you offer?
My advice is to get used to being in a constant state of confusion.

Absolutely right. I have been working for my employer for about 8 years now and we have completely re-written the program three times due to hardware changes (upgrades with new os versions). And we are about to do it again in a couple months.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you will probably have to go to the barcode reader manufacture's web site and see if you can find some programmer's information and device driver.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>a.*pointer
that is incorrect syntax -- remove the star and add class member named pointer.

class A{
public:
    int x[10];
    int* pointer;
};

A a;
a.pointer = &a.x[0];
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you can't use interrupts in 32-bit protected-mode programs (e.g. windows or *nix programs). Easiest way is to call os C functions and let them deal with all the dirty stuff in protected mode. If you don't know how to do that there is another thread that will show you how to call ms-windows win32 api functions.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

temp variable is a character array. before adding the binary digit to temp the digits must be converted to one of the ascii characters '0' through '9'. for example: 1 + 48 = 49, and if you look at that ascii chart the number 49 is the letter '1'. Also note that the number 1 and the letter '1' are not the same thing.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

0x30 is hexidecimal value of 48 decimal (use your scientific calculator to convert 30 hex to decimal). Adding 48 to a numeric digit will make it a printable digit -- see any ascii conversion chart.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

To AncientDragon : the a[num],v[num]... doesn't work,because num is the same in that insant moment(i tried that).

You are right -- my suggestion was not what he wanted. :)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

if you can't use functions in string.h or other libraries, then you will have to do it the hard way -- write your search function. A simple one is not really all that hard to do. just write your own strstr() function.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>sent[num];
what you should do here us use strcpy() to copy the first random string into sent variable, then strcat() to copy each of the other strings.

>>printf("\n\n%s %s %s %s %s %s.\n\n", a, n, v, p, a2, n2);
variable i is not a random number. you should use variable num instead of i.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>Does my this solution use more than one variable ?
please read his second statement -- doesn't want to use memmove() or any other functions. I posted an (almost) complete example of how to do it without using any other functions or variables.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Is there a way to recognize when a key is pressed in 32-bit masm? I know you can use interrupts in 16 bit, but how can this be done using 32-bit, since 32-bit is protected by the OS.

Thanks,

Tyler S. Breton

I haven't use these functions in assembly language. You might try the functions in a short C program until you figure out how they are used before using them in an assembly program.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

That's what's nice about stringstream -- make conversion very simple in either direction.

if you want to stick with char*, then use sprintf() to make the conversion. But if you do this you are not converting the C program to C++.

char *ConvertToString(float in_val)
{
   char *cp = new char[80];
   sprintf(cp,"%f",in_val);
   return cp;
 }

Here is the c++ equalivant

struct account {
     float amount;
     std::string value;
     int   day;
     int   month;
     struct account *InternalPtr; 
};

string ConvertToString(float in_val)
{
   string cp;
   strstream str;
   str << in_val;
   str >> cp;
   return cp;
 }
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

C and C++ standards dictate that main() must return an integer. Some compilers produce error message for this, while other older compilers do not. main() will return an integer whether you declare it int or something else such as void.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

that's a great hint to you! you don't have to required files on your computer. poke around their site and I think you will find out how to get them (I don't think they are free)

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you can use getline()

cin.getline(some_text, 10);

>>cin >> *some_text;
incorrect syntax. remove the asterisk (star).

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

did you read the OpenGL FAQ?

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

The examples in that previous thread use additional variables/functions to do the job. The OP wants to remove the character without using additional variables or functions.

I cannot take any local variables within the function.

I did got this solution of using recursion as well as using functions like strcpy() or memmove() but again, that implicitly uses more variables.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Please post code, or ask specific question. What part(s) of those instructions do you not understand? No one here is going to do your homework for you if that is what you have in mind.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>> 3) What is the demand for software engineers like and average starting salary?
depends on where she lives. and it might vary in the same city. The industry is pretty saturated -- many jobs in USA are being outsorced to places like India and Japan where labor is cheap.

>>4) Should she persue a degree in computer science or engineering and what will she need a bachelor's or master's?
bachelor's will do, but master's will provide better chance of landing a pretty good and well-paying job. Computer programmer's are a dime a dozen today, so the more education the better.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you probably can not do what you whish in Win98. But look at the resource kit. to see if it has tools to help you achieve your goal. If not, then you are SOL.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

C and C++ do not support joysticks or mice (mouses??) There is no simple solution and any solution must use os-specific api functions. DirectX, DirectDraw, etc are complicated and not for beginners. If you search google you might find a useful device driver for your program.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

yes, it can be done with just the one pointer into the parameter, assuming the pointer is pointing to the character that needs to be removed.

Hint: you know that the string is null-terminated, so just copy *(ptr+1) to *ptr until *(ptr+1) == NULL. If it is not NULL then increment the pointer and do it again.

Give it a try and post code/questions if you can't get it. That's a pretty good assignment to teach pointers.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

just put a few compares and jumps in there.

lp: ; start of read/write loop
;read
Push 0
push offset dwBytesReaden
push offset BUFFER_SIZE
push offset szBuffer
push offset hSrcFile
xor eax,eax ; clear the register
call ReadFile
cmp eax,0 ; read error ?
jz done   ; yes, then go
cmp dwBytesReaden,0 ; end-of-file ?
jz done   ; yes, then go

push 0
push offset dwBytesWritten
push offset dwBytesReaden
push offset szBuffer
push offset hDestFile
call WriteFile
;;
;; now make similar error checking tests
;;
jmp lp ; back to top

done:
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Invoke is simply a shortcut to normal calling process. just push the parameters onto the stack, call the function, then do stack cleanup, if required. Nothing about it any different than the other code that has been posted in this thread.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Sleep(1000 * 60 * 60 * 7);
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

Here is some good info and tutorials.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

on MS-Windows os, use FindFirstFile() and FindNextFile() to iterate through all the files in a folder. *nix has opendir() and readdir(). boost libraries have os-independent c++ classes.
useing these functions you don't have to know anything about the file names or how many files there are. Just check the file's attributes (also returned by those functions) to insure the file name is not a folder/directory.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

same answer as your other thread.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

you have to use win32 api functions. here is a tutorial

>>How to import it from Borland to DevC++
I presume you mean Turbo C. Those programs can not be ported, requires a rewrite to use win32 api functions.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>who can tell me why?
Use ODBC and you should be able to access that database.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

>>cout << songs;
that won't work -- you have to create a loop and output each one individually.

cin.get();
system("PAUSE");

you only need one of the two above lines, not both. Suggest you delete tye system() function call.

>>What have i got wrong?
looks ok to me. put a print statement inside that loop so that you can see what its doing.

Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster

please edit your post to use code tags. If you don't know how to use them you can find the instructions in the link in my signature below.