User Profile

Collapse

Profile Sidebar

Collapse
rottmanj
rottmanj
Last Activity: Jan 15 '09, 10:20 PM
Joined: Jan 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Nm, I got it figured out.
    See more | Go to post

    Leave a comment:


  • rottmanj
    started a topic Passing arguments to externally called application
    in C

    Passing arguments to externally called application

    I am working on an application that requires me to use an external application to pull data from a odbc proxy. One issue that I have run into is trying to figure out how to pass data from my application to the externally called application.

    To give an example when running the external application from the command line. I would use something like this
    dbtcp DSN=mysource localhost

    Output from this would be something...
    See more | Go to post

  • rottmanj
    replied to Starting a service error.
    In the code I posted, I commeted out all actions that should take place with the onstart method. This is what is confusing me, the onstart method is empty of all action and it still fails to start.
    See more | Go to post

    Leave a comment:


  • rottmanj
    started a topic Starting a service error.

    Starting a service error.

    I have written an application that installs a service and then is supposed to start the service. Everything works great except for the service starting(either with AfterIntall or starting it from the window service manager).

    The error I get is
    Code:
    System.InvalidOperationException: Cannot start service qbLinxService on computer ',', ------> System.ComponentModel.Win32Exception: The service did not respond to the start
    ...
    See more | Go to post

  • rottmanj
    replied to Boost RegEx
    in C
    I do believe I read the api wrong then.

    However, I still have an issue with this.

    When i use the pattern below, I do not get the desired result of replacing . with _ and ' with \. Using the code below does not replace any of the bad chars.

    If I have the string ROOM.width and I want to replace . with _, what would the syntax be for my regex.

    Currently this is the code that I am testing with.
    ...
    See more | Go to post

    Leave a comment:


  • rottmanj
    started a topic Boost RegEx
    in C

    Boost RegEx

    In my application I get a string from my datasource that I need to replace some of the bad chars in the strings.

    Right now I have written a pretty standard regex that should replace any of the bad chars in the strings. However, instead of removing the bad chars it removes all chars from the string.

    The bad chars I am trying to replace are /'()

    Here is the current code that I am testing with.

    ...
    See more | Go to post

  • rottmanj
    replied to Multidimensional vector array
    in C
    Here is a really good example of what I am trying to accomplish.



    Where each row would be the parent element and each column would be the child element of the parent....
    See more | Go to post

    Leave a comment:


  • rottmanj
    replied to Multidimensional vector array
    in C
    Well that part I have. What I am trying to do is populate the array.

    Lets say that Row is the parent element in the array (vec[0][0]), and I wanted to populate the child element of the parent array (vec[0][0][0]). I am not sure how to populate the child element of the array.

    More or less I am trying to create a 3D vector array.
    See more | Go to post

    Leave a comment:


  • rottmanj
    started a topic Multidimensional vector array
    in C

    Multidimensional vector array

    I am trying to build a multidimensiona l vector array that allows for multiple child elements under each parent element, but I am having a heck of a time trying to figure out how to do it.

    Right now with the code posted below. I get this type of output.

    Code:
    Resource : 0
    Resource : 1
    Resource : 2
    But this is more along the lines of what I am trying to accomplish.
    Code:
    
    
    ...
    See more | Go to post

  • rottmanj
    started a topic Bad Character from const char
    in C

    Bad Character from const char

    I have written a class that manages all the database connection information/methods I need to connect to a database and query off of it. In order to make my application dynamic so that it can read from multiple tables I setup 4 variables that I will populate at another time. These variables hold the data for database I want to connect to.

    Currently when I run the code, I end up with this as the output.

    Code:
    test
    ...
    See more | Go to post

  • rottmanj
    started a topic String variables
    in C

    String variables

    I am new to oop c++ and I am trying to better educate myself on it. One issue that I have run into is how to store a string based variable.

    Everything I have tried ends up with the errors below. Any information on this would be greatly appreciated.

    Code:
    DbConnect.h:7: error: ‘string’ does not name a type
    DbConnect.h:8: error: ‘string’ has not been declared
    DbConnect.h:9: error: ‘string’ does
    ...
    See more | Go to post

  • rottmanj
    started a topic C++ with multiple sources
    in C

    C++ with multiple sources

    I am working on better/re-educating myself in the ways of oop c++. One issue that I have run into is building an application with multiple class source files.

    Right now I am working on a simple application that connects to a mysql database and outputs information from the table. The one issue that I have run into is that when I try to compile I get the errors below.

    Code:
    undefined reference to `DbConnect::db_set(char
    ...
    See more | Go to post

  • rottmanj
    replied to Dynamic Members c#
    in .NET
    Yes I can, I wind up with something like below, just not sure what to do with it.

    FirstName,strin g
    LastName,string
    See more | Go to post

    Leave a comment:


  • rottmanj
    replied to Dynamic Members c#
    in .NET
    Just to give a better example of what it looks like when it is static.

    If I wanted to pull the data from the FirstName field I would use this.

    dataCol.Add(cus tomer.FirstName .GetValue().ToS tring());

    In my arraylist there is a string that contains the fieldname FirstName.

    What I am trying to figure out is how to take the data from the array, and convert the string into the member FirstName(and...
    See more | Go to post

    Leave a comment:


  • rottmanj
    replied to Dynamic Members c#
    in .NET
    Trying to pull it as an index is not really a possibility as the column names indexes are not the same as the indexes in my qb database file.

    Trying to pull it directly from the array is more along the lines of what I am looking to do. But not sure how to do that, since the member qbFld does not exist. Ideally (pseudo codeesk) i would look like something below.

    Code:
                                    if (customer
    ...
    See more | Go to post

    Leave a comment:


  • rottmanj
    replied to Dynamic Members c#
    in .NET
    They are being returned as a dataset in an ArrayList.
    See more | Go to post

    Leave a comment:


  • rottmanj
    replied to Dynamic Members c#
    in .NET
    This does open another question for me though.

    At another point in my app, I have to use something similar to my question above.

    I have to use a dynamic member in order to pull data.

    Here is the code I am testing with.

    qbFld is the field name I want to pull from the quickbooks file. Just not sure how to create a dynamic member.

    Code:
                                    if (customer
    ...
    See more | Go to post

    Leave a comment:


  • rottmanj
    replied to Dynamic Members c#
    in .NET
    Doh, no I didn't even thing about using AddWithValue.

    Now it works the way that I want it to. Thank you for your help.
    See more | Go to post

    Leave a comment:


  • rottmanj
    started a topic Dynamic Members c#
    in .NET

    Dynamic Members c#

    I am working on a class that will allow me to insert data into any mysql table that I pass into the class. For the most part I have everything done except for adding parameters to the sql query.

    What I have done is pass an ArrayList of column names/ column types into my method, and then I take this data and parse it out and build my query from there. The one issue I have is, when adding parameters to the query, I am unable to figure...
    See more | Go to post

  • rottmanj
    replied to C# and Mysql
    in .NET
    This is what I ended up using. It returns a string collection.

    Code:
            public StringCollection sqlFields(string tblName)
            {
                MySqlConnection cnn = sqlConnection();
                MySqlCommand cmd = new MySqlCommand();
    
                string qryString = "SHOW COLUMNS FROM " + tblName;
                StringCollection fldCol = new StringCollection();
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...