I figured out what was happening. Ubound returns a long and I was assigning the returned value to an Integer. This was ok some of the time but when a larger number was returned it caused the overflow.
Thanks for your suggestions.
Wallace
Some more info that might help. result object is a class that I have created as follows:
class HedgeResult
{
friend std::ostream & operator<<(std::ostream &, const HResult &);
public:
void clear();
struct Result
{
std::string resultError...
Hi, I am getting an "Overflow" error when I call Ubound on an object of type Variant
numResult = UBound(result)
I have tried doing some searching on the net and I can't figure this one out. Has anyone ever encountered this before? The result object looks to be ok when I check it in debug...
Hi,
I have an array of arrays decalred as follows:
double[][] egArray = new double[19][];
and populated as you would expect.
Later in the program there are situations when I want to remove a corresponding row/column e.g. egArray[2][2].
Is there any easy way of doing this without having to...
Hi, I have a question regarding the use of static variables in a multithreading application. I have an application that will be parsing 2 different XML files on different threads. I then want to have a class (say Object1) that has a map containing other objects (Object2).
Items of Object2...
Hi everyone,
It's been a long while since I did vb.net and I can't remember how to do something very simple!!!
I have a ComboBox on form1 and another one on Form2. What I want to do is when the user clicks on a button that loads form2 I want to pass the DataSource from the ComboBox on form1...
Hi,
I have a form that I am showing using the ShowDialog method. However, I want to acess the value of one of the selectors on the form after I call the ShowDialog but I can't.
Is there any event that I can use that is fired by the ShowDialog or is there any other way I can use to get at teh...
Hi, I have a VB6 project that contains a reference to a tlb from another .Net project that I have.
The problem is that whenever I rebuild the .Net project the reference in the VB6 project becomes out-of-date and I have to re-enter it. Is there any way that the project reference will...
Basically yes. The UserChanged event is fired if the user selects a new item from the drop down. Based on this selection other ares of the screen are loaded with new data. However, there is a part of my application where I pass in the value of the combobox and have to do...
I have gotten it working by explicitly callin the UserChanged event method like this:
this.combobox_UserChanged(combobox, null)
I'm not sure if it's OK to have System.event.arg set to null though?
Thanks
I have a comboBox on one of my forms and when I set the text of the comboBox from another method it does not fire the UserChange event.
Is there any way I can force this event to fire so that the component_UserChange method will be invoked?
Thanks for any help.
I have created a class to interoperate with COM and when I try to add a reference to the type library I get the following error:
"A reference to 'Test' could not be added. Converting the type library to a .NET assembly failed. Type library Test was exported from a CLR assembly and can not be...
Thanks for the reply. What about the aspect of passing information from one to the other? Would this be easier if i was to create the .Net app as a dll and include it in the main C++ application?
One thing I forgot to add is that when I launch the new application which is basically a form I want to be able to pass some data to it so that it is populated when it opens.
Thanks,
Wallace
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.