|
Thank you
It would be better if you told me how to do that
and again thank you
|
|
|
|
|
|
Hi,
I'll recommend that you write everything in managed code, or everything in native language as much as possible. If you mix them both, you don't get the best of both worlds, but in most cases, you get the worst of both worlds. Like the other person said, you cannot directly use C++ code in a managed application. Try converting that to managed C++. Keep COM interop as the last option (there are several articles on CP and msdn, if you decide to, just do a search).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i have used CMFCOutlookbar in my project, and i have added some tabs to it.
every thing works fine except to set the color for the tabs.
i am using SetTabBkColor(int itab, COLORREF clr) function.
but the color is not getting applied at all.
is that i am missing something?
code snippet:
CMFCOutlookbarTabCtrl * pTabCtrl = (CMFCOutlookbarTabCtrl * ) m_wndOutlookbar.GetUnderlyingWindow();
if(pTabCtrl)
{
pTabCtrl->SetTabBkColor(0, RGB(100, 100, 100));
}
although the function returns success, the color is not visible for the tabs.
suggestions are welcome
thanks
|
|
|
|
|
i using pdflib. i want convert file pcl (style text) to file pcl (style image) ?
thanks very much
|
|
|
|
|
hai,
i am trying to embed mspaint into an mfc application. in that i wanted to load a bitmap image & when i click at a position in the image with a mouse i want to read the position coordinates. is it possible ? if so please help me
|
|
|
|
|
vvlnkishore wrote: i am trying to embed mspaint into an mfc application
-> Interesting... how you done it ?
vvlnkishore wrote: with a mouse i want to read the position coordinates. is it possible ?
Sure!
Trap,
CWnd::OnMouseMove, OnLButtonDown, OnLButtonUp
Also,
CRect::PtInRect[^] (Determines whether the specified point lies within CRect.)
modified on Thursday, May 7, 2009 10:07 AM
|
|
|
|
|
thank you madhu. but how can i assign the coordinates to fX & fY. i am new to this programming. actually an MFC is developed using mediaplayer control. in that we are displaying the input image. in that image we are giving region of interest coordinates manually. but our people wanted it to be done just by mouse click using mspaint control. can you help me in this.
|
|
|
|
|
Is there any way to find which all .lib, .dll etc files are included in a exe ?
or
Is there any way to find which all .lib, .dll etc files are included in a .lib ?
I used dumpbin.exe but its not verbose.
RKP
|
|
|
|
|
Visual Studio has a dependency viewer (depends.exe).
Not too verbose but it will show you the static dependencies in a UI.
You can then do profiling to get all other DLLs that are loaded dynamically.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
i think depends.exe will help you.
depends.exe comes along with microsoft visual studio.
|
|
|
|
|
Thanks Superman and ChandraShekharanp for the reply.
There is one problem in using Depends.exe.
In the project I have an exe which inturn is made up of a number or custom projects dll, .lib etc. In depends.exe only the standard dlls of c:\windows\system32\ etc are displayed. None of the projects dll, lib files are displayed. I configured the module search order, but in vain.
Is there any way to display the projects dll, lib files along with the functions included in those dll ?
RKP
|
|
|
|
|
RKP728 wrote: In the project I have an exe which inturn is made up of a number or custom projects dll, .lib etc. In depends.exe only the standard dlls of c:\windows\system32\ etc are displayed. None of the projects dll, lib files are displayed
depends does display all statically linked DLLs when you use it to open an exe. I know - I've used and relied on it - it works. So, that maybe means that your exe isn't statically linked to your project's DLLs. Try running your exe with depends' 'Profile->Start Profiling' menu command.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Hi,I want to read/write Files(ex:music files) meta data in my program.
I know how to use functions like
int _wstat64(const wchar_t *path,struct __stat64 *buffer); But it didn't provide information which I want like "Artist,Album,Year and..." which known as file details in windows.
Any idea how to reach these fields for R/W?
|
|
|
|
|
I believe this article[^] may be relevant.
It's not as easy as just calling wstat or any other C run-time library function - the information's buried a bit deeper than that...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks The article was totally nice and the answer
|
|
|
|
|
Hi All,
I was trying to delete some specified files.
and was able to delete the files using absolute path.
But when i gave relative path, the thing is not working.
Plz help.
|
|
|
|
|
Its probably because the relative path given is incorrect.
Make sure the relative path is correct by maybe opening the file using CreateFile .
It could also be that the current working directory is different from the location of the EXE.
You can use SetCurrentDirectory to set the current working directory.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
In some part i am creating the files giving relative path,
and same paths are being used while deleting also..
But not working, i will give that snippet
CString FilePath= _T("..\\..\\Dev\\Devices\\MCAL_Template_Make\\*.mak");
SHFILEOPSTRUCT sfo;
ZeroMemory(&sfo,sizeof(sfo));
sfo.wFunc = FO_DELETE;
sfo.pFrom = FilePath;
sfo.fFlags = FOF_NOCONFIRMATION | FOF_SILENT | FOF_NOERRORUI ;
SHFileOperation(&sfo);
|
|
|
|
|
Padmanabha_M wrote: But not working, i will give that snippet
Code snippet or not, relative paths are just just...relative. You must first ensure (hint: don't assume) that the current working directory is such that "..\\..\\Dev\\Devices\\MCAL_Template_Make" is a valid folder.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I'm using the Ultimate Toolbox Library, and working with the SkinsDemo example of the library distributed packages. It's just great, but i have two questions:
1- The original example using TabAllDockedControlBars() to group FoldersBar and the PropertiesBar on a Tabbed bar at the right of the main window. But at the initialization, the Tabbed bar was minimized to the right border, and nothing shown. If I remove the TabAllDockedControlBars(), three bars are shown, but not tabbed. So why? and how to init it at a specific size ?
2- Now I have 3 FolderBar(s), and want to arrange them in one colunm, three row at the right of the main window. And three bars must be calculated automatically to have the same size (or heigh). So what I have to do?
Please help!
Thanks and Regards!
|
|
|
|
|
As we all know,we use microsoft web control to link some web site.add the control to my application.My fragment code is:
//in mydlg.h file
CExplorer1 m_web;
// on some functions in mydlg.cpp file
VARIANT vTarget;
vTarget.vt = VT_BYREF|VT_I1;
vTarget.pcVal = ("_SELF");
m_web.Navigate("http://mysite/login.jsp?logname=mylogname&password=mypassword",NULL,NULL,NULL,NULL); (1)
m_web.Navigate("http://mysite/query.jsp",NULL,NULL,NULL,NULL); (2)
//the above code (1) is no problem,but, if i want to link a query page (2) after (1) ,is refused.
please, how to solve the problem if i want to link a page after link the verification or login page such as "http://mysite/login.jsp"?
thanks advanced very much!
|
|
|
|
|
Not very good in Web programming, there may be alternatives. But how about redirecting from login.asp ? Also, why not waiting to complete the first navigate. There are events from web browser control to check the status of navigation.Please check the design.
|
|
|
|
|
cwj_ wrote: //the above code (1) is no problem,but, if i want to link a query page (2) after (1) ,is refused.
Ummm - I note you don't check any error return values - it might help if you did and told us what they were - that could point to the reason your code isn't working as you hope...
Also - the class 'CExplorer1' - that's not one built into MFC (or any other class library I know of) - what, pray tell, might it be?
Finally - your problem is likely to be because you haven't waited for the web control to actually finish loading the first web page before navigating to the second one - the web control's Navigate method is not synchronous - it returns pretty much immediately, not after hte web page has completely loaded. You need to handle the web control's NavigateComplete[^] event to detect when the first web page has been completely loaded.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|