|
Those things happen most of the time to me, too
SkyWalker
|
|
|
|
|
I am programing a Socket with SSL,so i m using various header files for encrytion,ssl protocol
#include <wincrypt.h>
#include <wintrust.h>
#include <Schnlsp.h>
(these header files r in stdafx.h)
when i compiling my program is showing errors,eg
c:\program files\microsoft visual studio\vc98\include\schnlsp.h(118) : error C2501: 'ALG_ID' : missing storage-class or type specifiers
when click on the error
typedef struct _SecPkgCred_SupportedAlgs
{
DWORD cSupportedAlgs;
ALG_ID *palgSupportedAlgs;
} SecPkgCred_SupportedAlgs, *PSecPkgCred_SupportedAlgs;
when i check this strucure in msdn i found data type ALG_ID is defined in the Wincrypt.h header file.
when i check wincrypt i found that a macro has to be define
#if(_WIN32_WINNT >= 0x0400)for using wincrypt.h
so i defined #define _WIN32_WINNT 0x0500 in stdafx.h before any header file is defined
now when i again compile the program
D:\sunit\controleon\Working\CSocket\sslsocket.cpp(611) : error C2039: 'dwFlags' : is not a member of '_SCHANNEL_CRED'
c:\program files\microsoft visual studio\vc98\include\schnlsp.h(129) : see declaration of '_SCHANNEL_CRED'
i found the struct _SCHANNEL_CRED in schnlsp.h file
typedef struct _SCHANNEL_CRED
{
DWORD dwVersion;
DWORD cCreds;
PCCERT_CONTEXT *paCred;
HCERTSTORE hRootStore;
DWORD cMappers;
struct _HMAPPER **aphMappers;
DWORD cSupportedAlgs;
ALG_ID *palgSupportedAlgs;
DWORD grbitEnabledProtocols;
DWORD dwMinimumCipherStrength;
DWORD dwMaximumCipherStrength;
DWORD dwSessionLifespan;
} SCHANNEL_CRED, *PSCHANNEL_CRED;
where as in msdn
typedef struct _SCHANNEL_CRED
{
DWORD dwVersion;
DWORD cCreds;
PCCERT_CONTEXT * paCred;
HCERTSTORE hRootStore;
DWORD cMappers;
struct _HMAPPER ** aphMappers;
DWORD cSupportedAlgs;
ALG_ID * palgSupportedAlgs;
DWORD grbitEnabledProtocols;
DWORD dwMinimumCipherStrength;
DWORD dwMaximumCipherStrength;
DWORD dwSessionLifespan;
DWORD dwFlags;
DWORD reserved;
} SCHANNEL_CRED, *PSCHANNEL_CRED;
as in my proram i m using dwFlags
i m not understanding where is the problem.
Thanx for any suggesstion
-- modified at 5:42 Friday 9th September, 2005
|
|
|
|
|
Does anybody have any idea about where the resources are defined for Standard Message Boxes i.e. in which file and its path ? . What I mean to say is that how App knows to show OK string.I mean it can show Cancel string instead of OK. From where it loads those string. This must be in some rc file(Thats my assumption). Any idea. Any help would be appreciated.
Best Regards,
|
|
|
|
|
Ibraheem Khan wrote:
Does anybody have any idea about where the resources are defined for Standard Message Boxes i.e.
As MessageBox api is defined in User32.dll, So law of Common sense it might be in User32.dll only , just kiddin..
"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
|
|
|
|
|
Okay. but when I delete user32.dll from System Folder why does it comes again. From where the windows loads it again. Also if I replace user32.dll with other version(language) of WinXP, it again loads the default one. Any reason . How to cope with it ?
Best Regards,
|
|
|
|
|
Ibraheem Khan wrote:
Also if I replace user32.dll with other version(language) of WinXP, it again loads the default one
I have heard some where Windows Xp provide special protection to soem important DLL like user32,kernel32 etc.. for more information i believe you have to search microsoft website
"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
|
|
|
|
|
ThatsAlok wrote:
I have heard some where Windows Xp provide special protection to soem important DLL...
Windows 2000 also has this feature. It's called WFP. Comes in handy when some nefarious program steps on those important files.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Just wondering if anyone knows if there are converters to convert from:
MS Visual C++ 6.0 or
MS Visual Studio 2003
project files into UNIX autogen/configure/make files?
|
|
|
|
|
With VC++ v6, you can export to a makefile. Look in the Project menu.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Yes there is the export feature in VC 6.0. However I don't see any export feature in Visual Studio .NET 2003. Hmmm...
|
|
|
|
|
Thanks all,
I need some example of UPnP Nat Traversal ,
search the MSDN and found only WIN XP or above can support this tech,it based on XML style,
Now I want to made it run through winsock mode fucntion instead of system API, and parse the XML answer by my own function.
Does anyone have a simple example about it?
thanks,
Hello,
pleasure to meet you.
|
|
|
|
|
Hi 2 all
I am getting INVALID datatype for BLOB or CLOB datatypes of Oracle table.i am having a table in Oracle which is having one BLOB datatype and for that table i am deriving one CRecordset object in vc++ , in that it is showing INVALID for that BLOB type field. i am connecting to Oracle using ODBC. Am i doing any thing wrong.
Plz answer me.
Thanks
|
|
|
|
|
how to make al multithread/multiprocess for an opengl function??
|
|
|
|
|
Hello,
Does CreateThread() [^] help?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Does anyone know how LoadImage (from win32 API) works, when loading RLE8 bitmaps? I know that this function can convert RLE8 bitmaps to BI_RGB format. In dibutil.c (from MSDN) you can find function that can change dib format from BI_RGB to RLE8. I tried to revert that, so I used CreateDIBSection with ppvBits pointing to RLE8 data. Now GetDIBits with biCompression set to BI_RGB doesn't work. I don't know why - as I said earlier - LoadImage can load RLE8 bmps, so - there must be functions that I could use to do this conversion.
|
|
|
|
|
I developed a simple application in MFC. First I ran it in Win XP English ok was everything was normal. Next when I ran the same exe in Win XP French, the text on the button of MessageBoxes was in French. I am using the same exe, no Remote Dlls and no change in rc File. So why is it such a difference ? ... I mean should the text on the button of MessageBoxes be not the same as in WinXP English. Any logic or reasoning behind it ?
Regards
-- modified at 2:06 Friday 9th September, 2005
|
|
|
|
|
windows behaves as the user installed it for...
if you are english, you expect windows to speak englisk to you, if you are french (i am), it better if windows can speak french to you...
it is because windows search in priority the default windows language first, then some others (i don't remember the whole list, but the MSDN will give you the answer)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
hi..
I have a multiple view program. One of them is CListView in report style, with full row select. but now when i increase the initial size of the columns by dragging the column header , the selection mark will be shown only till the initial size of the columns the remaining portions are not updated. what is to be done to update the remaining portion of the view
thanks ....
sourabh
|
|
|
|
|
Something else must be at play here. I just tried this with a multi-column list control and sizing any of the columns caused the selection mark to grow/shrink accordingly. Try scaling the problem down to just a small, test application that does nothing but add a few items to a multi-column list control.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
hi..
i have a hiden column in my list . to avoid it from shown to the user
to prevent it from showing the headers onitemchanging is overridden
the code is as follows
CMyView::OnItemchanging(NMHDR* pNMHDR, LRESULT* pResult)
{
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;
// TODO: Add your control notification handler code here
if((phdn->hdr.code ==HDN_ITEMCHANGING)&&phdn->iItem ==0)
{
*pResult = TRUE;
return ;
}
*pResult = 0;
}
but calling RedrawWindow() in onitemchanged of list view solved the problem.
but i dont know if this will have some perfomance problems .
if there any way in which i can solve the problem.
thanks...
sourabh
|
|
|
|
|
hi..
yes to stop the user from resizing the first column i overrided the header item change message like
void CMyView::OnItemchanging(NMHDR* pNMHDR, LRESULT* pResult)
{
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;
if((phdn->hdr.code ==HDN_ITEMCHANGING)&&phdn->iItem ==0)
{
*pResult = TRUE;
return ;
}
*pResult = 0;
}
probably this was the cause.
any how calling RedrawWindow() in item changing solved the problem.
code is like
void CDirView::OnItemchanged(NMHDR* pNMHDR, LRESULT* pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
if(m_nNoItemChange && LVIS_SELECTED == m_List.GetItemState(pNMListView->iItem,LVIS_SELECTED))
{
//my neaded code here
}
*pResult = 0;
RedrawWindow();
}
but i dont know if this is a proper methord. and i would like to know if i can set the size of each column in onitemchanging of header.
thanks...
|
|
|
|
|
Dear friends,
I'm using istream_iterator in vc++ after entering the text in the console i dont know how to exit out and get the output. i tried all the ways like cntrl+d etc.. If i'm using cntrl+c it is completely exiting out,with out displaying the output how so solve this problem. The program is
please help in this aspect.
# pragma warning(disable:4786)
# include <iostream>
# include <string>
# include <iterator>
# include <vector>
# include <algorithm>
using namespace std;
bool length_less(string s1,string s2)
{
return s1.size()<s2.size();
}
int main()
{
="" istream_iterator<string=""> input(cin),eos;
vector<string> text;
copy(input,eos,back_inserter(text));
string* max=max_element(text.begin(),text.end(),length_less);
cout<
|
|
|
|
|
Please suggest me the code to convert bmp to jpeg file conversion.
aasstt
|
|
|
|
|
|