This program also uses OpenSceneGraph and InsightToolKit. If you have them on your system, maybe I can send you the entire project. Or I could rip those 2 out to make a minimal proof-of-concept example. I am in the beginning of starting a new project, so that should not be so hard. Maybe I can go tomorrow to workplace (University to be exact :D) to do it.
Of course, you have to be interested :D
User Profile
Collapse
-
:D
I am using Microsoft Visual C++ 2008 IDE/compiler. Compiler not screaming about it must have something to do with Qt's additions.Leave a comment:
-
Incredible!
Incredible! You were right. When I use MainWindow *mainForm=new ... instead of MainWindow mainForm=new ... it also works normally. Makes me wonder even more why did compiler allow it, and why the whole thing worked (except the taskbar button, of course). MainWindow is a wrapper for something made in designer.
Code:class MainWindow : public QMainWindow, public Ui::mainWindow { Q_OBJECT public:
Leave a comment:
-
It worked
But the point is, everything worked (main window would show, you could alt-tab to it, etc), there was only no taskbar button.
And you are right, I can try that when I get to work. I did not notice it because compiler did not issue a warning/error about it!Leave a comment:
-
No taskbar button with qt
I had a small project based on Qt4, ITK and OpenSceneGraph. It's main function is shown below.
Code:int main( int argc, char **argv ) { QApplication app(argc, argv); MainWindow mainForm = new MainWindow(); mainForm.show(); return app.exec(); }
-
-
Allocation of large memblock unexplainably fails
Hello!
In a certain function i have a line
Code:m_pBuffer = new double[512*512*736]; //~1.5GB
WinXP SP3 32-bit, same thing happens with VS2005 and VS2008.
I have tried setting "Support Addresses Larger Than 2 Gigabytes (/LARGEADDRESSAWA RE)".... -
Donblock said it, although not explicitly, that choices 1 and 2 are equivalent.Leave a comment:
-
I know we had many stored procedures which accepted parameters like page size, page number, sort order etc.
But not all results are expected to possible be huge, and for those cases framework that does sorting, and perhaps also paging comes in handy.Leave a comment:
-
Ahh, I do not work for that company any more! I can not even remember how I solved that problem...
But this reply might help someone else with same/similar problem.
DženanLeave a comment:
-
you can try neural networks (they work well for unclear things)Leave a comment:
-
If anyone comes by the same problem again, here is the solution:
Code:storedProc.setString("Campaign_name", campaign); ((OraclePreparedStatement) storedProc).setFormOfUse(1, OraclePreparedStatement.FORM_NCHAR); //<---this makes the difference!
Leave a comment:
-
Oracle JDBC unicode parameter corrupted (DB insert proc)
Calling a stored procedure from Java with ojdbc 1.4 corrupts (converts to ¿) unicode characters that are not contained in DB's current charset.
Calling this proc from C# works as expected (all unicode characters are properly stored).
Code:String driver = "oracle.jdbc.OracleDriver"; Class.forName(driver); DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); conn = DriverManager.getConnection(url, username,
-
I have rechecked, and crap characters are stored in database, so the insertion part skrews up.
At the statementCode:storedProc.setString("Campaign_name", campaign);
Also, when I access db from Visual Studio (either direct access to table or through insert procedure), everything is fine!
Java part correctly shows unicode...Leave a comment:
-
It is not that. When I check the received string in the debugger, it contains crap characters (code point 191), and they get displayed properly (with inverted question mark)Leave a comment:
-
Oracle returns ¿ instead of unicode characters
Java insert proc:
Code:storedProc = conn.prepareCall("{call SMSC.p_smsu_campaign_insert(?,?,?,?,?,?)}"); storedProc.setString("Campaign_name", campaign); storedProc.setString("Used_OA", OA); storedProc.setInt("RefNum", 1); storedProc.setString("Send_Start", df.format(new java.sql.Date(startSend))); storedProc.setString("Last_VP", df.format(new java.sql.Date(EndDate.getTime()
-
Visual sortable (and perhaps pagable) table
I have existing web application:
-source/binary format: JDK 1.4
-sun java system application server
-jstl1.1
-oracle jdbc 1.4 (ojdbc14)
Now I need to show results of a stored procedure in DB on single page. What is best (and/or easiest) framework (jsf, struts, displaytag, etc) to use. I just want framework to handle sorting and maybe paging.
I have tried jsf, but it does not correctly autoconfigure... -
Solution
I solved it like this:
- Add text element in a div
- Hide div in body onload
- For each progress update call update_progress function ("up") wrapped inside <script> tags. If all calls are made inside one script tag, they are executed when browser encounters closing script tag, which is in my case - when the processing ends
example of output:
[HTML]<html>
<head>
...Leave a comment:
-
What AJAX frameworks for Java are there? I mean, for this concrete problem, is it easier to integrate some asynchronous calls or add iframe to resulting page that will be refreshed by javascript (by polling status on the request every few seconds or so)?Leave a comment:
-
No, but I assume that I would also have to flush the stream, and I am not sure that browser would display data as soon as it arrives.
I wanted to check for ideas on this forum first.
If println works, what do you think, would something like this work:
Code:output header: ... <input type="text" name="perc" id="perc" value="0%" /> <script language="javascript">
Leave a comment:
No activity results to display
Show More
Leave a comment: