|
Alternatively, in the EXE project, go to Project > Settings > Debug tab > Additional DLLs category. Add any DLLs to be debugged along with the project here.
A third way, IIRC, is to add both projects to the same workspace.
|
|
|
|
|
|
Thanks. I am working on it. Also, do u know how to turn off disassemble while debugging.
|
|
|
|
|
Hi
I am trying to use the ATL class 'CRegKey'. I want to use the member function
'EnumKey()' which is described at the website.
If i look into the header file myself, that member function and some others aren't included.
Am i working with an old version of the ATLBASE.H? Can i upgrade this file and get all features of CRegKey?
I have Windows2000, Visual Studio 6.
Any ideas?
Greetings
Jens
|
|
|
|
|
Anonymous wrote:
Am i working with an old version of the ATLBASE.H? Can i upgrade this file and get all features of CRegKey?
I have Windows2000, Visual Studio 6.
It looks like the function is only available with the ATL that comes with VS.NET and VS 2003. Even the latest platform SDK doesn't have it.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
Hello,
what I would like to do is to display a logo (jpg or bmp) in a static control on a dialog.
This logo will always have the same size and will be stored in a file logo.jpg or logo.bmp located on user station, it will be loaded in the dialog at initialization time (no bitmap stored in the ressources).
This will allow me to be more flexible and to customize the dialog for each user station.
I will just give each user a different file logo.jpg or logo.bmp.
Thanks in advance for any information
Regards
DD
|
|
|
|
|
CStatic::SetBitmap() (or send an STM_SETIMAGE message) and LoadImage with LR_LOADFROMFILE parameter (for BMPs). JPGs you can load with OleLoadPicturePath() and obtain hBmp through IPicture::get_Handle. You can also use IPicture::Render() to draw loaded image.
|
|
|
|
|
In MFC I have a populated combobox. Now I want the second item to be selected be the first item to be visible. SetTopIndex() is the functionality I require but it only seems to work for ComboBox with Type: Simple???
When the droplist is shown I just want to nudge the scrollbar up one. Can I get a handle to the vertical scrollbar in the drop list, if so how?
Sort is turned off, VC6 sp5.
Any help would be greatly appreciated. ps. take it easy im a newbie.
|
|
|
|
|
hello,
here is a problem..
in my project i m showing the program icon in the system tray when it is installed( like yahoo messanger icon when installed).now i want to take the mouse on the icon and right button clicked.it should show the popup menu containing one item string when i passed 0(zero) to a variable which is saved in a system file(created for my project) .now i changed the file by giving some other value
like 1(one) to the variable ,save that file,then i took my mouse on the icon and right click,this time it should show 2 items in the menu for examp. 1.messanger, 2. logon etc. in the popup menu.
how can i achieve this dynamically without restarting the computer .
point : my file variable value is read by registry and setting the new value correctly, which i tested by putting messageBox..so i m reading from the registry either 0 or 1 correctly. the problem is how to create dynamically these 2 menus one having one item & the other having 2 items according to the values passed either 0 or 1 respectively???
any idea anybody???
skpanda
|
|
|
|
|
A quick example put together from memory on dynamic menu creation
HMENU hMenu = ::CreatePopupMenu();
switch (itemCount)
{
case 5:AppendMenu(hMenu, MF_STRING, 5, "Item 5");
case 4:AppendMenu(hMenu, MF_STRING, 4, "Item 4");
case 3:AppendMenu(hMenu, MF_STRING, 2, "Item 3");
case 2:AppendMenu(hMenu, MF_STRING, 2, "Item 2");
case 1:AppendMenu(hMenu, MF_STRING, 1, "Item 1");
case 0:
break;
}
int selection = TrackPopupMenuEx(hMenu, x, y, TPM_RETURNCMD, ...);
DestroyMenu(hMenu);
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
I need a class or a code sample with a commets for receiving a file through the proxy with autorization.
Please, help me
Best regards,
Eugene Pustovoyt
|
|
|
|
|
|
HTTP
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hi,
use this code.
#include <afxinet.h>
//assumes server, port and URL names have been initialized
CInternetSession session("My Session");
CHttpConnection* pServer = NULL;
CHttpFile* pFile = NULL;
try
{
CString strServerName;
INTERNET_PORT nPort;
INTERNET_PROXY_INFO proxyinfo;
proxyinfo.dwAccessType = INTERNET_OPEN_TYPE_PROXY;
proxyinfo.lpszProxy = CStrProxy;
proxyinfo.lpszProxyBypass = NULL;
session.SetOption(INTERNET_OPTION_PROXY, (LPVOID)&proxyinfo, sizeof(INTERNET_PROXY_INFO));
pServer = session.GetHttpConnection(strServerName, nPort);
pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET, strObject);
pFile->AddRequestHeaders(szHeaders);
pFile->SendRequest();
pFile->QueryInfoStatusCode(dwRet);
if (dwRet == HTTP_STATUS_OK)
{
UINT nRead = pFile->Read(szBuff, 1023);
while (nRead > 0)
{
//read file...
}
}
delete pFile;
delete pServer;
}
catch (CInternetException* pEx)
{
//catch errors from WinInet
}
session.Close();
Have A Nice Day
Murali.M
|
|
|
|
|
I don't understand what a szHeaders string must contains!?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
const TCHAR szHeaders[] =
_T("Accept: text/*\r\nMozilla/3.0 (compatible; My Browser/1.0)\r\n");
|
|
|
|
|
But in this code I don't see an authorizing on the proxy. I need it.
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hi,
Could anyone provide some pointers on download management concepts. The Download Management would essentially mean download acceleration, download resumption if connection fails etc. I would like to know how all this is done and any sample code if possible.
Thanks and Regards,
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
Basically, it relies on the range capability of HTTP and the restart capability of FTP.
For download acceleration (where this does not mean altering the configuration of the TCP/IP stack, which has happened to me a few times with this sort of software), the client requests different ranges on different connections. This gets around the bandwidth throttles that some sites apply on a per-connection basis. It can also sometimes help to have an additional connection if the first one stalls.
Some accelerators communicate with their authors' website, to discover mirrors of the content (Go!Zilla used to do this). The download manager then connects to multiple mirror sites, dividing the content between them.
The specification for HTTP/1.1 says, 'A single-user client SHOULD NOT maintain more than 2 connections with any server or proxy.' Download accelerators often break this rule.
Resuming a download is much the same - for HTTP, you set the Range header to start at the point that failed, while for FTP you use the REST command to indicate where you want to restart. However, the server may not understand the command - you may need to fall back to retrieving the whole.
I believe the WinInet DLL does allow setting restart points, although I think you have to add to the headers (HTTP) or send the command explicitly (FTP). WinInet enforces the two connection limit mentioned above.
|
|
|
|
|
Thanks a lot Mike for your help.
Could you suggest me some online resource where I can do a detailed study on this subject and where I can find some sample code on how exactly this can be done.
I would be greatful if you could provide me with this info.
Thanks
Abhishek.
Learning is a never ending process of Life.
|
|
|
|
|
Hi there. Can anyone advise me on how to open a image file like JPEG in a MFC application? I have written a MFC application and need to add in the open image file option. Can anyone tell me how to do it? Thank you for any advise.
|
|
|
|
|
|
|
You can also go for GDI+ apis to do the same.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
It is well-known that the PostThreadMessage function ,only for thread,places (posts) a message in the message queue of the specified thread and then returns without waiting for the thread to process the message.
Q: Whether there is a function which ,similar to SendMessage in function,but for thread not window,sends the specified message to a thread and does not return until the thread has processed the message.
Rap off for you,for me,for our human.
|
|
|
|