|
Hi,
Are there any Gantt chart components on the market,
free or commercial ?
Thanks
|
|
|
|
|
Yeap... Try Project2000, its a microsoft office application.
|
|
|
|
|
See:
http://www.ganttchart.com/
http://associate.com/gantt/
http://office.microsoft.com/en-us/assistance/HA010346051033.aspx
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Hi
Im actually coding using VC++ with Visual Studio .NET 2003
When i was using VC6, i could do
CString a = "abc";
CString b = "123";
a += b;
and then a would be "abc123".
But now, i dont know what happens, but a ends up being "123"
this is driving me crazy.
The solution i found is doing
strcat(a.GetBuffer(), b.GetBuffer());
But that sucks.
Any suggestions??
|
|
|
|
|
it works well on my version of VS.net 2003 ...
maybe there is something else that you overlook.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I can't see anything wrong with the sample code you provided. In fact, I just did a simple test and it works as it should
The only difference I know of between VS6 and VS7.1 is that the MFC CString class in MFC7 is templated. But the functionalities are the same.
I Dream of Absolute Zero
|
|
|
|
|
I deleted the whole method and did it again, and now seems to be working fine...
Is strange because isn't the first time something like this happens to me.
Thanks for the suggestions
|
|
|
|
|
Kharfax wrote: strcat(a.GetBuffer(), b.GetBuffer());
Never do that!
What you are doing is appending to a string's internal buffer when you have no idea what that buffer's valid (usable) length is. For example, if a 's internal buffer was 6 characters long, your call to strcat(...) would exceed the length of the buffer and would write the terminating NUL character off of the end of the allocated memory.
While your problem sounds odd, I would make sure no one accidently #define d "+=" to be "=" (I have seen it done before, do not ask why). You could also test by adding up to int s in the same way and see if they total correctly.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
This one drives me up the walls...
I frequently use the "Called by"-feature, available from the drop down occuring when right-clicking a function symbol in the Class View.
Now, for no apparent reason, this has stopped working!
I have tried deleting all of the files in the Debug-folder, deleting the ncb file, checking that the Build Browse Info box is checked in the project settings and then re-compiling. All to no avail.
Selecting "Called by" for any function renders... nothing. Not even an error message!
Any clues, people! Thanx in advance for any tips on this one!
------------------------------------------------------------
"Pooollyyy!! ...Polly Parrot! Wakey-wakey!"
|
|
|
|
|
A coworker has experienced an interesting problem that involves Java applets when used in a hosted IE situation. I have been able to recreate the issue by using an AppWizard-generated CHTMLView application (with no other code changes made).
The applets seem to load and function correctly; they draw and respond to mouse actions as expected. However, one of the applets contains an action button that submits a form or otherwise transmits data back to the server (the data fields are part of the Java applet's UI), that causes a popup to be generated that confirms the details specified on the form.
When using this series of applets in IE, everything works fine. However, when using them in the hosted browser, some data is not making it back to the server and the generated popup is corrupted (invalid/missing data).
The applets are on a 3-rd party site and we do not have direct access to them for debugging purposes -- so I cannot determine if the Applet is generating the popup directly, or it comes from the server, or a combination of both.
I expect that the Java applet itself is trying to send data back to the server but something is blocking this data when it is hosted.
I have Googled (both the web and Usenet) for information but I have come up empty.
Has anyone seen a problem like this before? Or do they have an idea of what is going on? I am at a loss here...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
I have both Visual Studio 6.0 and .NET (2003) versions installed on my PC. I am running an application (compiled for debug but not running under the debugger) and it throws an exception. The OS picks .NET as the debugger but I would like it to pick VC++6.0 as the debugger. Where is this setting?
|
|
|
|
|
I am not sure of the setting but I would say that I have installed .net 2003 just to debug my vc6 applications with the .net debugger. As is a lot better than the one with vc6 especially if you want to do remote debugging. One way to use the .net debugger is to load your project with it .net and let it upgrade to .net then exit. It will create a .sln and .vcproj for .net to load, don't worry it will not trash your .dsp or .dsw files so you still can compile and develop with vc6. I do this all the time.
John
|
|
|
|
|
I'm in case that function returned for me JPEG file data in CString.
so I write the CString data to IStream Object and then save the file but I'm
getting InvalidParameter , i do not know why? here is code snippet
Write(CString image, int len)
{
CLSID encoderClsid;
GetEncoderClsid(L"image/jpeg", &encoderClsid);
LPBYTE lpBits = (LPBYTE) GlobalAlloc(GMEM_MOVEABLE, len);
IStream *pStream;
HRESULT res = ::CreateStreamOnHGlobal(lpBits,FALSE,&pStream);
LPTSTR sImage = image.GetBuffer(len);
pStream->Write(sImage,sizeof(sImage),NULL);
LARGE_INTEGER li;
li.QuadPart = 0;
res = pStream->Seek(li,STREAM_SEEK_SET,NULL);
if(SUCCEEDED(res))
{
Image *jpgImage = Image::FromStream(pStream);
jpgImage->Save(L"C:\\myImage.jpg",&encoderClsid,NULL);
//here Save return InvalidParameter , WHY? any suggestions?
}
}
|
|
|
|
|
All items are grayed out, why?
void CMyFrameWnd::OnRButtonUp(UINT nFlags, CPoint p)
{
CMenu menu;
menu.CreatePopupMenu();
menu.AppendMenu( MF_STRING | MF_ENABLED , 700 , "Zoom All" );
menu.AppendMenu( MF_STRING | MF_ENABLED , 701 , "Properties" );
ClientToScreen(&p);
menu.TrackPopupMenu(TPM_CENTERALIGN,p.x,p.y,this,NULL);
CFrameWnd::OnRButtonUp(nFlags, point);
}
|
|
|
|
|
Do you have a handler function for menu items 700 and 701?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
No I am overriding OnCommand()
For CWnd's this seems to be enough - maybe for CFrameWnd's it's not enough?
|
|
|
|
|
MFC's framework will disable menu items for which a handler has not been provided. There is no way for it to know that you are handling menu item requests from within OnCommand() .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
So I shouldn't override OnCommand(), instead I should create a handler?
ON_COMMAND_RANGE( 700 , 701 , OnMenuCommand )
afx_msg void OnMenuCommand ( UINT nID )
I just wonder - why is OnCommand() virtual then?
|
|
|
|
|
You can add onupdatecmdui handlers for each id and then use oncmommand, I do this a lot.
John
|
|
|
|
|
Jesper Knudsen wrote: So I shouldn't override OnCommand(), instead I should create a handler?
That's how I would proceed.
Jesper Knudsen wrote: I just wonder - why is OnCommand() virtual then?
It has its purpose. My most recent use of it was on a property sheet. I needed to handle the clicking of the OK button.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Thank you for your help, it works with the handler - still I wonder, still I wonder..
|
|
|
|
|
|
I'm using a class derived from CHtmlView as listview in an internal Folder
Browser of my application.
Exist a facility to hide the left blue task pane (if user have activate this
feature in Folder Options)?
Another fine feature will be, to set the "list" as active default view in my
application (may be the user has set "icon" as default). Any idea?
Thx for help
|
|
|
|
|
Check out this article[^]
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
|
I dont want integrate html in my view and i dont want use a own written class derived from CView. I use the CHtmlView. This is the starting point. And i use this class for File browsing (Navigate2(pidl)).
Thx, for you comment, but this artikel was not what im locking for (or did i have some overlooked??)
|
|
|
|