CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: bsaucer

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    16
    Views
    2,475

    Re: initializing static array

    Well, not counting the fact that I'm multiplying the cosines and sines by other things, plus a bunch of other number crunching (addition, multiplying, etc.)

    My solution: I wrote a VB.Net program...
  2. Replies
    16
    Views
    2,475

    Re: initializing static array

    In your main routine, you are passing literal constants 1024 and 2 to the template. What if I pass integer variables to the template? Does that mean calculations take place at runtime?

    My routine...
  3. Replies
    16
    Views
    2,475

    Re: initializing static array

    static const double m_fCos[1024];
    static const double m_fSin[1024];
    static void Initialize(void);



    void MyClass::Initialize(void)
    {
    for (int i = 0; i < 1024; i++)
    {
  4. Replies
    16
    Views
    2,475

    Re: initializing static array

    To answer your questions: The array is large. The values never change, but need to be calculated. Since this is a static member, the values should be available to other classes
    without creating any...
  5. Replies
    16
    Views
    2,475

    Re: initializing static array

    Let me clarify what I mean by "static". I mean that the array is a static member of the class.
  6. Replies
    16
    Views
    2,475

    initializing static array

    I am writing a class which will have a static array. I need to initialize the array using a for loop. There will be several instances of the class, each of which will read values from the array. The...
  7. Replies
    0
    Views
    2,191

    astronomy class library

    Where can I find me a .Net class library for astronomy calculations? I'm looking for functions for calculating moon phases, sunrise, sunsets, transit, seasons, perihelion, aphelion, perigee, apogee,...
  8. Replies
    3
    Views
    1,452

    Re: Grid of buttons

    I had accomplished this in VB.Net forms application, but I want to do the same thing in WPF. But I'm running into several obstacles, such as placing the buttons in the appropriate cells (specified by...
  9. Replies
    3
    Views
    1,452

    Grid of buttons

    I want to have an 8x8 array of square buttons, all equal size. The buttons should be created and placed in the cells of the grid by the code.

    Each button should have a specified background color,...
  10. Replies
    1
    Views
    516

    Re: Multi-page report

    I've played around with it a bit, but I'm down to two problems:

    I have a page footer which takes up about two inches at the bottom of the page, but is suppressed on the last page. I have a report...
  11. Replies
    1
    Views
    516

    Multi-page report

    I am new to Crystal Reports, and I'm trying to create a multipage report. The first page is populated at the top and bottom with text and data fields. The middle portion is one large text box (with...
  12. Replies
    0
    Views
    2,082

    enhanced listbox control

    I need an enhanced listbox control that has the following on each line:
    - An icon symbol, or at least a specified colored bullet.
    - A hyperlink, or html anchor, which loads a specified web page...
  13. Replies
    6
    Views
    1,203

    Re: Select range of rows

    I had found an error in my query the first time...

    However, I now get multiple copies of each row that I originally would have gotten, and the total row count (unfiltered by page number) of the...
  14. Replies
    6
    Views
    1,203

    Re: Select range of rows

    I just tried using the temp table. The ASP.NET page returned error messages saying that all the columns were invalid. When I tried it in the query analyzer, there were no rows returned.

    The query...
  15. Replies
    6
    Views
    1,203

    Select range of rows

    I have a stored procedure with a rather complicated select query. Sometimes this query can return several thousand rows.

    I want to be able to select a range of rows by number, such as rows...
  16. Replies
    1
    Views
    798

    HtmlInputCheckBox Control

    I have a web page which populates various controls (HtmlInputTextBox, HtmlInputSelect, HtmlInputCheckBox, etc.) into htmlcells of an htmltable. The user can modify these controls and then click a...
  17. Replies
    2
    Views
    852

    Re: Validation in user controls

    I've partially fixed the problem. I restructured the entire page so that there are no user controls with controls inside them. Everything is now on the main page. The Page_Load event calls routines...
  18. Replies
    2
    Views
    852

    Validation in user controls

    I have a page with three user controls. The first control dynamically populates itself with link buttons, depending on the result of a database querry, in this case, ("Save", Cancel").

    The second...
  19. Replies
    5
    Views
    1,294

    Re: SetInterval called function crashes

    When I say it "crashes", it occurs when I debug it. If I run the page without debugging, there is no visible activity when I click start. When I debug it is when I discover it is crashing when the...
  20. Replies
    5
    Views
    1,294

    Re: SetInterval called function crashes

    When I load the page in firefox, the error console says "Error in parsing value for property'display'. Declaration dropped." The word "display" doesn't appear anywhere in my project directory. When I...
  21. Replies
    5
    Views
    1,294

    SetInterval called function crashes

    I have an web app with some javascript functions. When you click a button it starts two "SetInterval" timers going, each calling a separate function. It calls one function first, and then it crashes....
  22. Replies
    1
    Views
    2,077

    LinkButton doesn't work

    I have inherited a C# ASP.Net web app from someone, and I am trying to dynamically LinkButtons to an HTMLTableCell. The html table is in a user control. I copied the code from another user control...
  23. Thread: Side by side?

    by bsaucer
    Replies
    4
    Views
    6,947

    Side by side?

    How can I place two update panels side by side? It appears that an update panel occupies the entire width of the page, and the best I can do is place them one above the other.
  24. Thread: AppSettings

    by bsaucer
    Replies
    1
    Views
    796

    AppSettings

    How do I retrieve an AppSetting variable within javascript? I have an ASP.Net application with AppSettings in the Web.Config file. I can retrieve the variables from the server code, but how do I...
  25. Replies
    7
    Views
    838

    Re: saving an image file

    Now that I got it working in XP Pro, how do I get it working in Vista?
Results 1 to 25 of 64
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured