|
yes, sorry for the mistake...
it's fixed now
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
thatz nice tox.. thank u so much
thanx,
V
|
|
|
|
|
toxcct wrote:
char v[12] = "CodeProject";<br />
char* pc = NULL;<br />
strcpy(pc, v);
Doesn't this lead to a runtime error? Here you try to copy string v to the address NULL...
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
To get "Code" you need a terminating NULL:
char v1[12]= "CodeProject";
char v2[5];
strncpy(v2, v1, sizeof(v2) - 1);
v2[sizeof(v2) - 1] = 0;
Regards
We can do no great things, only small things with great love. - Mother Theresa
|
|
|
|
|
thankx buddy
V
|
|
|
|
|
Hello,
I try to write a program that uses http tunneling. But behind a proxy it won't work. Of course i can get the proxy settings from registry but the username and passowrd aren't stored, so if i want to connect i need to know the username and password. How can i get them?
One more information: the program is in vc++ and the iexplorer must start before it. So the user is authenticated.
Robi75
|
|
|
|
|
your program will have to ask for those 2 infos to the user to store them... (that's what happens for example when you configure other programs for a proxy connection...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Thanks, I thought its possible to get the username and pass somehow at code level but I came to the conclusion that it is impossible after reading related topics on the net.
Thanks anyway,
Rob
|
|
|
|
|
I am using DOC/View facilities.
1. When a make a preview, there is not a preview toolbar; i don't found a mean to print from there, What to do ?
2. When i close my preview windows, the program is broken down, why ? and what to do ?
I learn my self
|
|
|
|
|
I am using Doc/View facilities,
1. When make preview, there is not a preview toolbar where i can print,etc.. . What to do ?
2. When I close my preview windows my program broken down, Why ?
I learn my self
|
|
|
|
|
Please, Write How you are using Preview?
And How you close Preview if there is no toolbar?
|
|
|
|
|
From ClassWizard, I generate my OnFilePrint PreView fonction like below. When i am in this view like i am using DOc/View facility, i clic File/printpreview menu, the preview screen is shown but without preview boxes and when i close, the program broken down
void impression::OnFilePrintPreview()
{
// TODO: Add your command handler code here
CFormView::OnFilePrintPreview();
}
|
|
|
|
|
So I had some problems like yours.
Try to invoke DoPrintPreview in your OnFilePrintPreview.
|
|
|
|
|
From CFormView, DoPrintPreview is unknow fonction. How can I call it.
Would you like to give me an example please
I learn my self
|
|
|
|
|
How can i read a MS word doc file and even content of the table of the file. Or can any one refer any link.
Thanks
Masum
|
|
|
|
|
Hello Friends,
I want to create ODBC DSN dynamically, so I am using SQLConfigDataSource() function. for this reason i had included the odbcinst.h file also. But when tried to execute the program, i am getting a linker error as
unresolved external symbol _SQLConfigDataSource@16.
If i don't include the odbcinst.h file, then getting that SQLConfigDataSource undeclared identifier.
Please help how can i create the DSN dynamically.
Thanks in advance.
Neelesh K J Jain.
|
|
|
|
|
In VC++,does anyone know how to convert a UTF-8 string into a Shift-JIS string? Thanks.
|
|
|
|
|
|
Is there any Win32 or MFC API to retrieve the Available COM ports in a PC.
Thank you
laiju
|
|
|
|
|
|
there is MSCOMMON COMPONENT
by the way are you Chinese?
If you are Chinese ,Please communicate with me
my email is jerry_yu_fishery@hotmail.com
I
|
|
|
|
|
I just wanted to know whether it is possible to have some of the items in a Combo Box disabled/grayed/non-selectable.
If yes, how? I didn't find any clue in MSDN.
It's better to know some of the questions than all of the answers.
Pravin.
|
|
|
|
|
Simple answer: Impossible.
An owner-drawn combobox would help here, but I advise against it: It violates every UI design guideline. A better way would be to manage your content - delete invalid combobox items.
----------------------
~hamster1
|
|
|
|
|
char t1[12] ="Codeproject";
char t2[3];
strcpy(t2,t1);
AfxMessageBox(t2)
what'll be the output??
thanx
V
|
|
|
|
|
Why not just try to build and run it?
Most likely, the output will be "Codeproject", but you've hosed something.
Bob Ciora
|
|
|
|