|
How to create folders befor uploading files on the server using wininet API
or WinHTTP
i know FTP provides that, but overall i want a secure channel and i want create folders from client to server.
as i can find SFTP is not a well known thing,and i don't want to use that
waiting for reply upload..........
------------------------------
Its not the fall that kills you; it's the
sudden stop at the end.
|
|
|
|
|
Hi,
my program is used to submit values to asp page using post method. but the submitted values are received on the server. my script in given below. any one help me out.
pServer = session.GetHttpConnection(CStrDomain,nPort);
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST,CStrSuburl,Referer,1,NULL,"HTTP/1.0",dwHttpRequestFlags);
pFile->AddRequestHeaders(szHeaders);
pFile->SendRequest(NULL,0,(void*)(const char*)CStrTempQueryString.GetBuffer(CStrTempQueryString.GetLength()) ,CStrTempQueryString.GetLength());
urgent. Thanks in Advance.
Have A Nice Day!
Murali.M
Have A Nice Day!
Murali.M
|
|
|
|
|
Hi ,
We all know windows system supports left mouse button drag and drop operation.
And we still can let our own application to support drag and drop operation.
My issue is can we hook system's Drag&drop operation when user drag&drop files between two system folders.
For example,User does drag&drop operation in two system owner folder(eg, C: source folder and D: target folder). Can we get draged data information when mouse is moveing in C folder region.
Any advice is welcome!
Thanks,
Welli
|
|
|
|
|
Hi all !
I'm having a problem. I want to write to xml file with format
<Level_1>
<Level_2>
<level_3>
<level_4> value </level_4>
</level_3>
</Level_2>
</Level_1>
The problem that DataSet object have normal 3 levels(dataset, datatable, datarow). I used method DataSet.WriteXML() but not expected.
Please help me and reply !
Many Thanks !
PS: Don't write by normal way ( using XmlTextWriter object)
I'm developing with VC++.Net 2003 language.
SweetHeart
-- modified at 3:54 Thursday 23rd February, 2006
|
|
|
|
|
Can you edit your message and check the box that says "Do not treat <'s as HTML tags" otherwise we can't see your XML.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have used following technique to make dialog invisible
at startup; which i have taken from Nishant Sivakumar's
article "Some handy dialog box tricks, tips and
workarounds".
void CTest_deleteDlg::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos)
{
if(!visible)
lpwndpos->flags &= ~SWP_SHOWWINDOW;
CDialog::OnWindowPosChanging(lpwndpos);
}
The problem is how can i terminate cleanly an invisible dialog application
I have tried following;
1. Sending postmessage(wm_close) to dialog but it
donot work; probably because the dialog is invisible.
2. OnOK() is also not working.
3. Showing the dialog and immediately and sending close message produces
a splash therefore avoided.
3. exit(1) works fine but I am not sure that it teminates
application cleanly or not so, I want to avoid this.
4. calling the Exit instance of main application even donot work!
((CMYApp*)AfxGetApp())->ExitInstance();
this should work because I am calling application object exit? but it wont?
I am looking for a clean solution to terminate a hidden dialog application.
Thanks in advance.
|
|
|
|
|
You could try: (Haven't tested it)
PostQuitMessage(0);
this is this.
|
|
|
|
|
Try PostQuitMessage() . It will destroy the main window and terminate the application.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Check this..
PostQuitMessage(0);
Vini
|
|
|
|
|
What about Same old EndDialog()
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I concur.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
|
|
|
|
|
How can I get a pointer to a CDC inside a Form's paint method?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
In the OnPaint method:
if (IsIconic())<br />
{<br />
}<br />
else<br />
{<br />
CPaintDC dc(this);
CDialog::OnPaint();<br />
}
this is this.
|
|
|
|
|
i having some problem while trying to cature a single from a camera and
saving it as a bmp file. i want a program in win-32 sdk to save a single frame
as a bmp.
arun
|
|
|
|
|
refer MSDN for source code
JAYARAJ
|
|
|
|
|
Hi,
I am currently working on a project where I would like to have an embed chat window. Since I would like it to be embedded within an SDI application, that means that I don't want multiple chat windows to be able to communicate with different ppl.
I would like to have some sort of control where I can switch between list box controls (what I am using as the 'chat message pad') using tabs. I know that there is already a tab control, but it doesnt really have everything I need.
I would like to have tabs on the left side, with horizontal text. I would also like each tab to have a close button [x], and for tabs (and new pages with list controls) to be able to be added programmatically during runtime.
Does anyone have such a control or can recommend a good place to research?
Any suggestions will be greatly appreciated,
-----------------
Genaro
|
|
|
|
|
given a string containing hex,is there any function that checks if teh given string holds a valid hex value?
cheerz!
|
|
|
|
|
Not directly. It's fairly easy to write one though. Just check that there is nothing other than 0-9 or A-F in the string.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
And a-f
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
Blake Miller wrote: And a-f
I assumed he had at least some level of intelligence...
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Given the nature of the original question, I chose not to make any assumptions.
We actually had production code similar to the following (greatly paraphrased)...
<br />
if( cChar > 'a' && cChar < 'z' ){<br />
... blah blah blah...<br />
}<br />
I suppose you can already see what is wrong with that, even if they were only looking for lower case characters...
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
AFAIK, there is no way to check a whole string for valid hexadecial values, but you can make a loop and check each character one by one.
Have a look at one of the isxdigit functions.
|
|
|
|
|
Long story short: I have files that are on a windows network that went through another OS initially and have invalid windows filenames. this process of copying the file (unfortunately) does not cause an error leaving the windows machine with files it cannot open or really do anything with.
i am trying to find a way to rename these files and have hit major snags. the file system supports the file name (NTFS) but winxp does not so functions such as MoveFile fail. even the CRT function rename() fails and rightfully so, the name was invalid. this whole thing is pretty stupid considering the FindFile family of functions will return the invalid file name anyways even though the rest of the API doesn't support it.
i dont have the old DOS option but i was wondering if anyone could offer any insight on this issue. the lower level NtOpenFile() and other accompanying functions seem as though they might offer a solution but I cannot find enough documentation (hell, there is almost none) on this to know how they work, go figure.
maybe i need to be at a driver level?
at any rate, it can be done. i've seen programs that claim they are able to do it (making my own is more fun) and even windows will rename the invalid file through the context menu so something in the OS can do this. function hooks aren't telling me anything useful from the Nt funcs so hopefully someone else can.
cheers.
|
|
|
|
|
Try seeing if GetShortPathName() works. If it does, you can use the file's short name to rename it.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
i apologize for the long delay in following this up. GetShortPathName() doesn't work and fails a second requirement of a network file (seems to return NULL)
thanks for the suggestion.
|
|
|
|