|
Umm.. I thought Visio (and Office) could export documents as web pages.
The exported .vdx files can be converted to SVG with freely available converters. VDXtoSVG sourceforge
The older 2001 .vdx format schema is no longer available, but there's the 2010 schema and previous ones back to 2003, here: Visio 2010 XML Schema
I don't know of any vector to bitmap converters, but it shouldn't be too difficult to do yourself.
Q. Hey man! have you sorted out the finite soup machine?
A. Why yes, it's celery or tomato.
modified 11-Mar-13 22:11pm.
|
|
|
|
|
Thanks for your reply.
We're looking to take Visio-like symbols and draw them in our view. Would like the user to be able to select the .VSS file, select the symbol and draw it.
You're method appears to be a one-off method. Are the VSS file formats published anywhere?
|
|
|
|
|
I thought that the second schema link would help you with file format info.
There's a C++ XML parser called rapidxml if you want to try that route. But you still need the visio xml schemas.
Otherwise you'll have to download vdx converter source code Saxon (it's Java) also on sourceforge, vdx2svg has a dependency on it.
I have the Pro version of Visio (2002) and it has the developer reference. I will take a look and see if there's more info for you in that.
Q. Hey man! have you sorted out the finite soup machine?
A. Why yes, it's celery or tomato.
modified 13-Mar-13 13:47pm.
|
|
|
|
|
How I can pass arguments to .exe file in MFC Dialog based application. I have used ShellExecute to call .exe file to my program now i wand to give 2 filenames as an arguments to .exe file.
Thank You.
|
|
|
|
|
Pass them with the lpFile or lpParameters parameters of the ShellExecute() function:
ShellExecute(NULL, _T("open"), _T("myfile.exe \"file 1\" \"file 2\""), NULL, NULL, SW_SHOWNORMAL);
ShellExecute(NULL, _T("open"), _T("myfile.exe"), _T("\"file 1\" \"file 2\""), NULL, SW_SHOWNORMAL);
Note that i have quoted the file name in the parameters using escaped quote characters. This is necessary when the file names and the executable contain spaces.
|
|
|
|
|
I have 2 tabs in my program on first tab i have 10 MFCEDitBrowse control
and on second tab I have calculate button when ever
i clicked on calculate button it should called .exe file and input for .exe file is
selected files in mfceditbrowse control on (tab1).
selected files are not fixed it is between 1 to 10.
Please help me out I dont understand how i can give filename(with path) from mfceditbrowse
(dlg1) to .exe file (dlg2)
|
|
|
|
|
I don't understand where the problem is. Just create a string with the file names from your browse controls and pass this string as parameters to ShellExecute() . When creating the string, separate the file names by spaces and quote them using double quotes when they contain spaces:
void CMyClass::AppendFileName(CString& str, LPCTSTR lpszFileName) const
{
bool bMustQuote = _tcschr(lpszFileName, _T(' ')) != NULL;
if (!str.IsEmpty())
str += _T(' ');
if (bMustQuote)
str += _T('"');
str += lpszFileName;
if (bMustQuote)
str += _T('"');
}
void CMyClass::ShellExecute()
{
CString strParameters;
CString strFileName;
strFileName = GetNameFromBrowseControl1();
AppendFileName(strParameters, strFileName.GetString());
ShellExecute(NULL, _T("open"), _T("myfile.exe"), strParameters.GetString(), NULL, SW_SHOWNORMAL);
}
|
|
|
|
|
peoria123 wrote: Please help me out I dont understand how i can give filename(with path) from mfceditbrowse (dlg1) to .exe file (dlg2) Separate your problem into two smaller problems. First get the filenames from the various controls. Once you have successfully done that, then worry about passing those names to the EXE.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
how can update .properties file
|
|
|
|
|
Any way you like. Now if you want to give some more detail about your problem people will try to help you.
Use the best guess
|
|
|
|
|
hi,
i need to update .properties file example
log4j.logger.PXPBroker=TRACE, C, fileappender
log4j.additivity.PXPBroker=false
log4j.appender.C=org.apache.log4j.ConsoleAppender
log4j.appender.C.layout=org.apache.log4j.PatternLayout
log4j.appender.fileappender=org.apache.log4j.RollingFileAppender
log4j.appender.fileappender.File=C:/pxpserver/logs/pbesb.log
i want to update these values in c++ please help me.
|
|
|
|
|
Use one of the fstream [^] classes to read the file, change the values that you wish to update, and write the changed values with another fstream object.
Use the best guess
|
|
|
|
|
Apparently MFC has no classes to encapsulate static text or group boxes.
What is the preferred method for resizing them as the user resizes the window?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Your question could do with a bit more detail; what exactly are you trying to do? You can use the CStatic Class[^] for static text, and that is resizable (as is any window).
Use the best guess
|
|
|
|
|
Thanks.
I assumed there was no MFC class because the "Add Variable" wizard did not present me with one.
I've created a small class that automatically resizes and repositions controls when a window is resized, and I inherited from classes liked CComboBox, CListBox but I didn't see the CStatic class.
Thanks again.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Richard Andrew x64 wrote: I assumed Never assume anything with MFC. I have also found in the past that the Wizard does not always list every possibility, even though MFC wraps all the standard Windows and has a number of custom types.
Use the best guess
|
|
|
|
|
This is not a programming "how to", just looking for short explanation/ verification of usage of "moniker".
My basic understanding is that it's function is similar to DOS path, allowing access to an object.
Now it this particular sequence I do not get the enumeration, followed by getting the first moniker and bind it to , I guess filter.
This is part of my code to get data from USB camera and I am still learning how to put all this COM and DirectShow stuff together.
This is what I understand so far – the enumeration identify the “object class” in my case USB cameras and than I can select which one using the Next in loop ( this snippet gets only the first one) and than let the filter “connect / bind “ to the selected camera.
This is still plain COM code , no DirectShow.
Am I right so far?
Thanks for reading.
Cheers Vaclav
TRACE("\nObtain a category enumerator by calling ICreateDevEnum::CreateClassEnumerator with the CLSID of the desired category");
IEnumMoniker* cams = 0;
hr = devs?devs->CreateClassEnumerator (CLSID_VideoInputDeviceCategory, &cams, 0) ;
if (FAILED(hr))
{
TRACE("\nFailed devs->CreateClassEnumerator (CLSID_VideoInputDeviceCategory");
return;
}
ASSERT(cams); // redundant
TRACE("\nget first found capture device (webcam?)");
// moniker - similar to DOS path to get info on object
IMoniker* mon = 0;
hr = cams->Next (1,&mon,0); // get first found capture device (webcam?)
if (FAILED(hr))
{
TRACE("\nFailed get first found capture device (webcam?)");
return;
}
ASSERT( mon);
TRACE("\nBind moniker ( mon) to object ( cam)");
IBaseFilter* cam = 0;
hr = mon->BindToObject(0,0,IID_IBaseFilter, (void**)&cam);
if (FAILED(hr))
{
TRACE("\nFailed Bind moniter ( mon) to object ( cam)");
return;
}
ASSERT( cam);
|
|
|
|
|
Your friend is MSDN
Monikers (COM)
Q. Hey man! have you sorted out the finite soup machine?
A. Why yes, it's celery or tomato.
|
|
|
|
|
"A moniker in COM is not only a way to identify an object—a moniker is <b>also implemented as an object</b>. "
What a startling, useful and unexpected information!( SARCASM)
Seriously, thanks for your reply. It is helpful.
|
|
|
|
|
COM has been evolving since before Windows 3, so there's stuff lingers on because of backward compatibility that won't break existing code.
Q. Hey man! have you sorted out the finite soup machine?
A. Why yes, it's celery or tomato.
|
|
|
|
|
Hey coders,
I came up with a little puzzle/challenge for C++, so for those interested, my challenge to you is this:
Using any C++ constructs, other than any of the casting constructs*, reimplement the following code:
int i = someIntValue();
int *pint = reinterpret_cast<int*>(i)
Or in words, find a way to reinterpret_cast an integer into a pointer without casting (implicitly, or explicitly!). You may assume that sizeof(int)==sizeof(int*) .
I hope to be surprised by answers I hadn't thought of
* with casting constructs, I mean any form of implicit casts (e.g. int to long int), C-style casts (e.g. (int*)i ) and C++-style casts (e.g. reinterpet_cast<int*>(i) ); and also any functions/macro's/API calls (such as STL implementations) which rely internally on casts.
Best Regards,
Richard
|
|
|
|
|
This forum is for serious questions, the Lounge is the place for quizzes.
Use the best guess
|
|
|
|
|
Hmmm Didn't realise that.
I felt it was more in place in a C++ specific message board than in a lounge, as I do find such challenges to be stimulating myself.
|
|
|
|
|
Richard MacCutchan wrote: This forum is for serious questions, the Lounge is the place for quizzes.
I deem this is technically appropriate (by the definitions of the rules), it is C++/C code.
Where in the rules up at the very top posted by Admin Chris Maunder, does it directly say that is for serious questions.
Keep in mind a quiz is a question, you are giving an answer.
EDIT:
Chris Maunder wrote: Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
And you said...
Richard MacCutchan wrote: the Lounge is the place for quizzes.
Trying to guide him in the wrong path , consider re-reading the rules.
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
Brandon-X12000 wrote: I deem this is technically appropriate I suspect you are in a minority.
Brandon-X12000 wrote: Trying to guide him in the wrong path Not at all, the Lounge is the place for such questions; even Chris posts them there.
Use the best guess
|
|
|
|