|
Please advise MFC libraries for drawing diagrams/charts. As tried I couldn't find anything suitable for me.
|
|
|
|
|
There are none, just the wrappers on the core GDI stuff that lets you draw lines, etc. There is no fully fledged chart drawing code in MFC. You have to write it.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi,
If You Want Charts, Why Don't You Use office Web Components(OWC)?
by
baijumax
|
|
|
|
|
I really like the Smart Tag control in Office XP. Have anyone an idea how to make such a control in your own program?
|
|
|
|
|
hello,
The program that I am making needs to allow the user to upload a file from his harddisk by pushing a button just like he would normally do on a php page.
The file must be uploaded via php on remote server of course.
I am trying a trick I saw on a website since php no longer supports just plain uploading without the user pressing some kind of button I have beet trying to simulate a button pushing like this:
<br />
<br />
strcpy(lpContentLength, "Content-Length: %d\r\n"); <br />
strcpy(lpContentType, "Content-Type: multipart/form-data; ");<br />
strcpy(lpPOST, "POST");<br />
strcpy(lpMimeHeader,<br />
"-----------------------------7d414e351603fa\r\n"<br />
"Content-Disposition: form-data; name=\"upload\"; filename=\"%s\"\r\n"<br />
"Content-Type: application/octet-stream\r\n"<br />
"\r\n"); <br />
strcpy(lpMimeTail,<br />
"\r\n-----------------------------7d414e351603fa\r\n"<br />
"Content-Disposition: form-data; name=\"submit\"\r\n\r\n"<br />
"Upload Files\r\n"<br />
"-----------------------------7d414e351603fa--\r\n");<br />
strcpy(lpUserAgent, "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"); <br />
<br />
sprintf(szMimeHeader, lpMimeHeader, lpFilename); <br />
sprintf(szMimeTail, lpMimeTail);<br />
MessageBox(0, szMimeHeader, "ada", MB_OK);<br />
MessageBox(0, szMimeTail, "ada", MB_OK);<br />
dwMimeHeaderLen = strlen(szMimeHeader);<br />
dwMimeTailLen = strlen(szMimeTail);<br />
then of course I read the file, stick the MIME at the end of it and use win32 internet functions to get the data to the php waiting on the other side but it doesn't work, anyone know why? Is the mime header wrong?
I could provide the rest of the code also if you think there might be something wrong with it.
|
|
|
|
|
Hello Everybody
I am using VC++ and trying to insert records into an Excel 2003 sheet using ODBC.
The table has been created and the ranges named but it is only inserting one record and then I am getting rhe "cannot expand named range" error.
Now when I change the range definition I am getting a "spreadsheet is full" error.
I am not sure what is going wrong and any help would be greatly appreciated.
Here is my code for inserting:
CDatabase db1;<br />
if(!db1.IsOpen())<br />
db1.Open(NULL,FALSE,FALSE,_T("ODBC;Driver={Microsoft Excel Driver (*.xls)};DSN='';DBQ=TT_Database.XLS;ReadOnly=False"),TRUE);<br />
<br />
strSQL1 = "INSERT INTO tbl_AllCaptured(TickerSymbol,FIELD_PRICE, FIELD_VOLUME, DateOfCapture) VALUES('GE',25.57,45,#10/10/2000#)";<br />
<br />
db1.ExecuteSQL(strSQL1);<br />
db1.Close();
Thanks & Regards
Satish Kumar Putcha
INDIA
|
|
|
|
|
Hi,
Everybody. Do any one know how to write flash programming in VC++. Means how to parse SWF files and and how to run it ... etc...
Thanks in advance.
DTP
If you have in the cause and
the means and in God, the hot
Sun will be cool for you.
|
|
|
|
|
There's a flash SDK for creating swf's. If you want to view them, I'd say you want to embedd IE in your app.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian Graus wrote:
If you want to view them, I'd say you want to embedd IE in your app.
Yep, but embedding the Flash OCX control is a lot easier
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"
|
|
|
|
|
Maybe the macromedia Flash SWF SDK can help
Download it Here[^]
Or
The Macromedia Site[^]
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
I'm attempting to write a managed wrapper interface to a native C++ class such that I can access it from within my C# code.
I'm using Visual Studio .NET 2003 on Windows 2000.
I started a new solution: Visual C++ Projects > Class Library (.NET)
My Stdafx.h file has the following in it:
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <iostream>
using std::cout; using std::endl;
In the Solution Explorer, under Source Files I have the following:
1. AssemblyInfo.cpp
2. BiquadCode.cpp (native C++ code)
3. DSPWrap.cpp (the wrapper code)
4. Stdafx.cpp
Under Header Files, I have:
1. BiquadCode.h
2. DSPWrap.h
3. resource.h
4. Stdafx.h
I've "included" the Stdafx.h file in the first statement of DSPWrap.cpp.
On a build attempt, the code generated a C1010 error. For the files BiquadCode.cpp and BiquadCode.h, I've now set the precompiled header option as "Not using precompiled headers".
However, this throws a C1034 error
<path>\DSPWrap\DSPWrap\Stdafx.h(9): fatal error C1034: windows.h: no include path set
My questions are as follows:
1. How do I get this code to compile?
2. Where exactly do I need to "include" the Stdafx.h file? Do I need to do it only once in the wrapper code file?
Thanks in advance!
|
|
|
|
|
Hi,
In my application, I draw in a dialog with OnPaint() member function.
It is functionning well when the dialog is created and displayed.
In the dialog, I can change the dimension of the drawing. But I am not able to update the drawing unless I quit hte dialog and I come back.
How can I update my dialog on the fly ?
Thanks,
Claude
|
|
|
|
|
what do you mean "change the dimension of the drawing" ? by resizing the dialog ? or by setting the size manually with some numerical values ?
are your sure you're not computing some sizes in the OnInitDialog and never in the OnPaint ?
You could Invalidate the dialog....
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I need one of my form fields to display the PCMCIA drive as the default drive. How can I find that drive or any other drive say a CD-ROM drive on a computer or laptop? Thanks!
|
|
|
|
|
I wrote a COM Server using ATL wizard, so i made a DLL, and want to use it on another machine - but, when i try to register my server using regsvr32 i have next message:
"LoadLibrary("the way to my dll") failed. The specified module could not be found".
Where the problem is???
|
|
|
|
|
is it a COM DLL ? or ordinary one ?
programming in VB is like riding a kiddy bike, while programming in C++ is like driving a Formula 1 racing car
|
|
|
|
|
hi,
ranjith , u are a great Puleeeeee da.I believe u r riding on Tiger.
by
baijumax
|
|
|
|
|
Does the path/file specified in the call to LoadLibrary() exist? Are you using an absolute or relative path name?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Assuming you have specified the path to your DLL correctly then your module is probably dependent on another module that is not present on the second machine. Check you are using a release version, or have installed the relevant debug libraries to the second machine. Try using the depends utility to see what modules your DLL is dependent on.
Mike
|
|
|
|
|
As i understood the machine i want to install on my dll, doesn't have some "dll's", that my program is required. Yes in my COM dll i have deal with MSXML and RAPI. I'll try to install both of them. But i have some questions about your message: what is the "release version" - is it options of compilor that i usually use where i can change - debug or release in visual studio?, and another question , what is the "relevant debug libraries"?
|
|
|
|
|
Rassul Yunussov wrote:
what is the "release version" - is it options of compilor that i usually use where i can change - debug or release in visual studio?
Yes I meant the debug/release options in Visual Studio. These control whether debug information is included in your DLL and also whether your DLL uses the debug or release versions of DLLs. This will affect whether it is using for example msvcrt.dll (release) or msvcrtd.dll (debug).
The best thing to do is use the Depends utility that is included with Visual Studio and point it at your COM DLL. It will then show you all the DLLs that your DLL depends on. You then need to ensure that all these DLLs are available and registered on the second machine.
Mike
|
|
|
|
|
So i installed active sync on machine, but nothing changed, i still got this error.
|
|
|
|
|
Hi,
Check whether your Dll using Another Dll in the Module.copy all dependent .dll register all of them then try to register your's.Use dependecy walker.
or
u can create a DCOM server that's reside in your computer.
by
baijumax
|
|
|
|
|
Hi all,
I am new to multithreading and hence I am facing lot of problems.
First let me explain what I am exactly doing in my program.
I have a monitor event which gets triggered very very fast. One thraed reads data from file which has say minimum 10,000 records, it reads each line, and triggers Monitor event which displays the line on UI. Hence as soon as a line is read from file, Moinitor event gets triggered. So I can say monitor event gets triggered 10,000 times if 10,000 lines are there in the file. During this raeding and displaying operation CPU usage is shown as 100%, after the reading of file is over, it is not 100%.
I have declared my monitor event as below first.
volatile HANDLE m_MonitorEvent;
m_MonitorEvent = CreateEvent(NULL, TRUE, TRUE, NULL);
ResetEvent(m_MonitorEvent);
//This event is set in the part of code which triggers this event.
SetEvent(m_MonitorEvent);
//Thread function
BOOL b_EventRunning = TRUE;
UINT ThreadProc(LPVOID lpVoid)
{
while(b_EventRunning == TRUE)
{
DWORD dwWaitResult = WaitForSingleObject(m_MonitorEvent, INFINITE);
switch (dwWaitResult)
{
case WAIT_OBJECT_0:
//Do the work
ResetEvent(m_MonitorEvent);
break;
default:
Sleep(1);
break;
}
}//end of while
}//end of ThraedProc
I used INFINITE in WaitForSingleObject because my this thraed has to run till the application is exited.
I am totally confused here...why my CPU is showing 100% while the thread is running.
Can anyone please let me know how to proceed further?
Your expert guidance will be of great help to me.
Thanks
|
|
|
|
|
Hi
as I don't know the context and what you try to do, I just may guess.
I see two problems. The minor one being the HANDLE to an event of beimg volatile. That means everytime your loop is executing the Handle will be retrieved anew. To my opinion it should not change throughout the lifetime of the thread.
The real big problem is Sleep(1).
You have an infinite loop, that means that the programlines are executed over and over again, with just a millisecond sleep at the end.
Try switching the number to 500 or so, to give the CPU more time to execute other threads/programs. Or try to avoid the loop.
Regards
GSte
|
|
|
|