|
Hey..its working now...u r realy a nice person here ..others always uggest book..never answer me properly.
Thank A lot
|
|
|
|
|
I think Mr Ranjoy Guha is not the inventor of C++ .Without reading those books even he could not have answered ur problem:
never say die
|
|
|
|
|
hey, it's not to annoy you if we suggest you to read books... it's for your own efficiency dude !
it's as if you drive a car without a license... how can you drive on a highway then if you don't learn driving first ?
oh and By the way, if we "never answered properly" as you say, it's because you never ask properly !
and at last, "u", "y" and "r" are letters; "you", "why" and "are" are the words to use if you want anybody to understand you. you're not an a chat room, and people around here are from all over the world. be compliant with the policies, and everything will be fine. if you don't want to comply, i'll stick on your ass to warn you as you already started to know me for this
|
|
|
|
|
well i knew this very well that without reading books..i can't...but if its some sort of urgency.. you hav to take someone's help ...is that wrong?...please forget all those past mistakes...and lets be friends.;)
|
|
|
|
|
are you an indian?? Me too from India...its seems from your name...JAI HIND
|
|
|
|
|
dona jain wrote: well i knew this very well that without reading books
well, don't get me wrong.
i'm not paid to answer on this board. all i do is because i want to and i love it.
but i'm still thinking you have some lack of knowledge that you should fix fastly. calling a finction is part of the basics of the C/C++ (and any programming - in general...) languages. if you can't figure out how to call one, then you should start from the beginning.
dona jain wrote: but if its some sort of urgency
i'm not a doctor
dona jain wrote: you hav to take someone's help
i'm not obliged to do so, and know that i do my best anyway. but sometimes, i really don't understand the question, so how to help then ?
and if i was obliged to help, then the one who's asking should be obliged to ask with all the useful informations we must have to answer well in a one step. Is that Wrong ?
dona jain wrote: please forget all those past mistakes
i hope you understood me and will make efforts in the future. for my part, i have nothing against you. just against your questions
Sincerely...
|
|
|
|
|
Dont Mind...
But as Sunit and Tox says you must read some c++ books for your further knowledge.
|
|
|
|
|
Since you're obviously using C++ you should use it correctly. Don't pass crap like char cName[100] as arguments in functions or as variables. Use the STL's std::string class for representing a string.
Thus you would rewrite the above as
void FileOperation::fileRead( const std::string& cName, const std::string& cSvnPath, const std::string& cPass )
second problem - you have variables defined within the local scope of your function with the same name as the arguments you've defined in your function. That could be problematic.
You should go out and get a good book on C++ first and get comfortable with the basics.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Hello,
i need to call wmain(int argc,TCHAR* argv[],TCHAR* envp[])
but how to create the TCHAR* argv[] ?
it's possible to get different strings of argv via argv[0] ... [1] ... [2]
The number of elements is stored in argc
but which lenght has a TCHAR String ? I need the lenght to set the size of my malloc
Big thanks for help
|
|
|
|
|
i didn't get your question.
Do you know what is TCHAR ? it is just a tyepedef . If ur applicaiton is unicode TCHAR is wchar_t otherwise it is char.
If u can Dream... U can do it
|
|
|
|
|
yup,
i'm stupid, i found the answer
it works via char** than allocate different char* to the pointers
I think i must stop to take drugs (Joke)
|
|
|
|
|
you don't call main() or winmain() - or whatever the entry point is called - yourself.
the system does it when you launch the application.
a TCHAR is a char or a wchar_t, depending if the UNICODE (and _UNICODE) macro has been defined.
to pass parameters to you main function, add command line parameters, and they will end as strings in the argv array
|
|
|
|
|
I call the DOS Main from out my MFC Application.
The DOS Prog should run hidden(no visualization) in a thread (not process)
but thanks nevertheless for your answer
|
|
|
|
|
baerten wrote: I call the DOS Main from out my MFC Application
how are you achieving this ?
|
|
|
|
|
I make a AllocConsole in a Thread, then i redirect the STD_OUTPUT_HANDLE of the hidden console to stdout then i start simply _tmain(...)
In my MFC applic i can read the output with the function "ReadConsoleOutput" and it works, i get
the characters in a buffer of CHAR_INFO
|
|
|
|
|
baerten wrote: then i start simply _tmain(...)
i repeat my question : HOW ??
|
|
|
|
|
char ** args;
args = (char**) malloc ( 2*sizeof(char*));
args[0] = (char*)malloc(50*sizeof(char));
args[1] = (char*)malloc(50*sizeof(char));
strcpy(args[0],"C:\\.....");
strcpy(args[1],"\restart");
_tmain(2,args,0);
|
|
|
|
|
is your program calling its own _tmain() recursively ?
|
|
|
|
|
Nope, the MFC Applic calls the _tmain of the DOS-Project
I call the _tmain in a thread, which was created by clicking on a button
|
|
|
|
|
U should read some books which discuss about Windows Internal viz Programming Applications for Microsoft Windows by Jeff Richter,it has mentioned who calls winmain or main
never say die
|
|
|
|
|
Hey friends.....I have aready post this ..
How to fill the area Between two co-centric Circle/Arc.
we have co-ordinate of outer Arc/Circle and Inner Arc/Circle . how to colored this area with spwcific COLOR.
while using CRgn, floodFill , we require RECT but i want to Fill area between two co-centric ARC
Waiting for reply
Thanks in advance...
|
|
|
|
|
While filling you can use clipping functions like SelectClipRgn etc.
and then u try painting with any gdi functions like (fillrgn etc)
If u can Dream... U can do it
|
|
|
|
|
Drawing the larger circle first and then the smaller one on top of it with background Color is not what your tutor wants you to do, I guess?
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Hi,
I develop many direct show filters . I want to develope a filter
that takes many input (video , text , image ) and mix them .
Trioum
|
|
|
|
|
which is the video format ur using ? , and what will be the output pin format of ur filter ? i guess you may have many input pins and 1 output pin .
If u can Dream... U can do it
|
|
|
|