User Profile
Collapse
-
Nm, I got it figured out. -
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... -
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.Leave a comment:
-
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
-
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.
...Leave a comment:
-
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.
... -
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....Leave a comment:
-
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.Leave a comment:
-
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
Code: -
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
-
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
-
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
-
Yes I can, I wind up with something like below, just not sure what to do with it.
FirstName,strin g
LastName,stringLeave a comment:
-
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...Leave a comment:
-
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
Leave a comment:
-
-
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
Leave a comment:
-
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.Leave a comment:
-
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... -
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();
Leave a comment:
No activity results to display
Show More
Leave a comment: