|
You cannot check this for standard libraries which are shipped with Visual Studio, you have to check it only for any 3rd party libraries. If you don't have their source code then you cannot help it.
-Saurabh
|
|
|
|
|
Cool, I fixed it using the rather silly strategy of both including the library files, and simulteanously ignoring them. It sounds stupid, but its what Microsoft reccomends, and it works.
|
|
|
|
|
That's nice. Can you please explain exactly what you did? Are you using any 3rd party libraries or just the system libraries? Which libraries did you included and ignored?
-Saurabh
|
|
|
|
|
Sure, I'm only using system libraries... here they are:
user32.lib odbc32.lib odbccp32.lib comctl32.lib kernel32.lib gdi32.lib Advapi32.lib nafxcw.lib LIBCMT.lib LIBCPMT.lib
and ignored: nafxcw.lib; LIBCMT.lib; LIBCPMT.lib
I know it looks silly, but it makes it compile without problems... I wonder what the heck it means to include libraries only to ignore them.... oh well.
|
|
|
|
|
How can I have automatically the path of my SQL SERVER Database in my programme.
I am using Visual c++ 6.0
Thanks
I learn my self
|
|
|
|
|
what do you mean
mikobi wrote: the path of my SQL SERVER Database
do you mean the name of the database or the location of the mdf & ldf files ?
|
|
|
|
|
When you have a sql server running in your pc; when you point the mouse
it shows running-..... what i need is what is after running- . Whow can i have it in my program ?
|
|
|
|
|
dbinit.AddProperty(DBPROP_INIT_DATASOURCE, ...... // Here
It is what we write in the sentence above
I can say that it is database name; like \\COMPUTER
-- modified at 1:11 Monday 24th April, 2006
|
|
|
|
|
Hi,
I know IShellFolder::GetAttributesOf can get property of any sys folder. But how can I hide sys folder? which function can do it?
Nothing impossible, Nothing sure
|
|
|
|
|
Hi.
----------------------------------------
AtlWin.h some code about unsubclass window:
// unsubclass, if needed
LONG_PTR pfnWndProc = ::GetWindowLongPtr(pThis->m_hWnd, GWLP_WNDPROC);
lRes = pThis->DefWindowProc(uMsg, wParam, lParam);
if(pThis->m_pfnSuperWindowProc != ::DefWindowProc && ::GetWindowLongPtr(pThis->m_hWnd, GWLP_WNDPROC) == pfnWndProc)
::SetWindowLongPtr(pThis->m_hWnd, GWLP_WNDPROC, (LONG_PTR)pThis->m_pfnSuperWindowProc);
#if (_ATL_VER >= 0x0700)
// mark window as destryed
pThis->m_dwState |= WINSTATE_DESTROYED;
#else // !(_ATL_VER >= 0x0700)
// clear out window handle
HWND hWnd = pThis->m_hWnd;
pThis->m_hWnd = NULL;
// clean up after window is destroyed
pThis->OnFinalMessage(hWnd);
#endif // !(_ATL_VER >= 0x0700)
---------------------------------------
WINCORE.CPP some code about unsubclasswindow
// call default, unsubclass, and detach from the map
WNDPROC pfnWndProc = WNDPROC(GetWindowLongPtr(m_hWnd, GWLP_WNDPROC));
Default();
if (WNDPROC(GetWindowLongPtr(m_hWnd, GWLP_WNDPROC)) == pfnWndProc)
{
WNDPROC pfnSuper = *GetSuperWndProcAddr();
if (pfnSuper != NULL)
SetWindowLongPtr(m_hWnd, GWLP_WNDPROC, INT_PTR(pfnSuper));
}
Detach();
----------------------------------------------------
1.Why in ATL when "pThis->m_pfnSuperWindowProc == ::DefWindowProc " not need restore old wndproc, but in MFC without this compare?
2.Now i write subclass window(mulriple, like DefWindowProc -> My subclass -> CWnd subclass(CWindow subclass) or DefWindowProc -> CWnd subclass(CWindow subclass) -> my subclass), and can safe unsubclass window. which above code i can modification and use in my code?
Thanks.
|
|
|
|
|
i wanna know how i can use messenger or mail services in my code to send infromation to an id in background or in secret way.
|
|
|
|
|
Why do you want to do it in secret, are you writing spyware ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
i wanna know how can i use messenger or mail services in my code to send infromation to an id in background or in secret way.
|
|
|
|
|
hi
i'm working on a remote admin project but.and it is a big but, i have a problem with controlling file in remote pc.
i wanna see the whole file && dir as i am see in my pc.i mean visual control!i wanna a code more power than ftp trasnfer.
thanks for ur reply
|
|
|
|
|
I want to get index of the image loaded in a listctrl(Report view). The image is loading dynamically. eg:- On clicking the row 2, I just want to know which image (Image index) is displayed in the 2nd column of that listctrl(ie, In the cell (2,2)).(The purpose is if the image loaded is image1 then on Selection i want to change it to image2, otherwise I want to load image 1)
At least I want to know if there is an image in That particular cell of the list report
GetItem is not working properly.
Sandeep
Sanc
-- modified at 2:01 Saturday 22nd April, 2006
|
|
|
|
|
To get an image associated with the cell use
LVITEM litem;
litem.mask = LVIF_IMAGE;
litem.iSubItem = 2;// the subitem number
litem.iItem = 2;// the item number
litem.iImage = -1;
GetItem( &litem );
after u have called the GetItem function, the litem.iImage member of the LVITEM will contain the image index.
This function will return the image number only if u have set the LVS_EX_SUBITEMIMAGES extended style....
nave
|
|
|
|
|
You have no leave today...!
- NS -
|
|
|
|
|
|
near home
- NS -
|
|
|
|
|
Hello,
I have this variable in the Doc class.
CTypedPtrList<coblist, cobjdata*=""> m_objectsList;
Suppose at present it has 5 entries.
I want to delete 3rd record. then how to achieve it?
I tried.
POSITION pos = m_objectsList.GetHeadPosition();
UINT cnt=0;
while(pos!=NULL)
{
CObjData *objFmList = m_objectsList.GetNext(pos);
cnt++;
if(cnt==3)
delete objFmList;
}
but then if next time I go to read this m_objectsList, program gives memory related error. How to do it safe way?
thanks
Leya
|
|
|
|
|
You forgot to remove the item from the list. So at the next time you are deleting the object, which is previously deleted.
- NS -
|
|
|
|
|
|
I have a C++ agent that accesses an HTTP proxy that requires NTLM authentication.
Is there a way I can format the NTLM Type 3 message NTLM/NTLMv2 response using the password the user entered to logon without asking the user to re-enter the password?
I do not want to know the actual password for security reasons and possible liability if the password gets compromised.
Is there such an API that I can use to format these fields by supplying the user and domain names?
I'm on-line therefore I am.
JimmyRopes
|
|
|
|
|
wrote: Is there such an API that I can use to format these fields by supplying the user and domain names?
Are you using AcquireCredentialsHandle() ? If so, you can set pvAuth to be NULL to specify default credentials.
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"
|
|
|
|