|
What does your filter string look like?
What does the code look like that constructs it?
Also what does the code look like that executes the query?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello again board, thanks for answering my previous question. I never programmed for linux. I have about 10 programs(all of them have some sort of data acquisition) developed using MFC for win 98 and XP.recently I've been asked to provide linux versions of these softwares. Is it possible to convert them(each program is relatively big with ~20-30 classes)?
|
|
|
|
|
Since MFC are, by design, a thin wrapper around Win32, they are strictly tied to Windows hence you have to do a lot of work (of course it depends on how much is windowed is your application).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
You might want to look into the Wine project. It tries to implement large tracts of the Win32 API on Linux so you can more easily port Windows software. I'm not sure if Wine is up to running MFC but it probably does to some degree.
http://www.winehq.org/[^]
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Think about .Net framework.
Manish
|
|
|
|
|
Manish, Can you explain more, please. Do you mean .Net had less portability problems? How? Does it mean .Net is a universal language(probably portability to Mac)?
|
|
|
|
|
.NET is a framework by microsoft for Windows. the projects (like Mono) which extend the work of .NET to other systems than MS are individual works and not really official.
|
|
|
|
|
Hey, .Net is good alternative, as most of the .Net framework has been ported to Linux.
The Mono project provides the necessary software to develop and run .NET client and server applications on different platforms. Mono can run binaries produced by Visual Studio, there is no need to recompile.
www.mono-project.com[^]
----------------------------------------------------------------------------------------
Who will infect the viruses?
|
|
|
|
|
if the project is targetted for different plateforms, you should consider using Multi-Plateforms graphical libraries like WxWidgets for instance (but many more exist though)
|
|
|
|
|
I have quicktime filters and i ve registered them to system.
I want intelliconnet to recognize them , so i want play mov files with just rendering file source.
Is it possible , how can i do these ?
BEST REGARDS
|
|
|
|
|
Akin Ocal wrote: Is it possible , how can i do these ?
IGraphBuilder::RenderFile() could be used if you want the graph builder to build the complete
graph for you.
If you want to use specific renderers, then you can:
Use IGraphBuilder::AddSourceFilter() to (hopefully) load the filter needed for QuickTime files
Load your renderer filter(s) and add to the graph.
Use IBaseFilter::EnumPins() to find th output pin(s) of the source filter.
For each output pin, use IGraphBuilder::Render() - Intelligent Connect will use whatever filters
necessary between the source output pins and the renderer input pins.
If Intelligent Connect isn't able to find the correct source filter (it would be because the
source filter was implemented incorrectly) then you'll need to load the filter manually. You can
get the GUID from GRAPHEDIT.EXE.
Good luck! Anything that starts with the letters "Intelli" is suspect....remember
IntelliSense?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Thank for answering but i am already using RenderFile , yes i can do it by Adding filters-Connecting pins- and rendering out pin of renderer filter , but i just want to call RenderFile and IntelliConnect to handle it , perhaps i am doing something wrong -> i ve made a bat file and interior of it is :
regsvr32.exe qtime.ax
Isnt this enough for Intelliconnect , i wonder how codec packs achieve this ?
|
|
|
|
|
I understand, I think I just wanted to give you alternatives (using Intelligent Connect). If
the filter is well implemented it should work.
Akin Ocal wrote: regsvr32.exe qtime.ax
I believe you need the full path when you register the filter dll -
regsvr32.exe drive:\path\qtime.ax
I don't know if this is true, or if it's still the case, but when I first made my own custom
filter, it wouldn't register and a Google search brought me to an article stating I need the full
path. It worked and I've been doing it ever since
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I had to use Visual c++ 6.0, but now I have Visual C++. Net Version. I begin to learn this language.
How can I Access data from my sql server database
|
|
|
|
|
|
mikobi wrote: How can I Access data from my sql server database
The same code can be used, although you might have to clean it up a bit. Even more so with VS2005.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
1.How can I Display Crystal reports from Visual C++.NET and to print them .
2. When I deploy my application on another machine, crystal report must be installed or not ?
I learn my self
|
|
|
|
|
Hello,
I would like to give the users of my application the possibility to create their own collection of C++ functions and to execute them.
Am I right to say that I could not use neither VC++ editor nor the compiler and debugger on runtime since the application must be rebuild when adding new functions?
And I was wondering about one solution that might be to add an editor and C++ script engine but I do not know if it is the best solution and how to start.
Could you please give me your advices and some entry points to start?
I thank you very much for your help.
|
|
|
|
|
Adding scripting to your application can be a great idea. I wouldn't expect end users to code in anything too close to C++ though, perhaps VB or even perl, python, javascript, smallbasic, even C#. If you're adding scripting you probably either want to go with something supported by the Microsoft ActiveX Scripting Engine for a desktop only app or one of the Web Browser hosted scripting languages for Web based apps.
If your target audience is developers then you probably ought to be shipping them components of one kind or another, like COM objects, which they can utilise in their own software via a published interface specification, rather than tieing them to scripting your application.
It really depends on what sort of app you're doing. I added ActiveX scripting support to a presentation graphics package ( a bit like Powerpoint ) a few years ago. That meant you could script the package in VBScript and JavaScript. It was a great fun project but it did take a few months. I found the source for the Microsoft ActiveX test container, which is knocking around the web, absolutely essential in doing this as it implements all the badly documented and obscure ActiveX stuff. Enjoy
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
My target audience is C C++ developers and my application is the final product therefore I cannot package it as ActiveX.
I've found some interesting stuffs on C++ scripting @
http://www.codeproject.com/useritems/Personal_C___Compiler.asp
http://root.cern.ch/root/Cint.html
|
|
|
|
|
Looks good. I would expect to be picking up a large Open Source code base with this approach which might be a lot of work to bring up to whatever standards your shop requires. If this isn't a problem then it looks like you might have yourself a cool solution. I might even have a peek at some of it myself. I had to implement syntax colouring in an RTF based editor a few years ago and it was extremely difficult with very few code samples at the time. It woudl be interesting to see how it's supposed to work
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Please help me do a query based on date.
I have m_pSet (a pointer to CRecordset) and a filter m_strFilter
my date is a ColeDateTime in the form of "mm/dd/yyyy"
I need to set: m-pSet->m_strFilter to select records with birthday=1/1/1970
Any ideas.
Paulo
|
|
|
|
|
paulosuckow wrote: I need to set: m-pSet->m_strFilter to select records with birthday=1/1/1970
So what's the problem?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
The problem is that it doesn't return any thing. If I remove that the date part from the query it works. what is the right way of adding the date to the query .
Thanks
|
|
|
|
|
paulosuckow wrote: If I remove that the date part from the query it works.
What does your (incorrect) query look like?
Is this with Access, Microsoft SQL, or some other?
BTW, posting the same question barely two hours later is considered bad etiquette.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|