User Profile

Collapse

Profile Sidebar

Collapse
dzenanz
dzenanz
Last Activity: Mar 30 '15, 10:48 PM
Joined: Feb 12 '08
Location: Siegen, Germany
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dzenanz
    replied to No taskbar button with qt
    in C
    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
    See more | Go to post

    Leave a comment:


  • dzenanz
    replied to No taskbar button with qt
    in C
    :D

    I am using Microsoft Visual C++ 2008 IDE/compiler. Compiler not screaming about it must have something to do with Qt's additions.
    See more | Go to post

    Leave a comment:


  • dzenanz
    replied to No taskbar button with qt
    in C
    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:
    ...
    See more | Go to post
    Last edited by dzenanz; Mar 27 '09, 08:00 AM. Reason: language correction

    Leave a comment:


  • dzenanz
    replied to No taskbar button with qt
    in C
    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!
    See more | Go to post

    Leave a comment:


  • dzenanz
    started a topic No taskbar button with qt
    in C

    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();    
    }
    There was a problem, however. The window had no taskbar button. I spent quite some time figuring it out, and in the end it all came down to a very...
    See more | Go to post

  • dzenanz
    replied to Develop A calculator GUI interface
    in C
    Read http://www.xminc.com/linux/wxpython.html Not bad!
    See more | Go to post

    Leave a comment:


  • dzenanz
    started a topic Allocation of large memblock unexplainably fails
    in C

    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
    the allocation fails here. At that time, process' virtual memory size is 380MB (information obtained using task manager), and there is over 2GB of free RAM.

    WinXP SP3 32-bit, same thing happens with VS2005 and VS2008.

    I have tried setting "Support Addresses Larger Than 2 Gigabytes (/LARGEADDRESSAWA RE)"....
    See more | Go to post

  • dzenanz
    replied to Integer Overflow Corruption
    in C
    Donblock said it, although not explicitly, that choices 1 and 2 are equivalent.
    See more | Go to post

    Leave a comment:


  • dzenanz
    replied to Visual sortable (and perhaps pagable) table
    in Java
    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.
    See more | Go to post

    Leave a comment:


  • dzenanz
    replied to Visual sortable (and perhaps pagable) table
    in Java
    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ženan
    See more | Go to post

    Leave a comment:


  • dzenanz
    replied to Looking for Image Interpretation Code
    in Java
    you can try neural networks (they work well for unclear things)
    See more | Go to post

    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!
    See more | Go to post

    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,
    ...
    See more | Go to post

  • I have rechecked, and crap characters are stored in database, so the insertion part skrews up.

    At the statement
    Code:
    storedProc.setString("Campaign_name", campaign);
    variable campaign contains correct string (netbeans debugger displays it correctly).

    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...
    See more | Go to post

    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)
    See more | Go to post

    Leave a comment:


  • dzenanz
    started a topic Oracle returns ¿ instead of unicode characters
    in Java

    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()
    ...
    See more | Go to post

  • dzenanz
    started a topic Visual sortable (and perhaps pagable) table
    in Java

    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...
    See more | Go to post

  • dzenanz
    replied to JSP processing progress indication
    in Java
    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>
    ...
    See more | Go to post
    Last edited by dzenanz; Apr 10 '08, 12:25 PM. Reason: add/remove a few empty lines in code

    Leave a comment:


  • dzenanz
    replied to JSP processing progress indication
    in Java
    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)?
    See more | Go to post

    Leave a comment:


  • dzenanz
    replied to JSP processing progress indication
    in Java
    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">
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...