|
How?
DavidCrow wrote: I was simply suggesting replacing dozens of lines of code with a single one.
regards,
George
|
|
|
|
|
George_George wrote: How?
By using SHFileOperation() instead.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks DavidCrow,
This function is convenient to use, but I am not sure whether we can use it on Windows CE.
regards,
George
|
|
|
|
|
Hello,
I am using the command getline() to get the line of a text file.. But i think i have a problem with this command.
Here is how i used it in my programme:
getline(list,s1);
list is
fstream list;<br />
list.open("listfile.txt",ios::in);
and s1 is string s1;
The included libraries of my programme are :
#include <cstdlib><br />
#include <iostream><br />
using namespace std;<br />
#include<fstream><br />
#include<stdio.h> <br />
#include <time.h><br />
#include <sstream><br />
#include<string>
I was wondering if getline() had a limit of character by line, and if it is so, how can i know its limit and change it.
Thank you
|
|
|
|
|
I am not sure at 100% but I think the getline () works buffering, so it is supposed to get the text until it founds an "\n" to change line.
About your includes... write the lines with a space between "<" and ">" I mean... you have to write i.e. #include < math.h > because if not, the web trys to use it as < pre > and so on...
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
ok thank you very much for this answer.
|
|
|
|
|
garfaoui wrote: #include
#include
using namespace std;
#include
#include
#include
#include
#include
Is it so hard to go back and preview your post to make sure it reads exactly as you expect?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hum ...
|
|
|
|
|
The Preview button works regardless of whether you are humming or singing.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
OKKKKKKKKK....
i didnt know that such a button exist... sorryyyyyyyyy
what should i do kneeing at your foot? i apologise, it s not enough?
|
|
|
|
|
garfaoui wrote: i didnt know that such a button exist... sorryyyyyyyyy
It's right next to the Post Message button.
garfaoui wrote: what should i do kneeing at your foot? i apologise, it s not enough?
Sarcasm and apologies are not necessary. I was merely letting you know a way of increasing your chances of receiving help.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: garfaoui wrote:
i didnt know that such a button exist... sorryyyyyyyyy
It's right next to the Post Message button.
I have been posting message since a week. I didn´t take time to look at every button... That´s all.
DavidCrow wrote:
Sarcasm and apologies are not necessary.
I thought that too, but a simple " hum..." seemed not to be enough because you felt posting a new message...
However you didn´t "merely letting [me] know a way of increasing [my] chance of receiving help. "
I "paid" for each person who did that. You didn´t need to say "is it so hard to..." just give me the information. That´s all. There is no need of being haughty with me.
|
|
|
|
|
garfaoui wrote: I thought that too, but a simple "hum..." seemed not to be enough because you felt posting a new message...
The word "hum" is meaningless when no context is provided.
garfaoui wrote: However you didn´t "
merely letting [me] know a way of increasing [my] chance of receiving help.
Why would you expect to receive help when over half of your code snippet cannot be read? Format your code properly, and double-check your grammar, before committing your posts. You'll receive much more help as a result.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I know that i did not post the message properly, i should have done a preview before sending it, there is no need to argue about this, i agree with you.
However this is a useless conversation, I will do a preview before posting a message that´s all...
|
|
|
|
|
Hi,
can any one tell me internal working of MFC MEssage Map's
thanks and regards
prashant
|
|
|
|
|
|
You interested in the Messagemap macros or the entire functioning of message maps??
|
|
|
|
|
i need to know the overview Message Map Working
thanks and regards
prashant
|
|
|
|
|
|
Hi!
I have a windows application and I want to print barcode with label printers.
My questions:
How do I access my printers (I have four)?
Is there a way to find the com ports that my printers a connected to?
I know this is a basic questions but there is allways a first time for everthing
Thanks for the help!
Linus
|
|
|
|
|
Usually, Windows applications relies on the Common Dialog Library's Print Dialog Box to let user browse for the available printers.
see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Thanks, now I know where to start my search...
|
|
|
|
|
|
hello
please help to solve this problem
when i coonect vc++ to mysql
and use this code to fetch data from mysql
mysql_query(myDB,"select password from login where user= \'" + user + "\'");
i = mysql_query(myDB,"select * from login");
res=mysql_store_result(myDB);
row = mysql_fetch_row(res);
MessageBox(row[0]);
but when i use debugger at this line row = mysql_fetch_row(res);
an unhandled exception myapp.exe(libmysql.dll) access violation appears in message box and when i click ok then in output window of vc++ following messages appears :
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\DOGRA\company\libmySQL.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wsock32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found.
Loaded symbols for 'C:\WINDOWS\system32\MFC42D.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MSVCRTD.DLL'
Loaded symbols for 'C:\WINDOWS\system32\MFCO42D.DLL'
Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\lpk.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\usp10.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\uxtheme.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
Warning: no listbox item selected.
Loaded 'C:\WINDOWS\system32\mswsock.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\dnsapi.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\winrnr.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wldap32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rasadhlp.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\hnetcfg.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found.
First-chance exception in company.exe (LIBMYSQL.DLL): 0xC0000005: Access Violation.
The program 'C:\DOGRA\company\Debug\company.exe' has exited with code 0 (0x0).
now please help me to solve this problem
hi
|
|
|
|
|
Please stop posting this question. You posted it once, that's enough.
|
|
|
|