|
Hello,
I have a status bar in which i want to place a progress bar in one of the panes.
For that I tried to get the size of the pane and so that i can create the progress bar in that place.
I created a string table entry in the name of the pane id, added it to indicators array and used *GetItemRect* of status bar to get the size of the pane. But the size of rect it returns is always 2,0,-17,-17. i dont know why.
Because of this size the progress bar is not showed properly. If i set the size manually - reasonable guess, the progress bar is shown.
Can some on please tell me what am i suppose to do???
Thanks for ur time.
Regards,
Ganesh.M.Ramaswamy
|
|
|
|
|
I have developed a Proxy server application listening on
a purticular port running on Win 2K .This applicaion
serves the request coming from client machine Browser
by reading the header.
I want to upload a file from Apple Mac through browser
to my application running on windows 2k.
Is there any method to solve this? .The Application
is developed in visual C++ using MFC.
Is there a component to serve the purpose? if there is
some component let me know how to use it
bgpandey,
|
|
|
|
|
Please, do not post the same question everywhere in different forums.
I'm not sure I understand your problem. If a file get uploaded with a webbrowser, there should be no differences wether it comes from a MAC or Windows...
If you have an exact problem, please write, then someone might be able to help you...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Try Software Artisans SAFileUp
i think http://www.softwareartisans.com
|
|
|
|
|
Here's a strange one for you avid programmers...I've installed VC++ 6 on a Windows NT 4.0 (SP5) machine. Aftering installing and opening a workspace, I noticed that the Class View is missing, I can't debug, and there is no color syntaxing for the code. You can compile, however, and execute code. I have never seen this problem before...has anybody else? I tried the MSDN knowledge base and a couple of reinstalls and reboots with no luck.
|
|
|
|
|
Check this registry key:
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++
You should see a FileExtensions value. Mine looks like this, after adding wmh and wmc so I could have these files c++ code show up as colorized and in the class view:
"cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;wmc;wmh"
If I were to nuke this string value, I would probably have the problem you have now, except I think I would still be able to set breakpoints.
If you don't see this for HKCU, check that HKEY_USERS\Default has this key.
HTH. Thanks to Benner for cluing me into this.
|
|
|
|
|
Hello,
I have to call system("umount /mnt"); from a program written under Linux SuSE 6.4. Before this will work I have to close all open filehandles (all but stdin/stdout/stderr of course). These files are opened usind STL and the "fstream" header file. Is there a command to close all still opened file streams?
Thanx in advance...
Greetz...
===================
-=[{Jçç}||7.ê.Q]=-
===================
|
|
|
|
|
I works on creation dll by the classWizardMFC (dll)
from type- MFC Extension DLL.
When I trys to use in my this project at another dll by attach his lib file and his header file to my project , if I use in his functions (as LMOpenDev()) I gets errors, as it:
--------------------Configuration: MyDLL - Win32 Debug--------------------
Linking...
Creating library Debug/MyDLL.lib and object Debug/MyDLL.exp
MyDLL.obj : error LNK2001: unresolved external symbol _LMOpenDev@4
Error executing link.exe.
Why ??? Who Can Help me ?? Please !!!
|
|
|
|
|
You can't use AFX_EXT_CLASS when you have MFC extension DLL linking to another MFC extension DLL.
KB article Q128199 has more info - especially item titled 'Limitations of _AFXEXT'.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
|
Hi,
At the beginning of my application, i declare a COleDateTime object like that:
COleDateTime Date1;
After, i have to compare other dates(Date2,Date3), and then change Date1, which is inialized firstly to 0, like that:Date1=Date2.GetDay()/Date2.GetMonth()/Date3.GetYear().
So, i don't know how i could modificate Date1 in this way, is anybody coule explain me how to do that?
thanks in advance.
gerald
|
|
|
|
|
You mean that you have a line like this in your program?
Date1 = Date2.GetDay()/Date2.GetMonth()/Date3.GetYear();
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
of course not, it's a representation of what kind of date format i want, for example, if date2=5/09/01 and date3=18/12/03 i want to do a sort of concatenation with the twice to have the result:5/09/03.
I hope you see now what i mean.
gerald
|
|
|
|
|
Just like James posted - use COleDateTime::SetDate:
d1.SetDate(d2.GetYear(), d3.GetMonth(), d3.GetDay());
Year comes from d2, and month and day from d3.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Use the member function SetDate().
(2b || !2b)
|
|
|
|
|
How can i change the edit control's bkcolor?
|
|
|
|
|
Handling WM=CTLCOLOR you can set the back color of the control, use pDC->SetBkColor(COLORREF)
ORi
|
|
|
|
|
Hi,
I want to avoid user resize my main window. My project is based in SDI and use a CFormView.
I tried to use SetWindowPos in CMainFrame and in OnInitialUpdate it don't work.
Can anybody help me please
Regards
|
|
|
|
|
Add this line in CMainFrame::PreCreateWindow.
cs.style &= ~WS_THICKFRAME;
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi
I drew a few line .Now I want to select a particular line by clicking on that line.I implemented a funtion which will take the mouse point and end points of line as parameters and returns true if the point is on the line by using Bresehalm's algorithm.for that I need to find the slope of line.the window has default mapping mode MM_TEXT.How can I convert the device coordinates into physical coordinates as if I place the mouse over the line the function should return true?how to solve this problem?please help me.for the lines with negative slopes I am getting errors.
Thanks
Regards
Pathi
bhikshapathi_g@semanticspace.com
|
|
|
|
|
is ScreenToClient() what you are looking for?
Else search for "Coordinate Space and Transformation Functions" in MSDN...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
How can I convert the device coordinates into physical coordinates
There's no such thing as 'physical coordinates' in GDI. You can convert between device and logical coordinates using LPtoDP and DPtoLP, but I don't think this is going to solve your problem.
Check http://www.faqs.org/faqs/graphics/algorithms-faq/, item 1.02 - "How do I find the distance from a point to a line?". If distance is small, you can assume than mouse is over the line. The definition of 'small' depends on your application - you can use some tolerance in testing, for example if user clicks two pixels from the line, it may be close enough.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
How to get a selected MenuItem ID from subject ?
PopupMenu is a member of other programm.
|
|
|
|
|
Dear all,
I have a trouble in executing my AP in WinNT 4.0.
It shows a dialog saying unable to allocate entry
point __lc_collate_cp in MSVCRT.dll. I copy MSVCRT.dll
to the directory but still failed.
The AP runs ok under win98, win me and win 2000.
Can u help me about this??
|
|
|
|
|
Use the Dependency Walker (DEPENDS.EXE - it comes with VC++) program to analyze dependencies between .dlls used by your app. You'll have to copy depends.exe to NT4 machine.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|