|
i want to know how use post method with internet api's
i know how to use Query string but i want to know how to use post method
the query string method is giving below
CInternetSession session("NMPRegister");
CString Querry;//Querry String
CStdioFile *pFile;
BOOL bFlag=TRUE;
CString strRegisterSiteName;
strRegisterSiteName="http://nmp/alive_info.nmp";
//making Querry String
Querry.Format("%s?comp_ip=%s&comp_name=%s&os_type=%s",strRegisterSiteName,m_Dlg->m_nmpLocalHost.MachineIp,m_Dlg->m_nmpLocalHost.MachineName,m_Dlg->m_nmpCheckWindowsVersion.WindowName);
m_Dlg->AddToFile("Querry ="+Querry);
////Register the computer via querry string
while(1)
{
bFlag=TRUE;//saving Program from crash
try
{
pFile=session.OpenURL(Querry,1,INTERNET_FLAG_TRANSFER_ASCII|INTERNET_FLAG_RELOAD|INTERNET_FLAG_DONT_CACHE);
}
catch(CInternetException *pEx)
{
char lpszError[100];
pEx->GetErrorMessage(lpszError,100);
m_Dlg->AddToFile("error"+CString(lpszError));
/*//MessageBox(lpszError,"alok");
//pEx->ReportError();
*/
bFlag=FALSE;//checking some error hasd occur save program form assertion
}
i want in post thanks a lot
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
|
What are hooks in win32 ?
Why are these hooks used?
Can anybody give me a live example of this?
Regards
Tiger007
|
|
|
|
|
|
Hi!
I don't have the latest platform SDK and need some definitions of macros and constants, please.
Constants:
LVBKIF_SOURCE_NONE
LVBKIF_SOURCE_HBITMAP
LVBKIF_SOURCE_URL
LVBKIF_STYLE_NORMAL
LVBKIF_STYLE_TILE
LVM_SETBKIMAGE
Macros:
BOOL ListView_SetBkImage(HWND hwndLV,LPLVBKIMAGE plvbki);
Could you look up for me how these are defined?
Thanks in advance and best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
I think it would show a space on screen?
__asm mov al, 0xAD ;copy space to al register i think
__asm out 0x64, al ;don't know what out exactly does, but I assume, my answer
correct?
Normally in C++
#define BLABLABLA 3
or
#define BLABLABLA "astring"
...
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimmy Hendrix
|
|
|
|
|
Nope, it disables the keyboard
Can you lookup the definitions for me?
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
<font style="color:blue;">#define</font> LVBKIF_SOURCE_NONE 0x00000000
<font style="color:blue;">#define</font> LVBKIF_SOURCE_HBITMAP 0x00000001
<font style="color:blue;">#define</font> LVBKIF_SOURCE_URL 0x00000002
<font style="color:blue;">#define</font> LVBKIF_SOURCE_MASK 0x00000003
<font style="color:blue;">#define</font> LVBKIF_STYLE_NORMAL 0x00000000
<font style="color:blue;">#define</font> LVBKIF_STYLE_TILE 0x00000010
<font style="color:blue;">#define</font> LVBKIF_STYLE_MASK 0x00000010
<font style="color:blue;">#if</font> (_WIN32_WINNT >= 0x501)
<font style="color:blue;">#define</font> LVBKIF_FLAG_TILEOFFSET 0x00000100
<font style="color:blue;">#define</font> LVBKIF_TYPE_WATERMARK 0x10000000
<font style="color:blue;">#endif</font>
<font style="color:blue;">#define</font> ListView_SetBkImage(hwnd, plvbki) \
(BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)(plvbki))
<font style="color:blue;">#define</font> ListView_GetBkImage(hwnd, plvbki) \
(BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)(plvbki))
TOXCCT >>> GEII power
|
|
|
|
|
Thank you!
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
#define LVBKIF_SOURCE_NONE 0x00000000
#define LVBKIF_SOURCE_HBITMAP 0x00000001
#define LVBKIF_SOURCE_URL 0x00000002
#define LVBKIF_SOURCE_MASK 0x00000003
#define LVBKIF_STYLE_NORMAL 0x00000000
#define LVBKIF_STYLE_TILE 0x00000010
#define LVBKIF_STYLE_MASK 0x00000010
#define LVM_SETBKIMAGEA (LVM_FIRST + 68)
#define LVM_SETBKIMAGEW (LVM_FIRST + 138)
#define LVM_GETBKIMAGEA (LVM_FIRST + 69)
#define LVM_GETBKIMAGEW (LVM_FIRST + 139)
#define ListView_SetBkImage(hwnd, plvbki) \
(BOOL)SNDMSG((hwnd), LVM_SETBKIMAGE, 0, (LPARAM)plvbki)
#define ListView_GetBkImage(hwnd, plvbki) \
(BOOL)SNDMSG((hwnd), LVM_GETBKIMAGE, 0, (LPARAM)plvbki)
|
|
|
|
|
Thank you!
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Hi everyone, I am writing text to the desktop. I create an hdc for the desktop using CreateDC("Display", NULL, NULL, NULL) and creating a Graphics object from that hdc. This works great for one monitor. However, I cannot get it to work on the second monitor. I can write text on half of one monitor and the other half is blank. I first tried just writing to the virtual desktop, figuring that Windows would take care of it (CreateDC("Display", NULL, NULL, NULL)), this doesn't work. Next I tried creating a DC for the second monitor from then monitors name (CreateDC(sz.name, NULL, NULL, NULL) and CreateDC(sz.name, sz.name, NULL, NULL)). I also tried directly passing the handles of the dc from the EnumMonitorsProc callback function. None of these works. I know that my coordinate system is correct, because I can create window on the second monitor using the same coordinates that don't work for text drawing. I have read everything in MSDN and I just can't get the text to output on the second monitor. Please help! Thanks for your time.
~Steve
|
|
|
|
|
Which version of Windows operating system are you on?
Did you try calling EnumDisplayDevices with this caveat "If an adapter has multiple monitors, to obtain information on all of them you must repeatedly call EnumDisplayDevices. Each time you call the function, set lpDevice to the adapter name and increment iDevNum. Note thatDISPLAY_DEVICE.DeviceName changes with each call for monitor information, so you must save the adapter name. The function fails when there are no more monitors for the adapter."
|
|
|
|
|
Can somebody point me on an info, how to integrate smart tags into a visual studio editor?
Thanks,
Boni
|
|
|
|
|
Hello every body
How to display a high color icon for an MFC application using VC6.0
e.g for and SDI application, MFC picks the IDR_MAINFRAME icon. If I inmport a high color icon for that resource, it inserts that icon as BITMAP resource instead of icon resource. VC6.0 allows maximum of 256 color icon insertion. How can i use high color icon for my application.
Thanx in advance.
|
|
|
|
|
you can import 32 bits icons, but you cannot edit them within visual C++ 6.
when you import an icon, take care also that you right selected the icon item in the list box !
TOXCCT >>> GEII power
|
|
|
|
|
First thanx for ur reply, but the problem is that MFC automaticaly picks the first icon resource as application icon, now when I import the high color icon in vc6, it import it as bitmap resource instead of an icon resource. how can i force vc to import it as icon, or how can i force vc to use the bitmap resource (an icon file) as application icon.
|
|
|
|
|
delete the icon IDR_MAINFRAME from the ressources.
then, reload (import) an icon.
don't forget to save between each actions...
i already saw that problem, but never an icon was loaded as a bitmap either
cheers
TOXCCT >>> GEII power
|
|
|
|
|
I do some programming in VB, i want to learn C++ myself & then VC++ (on Microsoft VC++ only), if we refer any book for eg. "Mastering C++" the header files etc. given in the book are not found in "Microsoft VC++ Program" Pls. suggest the best book or any alternative solution
Thanks in Advance
Suresh
|
|
|
|
|
Hi Sureshkh
I know a book which I find very good. It was very helpful when I started with VC++ coming from Pascal. There are good examples in it which gradually grow harder...
My book is in german but I'm sure there is an english version as well:
Inside Visual C++ 6.0
David Kruglinski / George Sheperd / Scot Wingo
Microsoft Press
ISBN 3-86063-461-5
Marcel
|
|
|
|
|
If you're new to C++ I would recommmend reading "The C++ Programming Language" by Bjarne Stroustrup the original C++ implementor. Only after reading this book would I recommend moving onto "Programming Windows" by Charles Petzold. and/or "Programming Windows with MFC" by Jeff Prosise.
I would not recommend starting with "Programming Visual C++" especially if you're new to C++. This book specifically states in the Introduction that this book is for the professional programmer. This book also assumes you're already familiar with C/C++. There is no "so-called" C++ primer in this book. The book immediately jumps into dicussing MFC and assumes your're familiar with OOP principles in C++, which if you're not, only confuses things.
Regards,
John
|
|
|
|
|
hain buddy i think you live in india.
you can consult two book
1>Learn vc++ 21 days
2>Learn MFC c++ classess by shirley wodte
3>let us vc++
and for some good tutorail consult Codeproject.com
I Think It will Work
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I would like to add a new dataset to a database. I make sure the database is open and that CanUpdate() is true.
Anyway, if the database is empty CRecordset::Update provokes an exception which can not be catched with an try-catch statement.
As soon the database contains at least one dataset, the addnew -> update works without trouble.
Thank you very much for your help!
<br />
m_pT_Schluesseltexte->AddNew();<br />
m_pT_Schluesseltexte->m_Edat_DeutscherText=CTime::GetCurrentTime();<br />
m_pT_Schluesseltexte->m_DeutscherText=DeutscherText;<br />
try<br />
{<br />
m_pT_Schluesseltexte->Update();<br />
}<br />
catch(CDBException* e) <br />
{<br />
AfxMessageBox("Item could not be added:\n"+e->m_strError,MB_OKCANCEL);<br />
}<br />
</small>
|
|
|
|
|
Hi
I am new in MFC.
I made a function.
I would like to create new header file which contains function definition.How to add newly created header file in existing file?
rajesh
|
|
|
|
|
click in the 'Project' menu item, and then, 'add new file'... select what file type you want...
if you are using MFC, you function could be inserted into a class. right click on the class name in the class viewer, then, click on 'add function'...
TOXCCT >>> GEII power
|
|
|
|